2009-09-15, 21:49
OK, I have another question of my own. The skin is working fine BTW, its about how my music is organised, but someone more skilled than me might know the answer!!
Regarding the spinning CD image and related to the "fanart in the same place as the music mod", I have a strange situation where (in order to maintain compatibility with iTunes) most of my albums live in the following structure:
/Volumes/Data/Music/<artist>/<album>, e.g. /Volumes/Data/Music/Moby/18
but compilations (albums by various artists) are organised differently:
/Volumes/Data/Music/Compilations/<album>, e.g. /Volumes/Data/Music/Compilations/The Annual 2009
How can I first try to load the cd image from the "normal" artist path, then the "compilations" path, then if nothing is found use the default.png overlay?
I've tried various combinations of the following, but nothing works properly, its almost as if i need a "if no cd art in "normal" path + no cd art in "compliations" path then use default.png" clause, any way to do this in the xml?
Regarding the spinning CD image and related to the "fanart in the same place as the music mod", I have a strange situation where (in order to maintain compatibility with iTunes) most of my albums live in the following structure:
/Volumes/Data/Music/<artist>/<album>, e.g. /Volumes/Data/Music/Moby/18
but compilations (albums by various artists) are organised differently:
/Volumes/Data/Music/Compilations/<album>, e.g. /Volumes/Data/Music/Compilations/The Annual 2009
How can I first try to load the cd image from the "normal" artist path, then the "compilations" path, then if nothing is found use the default.png overlay?
I've tried various combinations of the following, but nothing works properly, its almost as if i need a "if no cd art in "normal" path + no cd art in "compliations" path then use default.png" clause, any way to do this in the xml?
Code:
<control type="image">
<description>Cd overlay</description>
<animation effect="slide" start="-118" end="0" time="700" tween="cubic" easing="out" delay="1000">WindowOpen</animation>
<animation type="WindowClose">
<effect type="slide" start="0" end="-114" time="700" tween="cubic" easing="in" delay="0"/>
<effect type="fade" start="100" end="0" time="1300"/>
<condition type="!Player.Playing"/>
</animation>
<animation effect="rotate" end="-360" center="auto" time="2000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<width>270</width>
<height>228</height>
<posx>175</posx><!-- 112 -->
<posy>-143</posy><!-- -143 -->
[color=red]<texture fallback="backdrops/artist_fanart/default/default.png">$INFO[Skin.String(cdartpath)]/Compilations/$INFO[MusicPlayer.Album]/cd.png</texture>[/color]
<aspectratio align="bottom">keep</aspectratio>
</control>
<control type="image">
<description>Cd overlay</description>
<animation effect="slide" start="-118" end="0" time="700" tween="cubic" easing="out" delay="1000">WindowOpen</animation>
<animation type="WindowClose">
<effect type="slide" start="0" end="-114" time="700" tween="cubic" easing="in" delay="0"/>
<effect type="fade" start="100" end="0" time="1300"/>
<condition type="!Player.Playing"/>
</animation>
<animation effect="rotate" end="-360" center="auto" time="2000" loop="true" reversible="false" condition="!Player.Paused">Conditional</animation>
<width>270</width>
<height>228</height>
<posx>175</posx><!-- 112 -->
<posy>-143</posy><!-- -143 -->
[color=red]<texture fallback="backdrops/artist_fanart/default/default.png">$INFO[Skin.String(cdartpath)]/$INFO[MusicPlayer.Artist]/$INFO[MusicPlayer.Album]/cd.png</texture>[/color]
<aspectratio align="bottom">keep</aspectratio>
<!--<visible>!Control.IsVisible(110)</visible>-->
</control>