From 629a88be0b228d649819fe9c58dde2c9c8e50b0d Mon Sep 17 00:00:00 2001 From: jurialmunkey Date: Tue, 19 Apr 2022 14:59:15 +1000 Subject: [PATCH] add to library context menu addon - jurialmunkey/plugin.video.themoviedb.helper#482 --- addon.xml | 6 +++++- lib/context.py | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index e5b1926..e3fd0c7 100644 --- a/addon.xml +++ b/addon.xml @@ -2,7 +2,7 @@ - + @@ -28,6 +28,10 @@ [String.IsEqual(ListItem.dbtype,episode) | String.IsEqual(ListItem.dbtype,tvshow) | String.IsEqual(ListItem.dbtype,movie)] + String.IsEmpty(ListItem.Property(tmdbhelper.context.artwork)) + String.IsEmpty(ListItem.Property(item.info)) + + + [String.IsEqual(ListItem.dbtype,episode) | String.IsEqual(ListItem.dbtype,tvshow) | String.IsEqual(ListItem.dbtype,movie)] + String.IsEmpty(ListItem.Property(tmdbhelper.context.addlibrary)) + String.IsEmpty(ListItem.Property(item.info)) + diff --git a/lib/context.py b/lib/context.py index b061413..3ff0432 100644 --- a/lib/context.py +++ b/lib/context.py @@ -68,6 +68,11 @@ 'movie': BASIC_MOVIE, 'tvshow': BASIC_TVSHOW, 'episode': BASIC_EPISODE + }, + 'add_to_library': { + 'movie': BASIC_MOVIE, + 'tvshow': BASIC_TVSHOW, + 'episode': BASIC_EPISODE } }