2020-01-09, 15:25
(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&tmdb_id=$INFO[ListItem.Property(tmdb_id)]&type=movie)</value>
<value condition="String.IsEqual(ListItem.DBType,episode) + !String.IsEmpty(ListItem.DBID)">RunPlugin(plugin://plugin.video.themoviedb.helper/?info=play&tmdb_id=$INFO[ListItem.Property(tmdb_id)]&season=1&episode=1&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!
Regards,
Bart