Movie import v1

This commit is contained in:
2026-03-17 12:36:12 +01:00
parent e750736a1c
commit 211418c6c4
10 changed files with 312 additions and 9 deletions

View File

@@ -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,
];
}
/**