2016-11-27, 21:05
(2016-11-27, 20:40)marcelveldt Wrote:(2016-11-27, 17:38)Guilouz Wrote: Do you have take a look for extrafanarts not working with tv shows and movies ? Only working with music.
There's a small typo in your code:
PHP Code:<visible>![Player.HasVideo + Skin.HasSetting(background_showvideo)] | !String.IsEmpty(Window(Videos).Property(PlayingBackgroundMedia))</visible>
should be:
PHP Code:<visible>![[Player.HasVideo + Skin.HasSetting(background_showvideo)] | !String.IsEmpty(Window(Videos).Property(PlayingBackgroundMedia))]</visible>
Also you can remove the other visibility conditions as the script can also provide extrafanrt for plugins and homescreen widgets.
Maybe only use this as visibility condition (besides the one above):
<visible>Skin.HasSetting(SkinHelper.EnableExtrafanart) + !IsEmpty(Window(Home).Property(SkinHelper.ListItem.Art.extrafanart))</visible>
I have removed all my visibility conditions to try and extrafanarts does not work for movies and tv shows. I have no problem with music.
I try this :
Code:
<control type="multiimage">
<depth>DepthBackground</depth>
<include>FullScreenDimensions</include>
<aspectratio>scale</aspectratio>
<fadetime>400</fadetime>
<animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
<animation effect="fade" time="400">VisibleChange</animation>
<imagepath background="true" colordiffuse="$VAR[Background_Opacity]">$VAR[ExtraFanArtVar]</imagepath>
<timeperimage>3000</timeperimage>
<randomize>true</randomize>
<visible>Skin.HasSetting(SkinHelper.EnableExtrafanart)</visible>
</control>
With :
Code:
<variable name="ExtraFanArtVar">
<value condition="!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.Art.ExtraFanArt))">$INFO[Window(Home).Property(SkinHelper.ListItem.Art.ExtraFanArt)]</value>
<value>$INFO[ListItem.Art(fanart)]</value>
</variable>
When Extrafanarts are enable it show my default fanart. So I think Skin helper not find (or not check) the extrafanart folder in my tv shows/movies folders.
Here, my structure folder :
EDIT : I have an error when I enable extrafanart setting :
Code:
20:21:36.427 T:123145455128576 DEBUG: Skin Helper Service --> Traceback (most recent call last):
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 282, in set_listitem_details
listitem = extend_dict(listitem, self.artutils.get_studio_logo(listitem["studio"]))
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.module.skin.helper.artutils/lib/artutils.py", line 179, in get_studio_logo
return self.studiologos.get_studio_logo(studio, self.studiologos_path)
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.module.simplecache/lib/simplecache.py", line 312, in decorated
result = func(*args, **kwargs)
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.module.skin.helper.artutils/lib/helpers/studiologos.py", line 33, in get_studio_logo
result['StudioLogo'] = self.match_studio_logo(studios, self.get_studio_logos(lookup_path))
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.module.skin.helper.artutils/lib/helpers/studiologos.py", line 49, in get_studio_logos
all_logos = self.list_files_in_path(lookup_path)
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.module.skin.helper.artutils/lib/helpers/studiologos.py", line 100, in list_files_in_path
directory = directory.decode("utf-8")
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/encodings/utf_8.py", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 18: ordinal not in range(128)
20:21:36.427 T:123145455128576 ERROR: Skin Helper Service --> Exception in resources.lib.listitem_monitor ! --> 'ascii' codec can't encode character u'\u2019' in position 18: ordinal not in range(128)