Movie import v1
This commit is contained in:
14
action.php
14
action.php
@@ -122,6 +122,7 @@ class action_plugin_luxtools extends ActionPlugin
|
||||
"linkfavicon.js",
|
||||
"calendar-widget.js",
|
||||
"event-popup.js",
|
||||
"movie-import.js",
|
||||
"main.js",
|
||||
];
|
||||
|
||||
@@ -131,6 +132,11 @@ class action_plugin_luxtools extends ActionPlugin
|
||||
"src" => $base . $script,
|
||||
];
|
||||
}
|
||||
|
||||
// Pass OMDb API key to client-side JavaScript.
|
||||
// Intentional: the key is exposed to the browser for direct OMDb lookups.
|
||||
global $JSINFO;
|
||||
$JSINFO['luxtools_omdb_apikey'] = (string)$this->getConf('omdb_apikey');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -909,6 +915,14 @@ class action_plugin_luxtools extends ActionPlugin
|
||||
"icon" => "../../plugins/luxtools/images/date-fix-all.svg",
|
||||
"block" => false,
|
||||
];
|
||||
|
||||
// Movie Import: fetch movie metadata from OMDb
|
||||
$event->data[] = [
|
||||
"type" => "LuxtoolsMovieImport",
|
||||
"title" => $this->getLang("toolbar_movie_title"),
|
||||
"icon" => "../../plugins/luxtools/images/movie.svg",
|
||||
"block" => false,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user