2021-07-23, 21:21
(2021-07-20, 23:36)Edworld Wrote:@Edworld , if you are using Embuary Helper, its service component is calling the database in a interval to get a random set of 40 movie, 40 TV show and 40 artist fanarts. These background images are going to be stored in window properties, which are changing every 10s. You can even change the interval. These are the properties:(2019-07-23, 23:29)bsoriano Wrote: @sualfred,Is their a property to provide the title of the random fanart?
I have been asked if I could open the info dialog for a specific movie or tv show from an onclick. I don’t think this is possible without using extendedinfo. Is this something you would consider adding to your script?
Here is my use case: In Amber, I use script.grab.fanart to grab random movie fanart or tv show fanart and show that as the background for a menu item, autoscrolling every x seconds. I provide the option of showing the title of the movie/tv show that is being shown. The request I received is if I could make that name clickable and open the info dialog for that movie or tv show. This as a way of answering the audience question of “what movie is that?”
script.grab.fanart does not provide me the DBID of the movie or tv show, but I guess even with my very limited knowledge of Python I could mod it to do that, unless you could provide me with a different idea.
So what do you think? Is this something that you think you would consider adding to your script?
Thanks for considering my request.
Regards,
Bart
xml:
$INFO[Window(home).Property(EmbuaryBackground)] (mix of all)
$INFO[Window(home).Property(EmbuaryBackgroundVideos)] (mix of movies + TV shows)
$INFO[Window(home).Property(EmbuaryBackgroundMovies)] (movies)
$INFO[Window(home).Property(EmbuaryBackgroundTVShows)] (TV shows)
$INFO[Window(home).Property(EmbuaryBackgroundMusic)] (artists)
So you actually do not need script.grab.fanart any more for this. I stopped using it in Amber. Using Embuary Helper is also great if you want to provide random fanart background from a playlist or node, since it skips over items with no fanart.
If you want to use that, create a list that calls the getfanartsbypath function of the script. The list has all of the item properties, including the title. I use one like this for playlist random fanart for main menu items:
xml:
<control type="list" id="9989">
<description>hidden container for playlist background using embuary helper</description>
<posx>-20</posx>
<posy>-20</posy>
<width>1</width>
<height>1</height>
<include>AutoscrollTime</include>
<itemlayout />
<focusedlayout />
<content sortby="random" limit="$INFO[Container(300).ListItem.Property(playlistFanartLimit)]">plugin://script.embuary.helper?info=getfanartsbypath&path='"$INFO[Container(300).ListItem.Property(backgroundPlaylist)]"'&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</content>
<visible>!String.IsEmpty(Container(300).ListItem.Property(backgroundPlaylist))</visible>
</control>
Regards,
Bart