Skip to content

Commit

Permalink
add to library context menu addon - jurialmunkey/plugin.video.themovi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Apr 19, 2022
1 parent 89ae4ab commit 629a88b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<addon id="context.themoviedb.helper" version="1.1.0" name="TMDbHelper - Additional Context Menu Items" provider-name="jurialmunkey">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="plugin.video.themoviedb.helper" version="4.7.0" />
<import addon="plugin.video.themoviedb.helper" version="4.7.7" />
</requires>
<extension point="kodi.context.item">
<menu id="kodi.core.main">
Expand All @@ -28,6 +28,10 @@
<label>$ADDON[plugin.video.themoviedb.helper 32222]</label>
<visible>[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))</visible>
</item>
<item library="context.py" args="add_to_library">
<label>$ADDON[plugin.video.themoviedb.helper 32151]</label>
<visible>[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))</visible>
</item>
</menu>
</menu>
</extension>
Expand Down
5 changes: 5 additions & 0 deletions lib/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 629a88b

Please sign in to comment.