Skip to content

Commit

Permalink
added support for Emby extra fanarts in info dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sualfred committed Dec 23, 2018
1 parent c3735d0 commit b8e126e
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
73 changes: 73 additions & 0 deletions xml/Embuary_Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1571,4 +1571,77 @@
<onclick condition="Skin.HasSetting(StartPlayerFullscreen)">SetProperty(SkipAutoFullscreen,1,home)</onclick>
<onclick>Dialog.Close(all,true)</onclick>
</include>
<include name="MultiFanart">
<param name="id">2003</param>
<param name="art">fanart</param>
<definition>
<control type="list" id="2003">
<autoscroll time="5000">true</autoscroll>
<include>HiddenObject</include>
<content>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art])]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]1)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]1))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]2)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]2))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]3)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]3))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]4)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]4))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]5)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]5))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]6)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]6))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]7)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]7))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]8)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]8))</visible>
</item>
<item>
<label></label>
<icon>$INFO[ListItem.Art($PARAM[art]9)]</icon>
<onclick>noop</onclick>
<visible>!String.IsEmpty(ListItem.Art($PARAM[art]9))</visible>
</item>
</content>
</control>
</definition>
</include>

</includes>
5 changes: 5 additions & 0 deletions xml/Embuary_InfoDialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- movie -->
<include name="MovieInfoLayout">
<!-- Background -->
<include>MultiFanart</include>
<include>Background</include>
<!-- Dialog -->
<control type="grouplist" id="500">
Expand Down Expand Up @@ -175,6 +176,7 @@
<!-- tvshow -->
<include name="TVShowInfoLayout">
<!-- Background -->
<include>MultiFanart</include>
<include>Background</include>
<!-- Dialog -->
<control type="grouplist" id="500">
Expand Down Expand Up @@ -352,6 +354,9 @@
<!-- episode -->
<include name="EpisodeInfoLayout">
<!-- Background -->
<include content="MultiFanart">
<param name="art" value="tvshow.fanart"/>
</include>
<include>Background</include>
<!-- Dialog -->
<control type="grouplist" id="500">
Expand Down
1 change: 1 addition & 0 deletions xml/Embuary_Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@
<value condition="[Window.IsVisible(script-NextAired-TVGuide2.xml) | Window.IsVisible(script-NextAired-TVGuide.xml)] + !String.IsEmpty(Window(home).Property(TVGuide.BackgroundFanart)) + Control.HasFocus(214)">$INFO[Container(214).ListItem.Property(Fanart)]</value>
<value condition="[Window.IsVisible(script-NextAired-TVGuide2.xml) | Window.IsVisible(script-NextAired-TVGuide.xml)] + !String.IsEmpty(Window(home).Property(TVGuide.BackgroundFanart)) + Control.HasFocus(215)">$INFO[Container(215).ListItem.Property(Fanart)]</value>
<value condition="!String.IsEmpty(Window.Property(background))">$INFO[Window.Property(background)]</value>
<value condition="Window.IsVisible(DialogVideoInfo.xml) + !String.IsEmpty(Container(2003).ListItem.Icon) + !Container.OnNext + !Container.OnPrevious">$INFO[Container(2003).ListItem.Icon]</value>
<value condition="[Window.IsMedia | Window.IsVisible(DialogVideoInfo.xml) | Window.IsVisible(DialogMusicInfo.xml)] + !String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>
<!-- static for non listitems -->
<value condition="Skin.HasSetting(ShowStaticBackgroundImage) + !String.IsEmpty(Skin.String(StaticBackgroundImage))">$INFO[Skin.String(StaticBackgroundImage)]</value>
Expand Down

0 comments on commit b8e126e

Please sign in to comment.