(2018-11-28, 11:08)sonic00 Wrote: Hi there,
I am using Kodi 18 Beta 5, and I see its possible to choose individual fanarts for Albums of the same Artist. Thats really nice since I have a lot of OST Albums with Various Artists, so I now can have a specific fanart for each OST Album.
The problem I have is, that I don't have Artwork for every single Artist. I know I can set a fallback, but I don't want to link to a Default fanart, I like to link to the the Album fanart of the song that is currently selected/playing, if no Artist fanart exists.
Is that possible to achieve?
Thanks in advance for your help.
Regards sonic
I assume you are using Estuary skin? For that skin I think you would need to edit the skin file for music visualisation (MusicVisualisation.xml). You need to be able to access the main Kodi addon folder to get to the skin addon folder and then the xml subfolder that contains the actual skin files.
Near the top of the file you see the skin image "control" that loads the artist fanart:
Code:
<control type="image">
<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>
<texture background="true" colordiffuse="88FFFFFF">$INFO[Player.Art(fanart)]</texture>
</control>
Copy that entire block of text and paste it immediately following (so it is repeated). Edit the <texture> line and add a new line as follows into the copy you just added:
Code:
<texture background="true" colordiffuse="88FFFFFF">$INFO[Player.Art(album.fanart)]</texture>
<visible>String.IsEmpty(Control.GetLabel(1000))</visible>
Then in the first of the two image controls, add the id "1000" in the first line:
Code:
<control type="image" id="1000">
Save your modified file (probably good to back up the original in case you make a mistake or want to restore the original version). Note that if you update Kodi it will over-write your modified file.
This assumes you have an art assigned in the album "fanart" slot.
Edit: OK looking further, there's another small change that needs to be made. This one ensure that the "ColoredBackgroundImages" fade when you use the Player.Art(album.fanart). This is a line a bit further down (after adding the previous, the new line number is 43):
Code:
<animation effect="fade" start="100" end="30" time="0" condition="!Skin.HasSetting(hide_background_fanart) + [!String.IsEmpty(Player.Art(fanart)) | Visualisation.Enabled | System.HasAddon(script.artistslideshow)]">Conditional</animation>
It needs to look like this:
Code:
<animation effect="fade" start="100" end="30" time="0" condition="[!Skin.HasSetting(hide_background_fanart) + [!String.IsEmpty(Player.Art(album.fanart) | !String.IsEmpty(Player.Art(fanart)) | System.HasAddon(script.artistslideshow)]] | Visualisation.Enabled">Conditional</animation>
scott s.
.