Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2020-01-09, 12:45)nessus Wrote: @bsoriano 
The following code it works fine for me for a custom Play button in all cases....

"Play" button in video info dialog...
xml:
<control type="button" id="88">
    <description>Play/Browse/Close</description>
    <label>$VAR[PlayBrowseButtonLabel]</label>
    <onclick>Dialog.Close(MovieInformation)</onclick>
    <onclick>$VAR[CustomClickForMoreLists]</onclick>
    <include>TopMenuButton</include>
</control>

... and the variables....
xml:
<variable name="CustomClickForMoreLists">
    <value condition="String.IsEqual(ListItem.DBType,movie) + !String.IsEmpty(ListItem.FilenameAndPath) + !String.StartsWith(ListItem.FilenameAndPath,plugin://)">AlarmClock(PlayMovie,PlayMedia($INFO[ListItem.FilenameAndPath]),00:01,silent)</value>
    <value condition="String.IsEqual(ListItem.DBType,movie) + !String.IsEmpty(ListItem.DBID)">RunPlugin(plugin://plugin.video.themoviedb.helper/?info=play&amp;tmdb_id=$INFO[ListItem.Property(tmdb_id)]&amp;type=movie)</value>
    <value condition="String.IsEqual(ListItem.DBType,episode) + !String.IsEmpty(ListItem.DBID)">RunPlugin(plugin://plugin.video.themoviedb.helper/?info=play&amp;tmdb_id=$INFO[ListItem.Property(tmdb_id)]&amp;season=1&amp;episode=1&amp;type=episode)</value>
    <value condition="[String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season)] + !String.IsEmpty(ListItem.DBID)">ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</value>
</variable>
xml:
<variable name="PlayBrowseButtonLabel">
    <value condition="[String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season)] + !String.StartsWith(ListItem.FilenameAndPath,plugin://)">$LOCALIZE[1024]</value>
    <value condition="!String.StartsWith(ListItem.FilenameAndPath,plugin://)">$LOCALIZE[208]</value>
    <value>$LOCALIZE[15067]</value>
</variable>

The <variable name="CustomClickForMoreLists"> works fine too for the widgets lists inside the video info dialog.

Cheers
Nessus

@nessus, thank you! Smile

Regards,

Bart
Reply


Messages In This Thread
RE: TheMovieDB Helper - by jurialmunkey - 2019-07-31, 11:47
RE: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners - by bsoriano - 2020-01-09, 15:25
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2