Add support for providing metadata to IMDBId #33 #34

This commit is contained in:
mrcanelas
2024-10-03 18:51:42 -03:00
parent c70384bfe8
commit f08b9c480f
4 changed files with 589 additions and 579 deletions
+584 -575
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -31,6 +31,7 @@ function loadTranslations(language) {
async function getManifest(config) {
const language = config.language || DEFAULT_LANGUAGE;
const usePrefix = config.use_tmdb_prefix === "true";
const provideImdbId = config.provide_imdbId === "true";
const translatedCatalogs = loadTranslations(language);
const years = generateArrayOfYears(20);
const genres_movie = await getGenreList(language, "movie").then((genres) => genres.map((el) => el.name).sort());
@@ -49,7 +50,7 @@ async function getManifest(config) {
description: package.description + descriptionSuffix,
resources: ["catalog", "meta"],
types: ["movie", "series"],
idPrefixes: ["tmdb:"],
idPrefixes: provideImdbId ? ["tmdb:", "tt"] : ["tmdb:"],
behaviorHints: {
configurable: true,
configurationRequired: false,
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "tmdb-addon",
"version": "3.0.15",
"version": "3.0.16",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "tmdb-addon",
"version": "3.0.14",
"version": "3.0.16",
"license": "Apache-2.0",
"dependencies": {
"cache-manager": "^3.6.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tmdb-addon",
"version": "3.0.15",
"version": "3.0.16",
"description": "Metadata provided by TMDB",
"main": "server.js",
"dependencies": {