Showing backcover of cds (not embedded)?
#1
Question 
Hello everybody
I'm trying to figure out how to show CD Backcovers in an image control.
I allready have frontcovers embedded in flac files and they are showing fine, but for backcovers i would like to have XBMC point to a backcover image in the album folder, or something like that. (i.e not embedded)

In the Wiki there's a few commands for doing so (i think),
like "Skin.String(name)" combined with "Skin.SetImage(string[,value])"

However, how do i define it and put it in a regular image control?.

Thanks in Advance
& to the Devs, A big Thank You for this killer app!
Reply
#2
bump!

77 views and no one knows. Really?
:/

Maybe i didnt explain properly.
What i basicly want is another "ListItem.Icon", which can be defined by 2 things. A default name (for instance: backcover.jpg) and a default folder (currently selected folder in a list)
Reply
#3
If I read that right, you are trying to show an image that XBMC doesnt scape by default...

This is the code people use to show extrathumbs:
Quote:<texture>$INFO[ListItem.Path,,extrathumbs/thumb1.jpg]</texture>
The above means it looks in the path of the focused movie, then in a folder called 'etrathumbs' then it displays thumb1.jpg...

This is the code people use to show a custom clear TV show image on pause, you can change "Videoplayer" to "ListItem" for regular views:
Quote:<texture>clearart/$INFO[VideoPlayer.TVShowTitle].png</texture>
The above looks for an image in the skins media/clearart folder, then matches the title of the TV show you are watching to the corresponding .png...
Reply
#4
Thanks alot mcborzu, i really appreciate it.
This should get me going.
cheers
Reply
#5
just tested, no luck.

I think its because im not actually focusing on a specific song or movie, but rather a directory.

(From the wiki: listitem.path Shows the complete path of the currently selected song or movie in a list or thumb control)

My filestructure is: Artist/Albums/songs - surely there must be a way to show a custom image along listitem.icon when viewing albums?
Reply
#6
I'm still a tad fuzzy on what you are up to but if you are trying to show an image that XBMC doesnt scape by default when you are focused on that item like this image:
Image

I'm using movies as an example since I don't listen or have any music to test in XBMC.

When I scroll thru my movies and land on (500) Days of Summer it will now show a custom thumb like so with this code:
Quote:<control type="image">
<posx>1010</posx>
<posy>88</posy>
<width>261</width>
<height>147</height>
<aspectratio>scale</aspectratio>
<texture>$INFO[ListItem.Path]thumb1.jpg</texture>
</control>

An my directory looks like this:
E:\Media\Movies\(500) Days of Summer (2009)

So $INFO[ListItem.Path]thumb1.jpg will return:
E:\Media\Movies\(500) Days of Summer (2009)\thumb1.jpg
Reply
#7
Allright, here's an example. these 2 image controls are basicly identical, except for the <texture> part.

The Below shows the tagged frontcover fine:

<control type="image">
<description>frontcover in album view</description>
<posx>-100</posx>
<posy>220</posy>
<width>400</width>
<height>300</height>
<align>center</align>
<aspectratio>stretch</aspectratio>
<fadetime>IconCrossfadeTime</fadetime>
<texture background="true">$INFO[listitem.icon]</texture>
<visible>Container.Content(albums)</visible>
<include>VisibleFadeEffect</include>
</control>

Image


now, lets say i put an image named backcover.jpg in "x:\flac\pink floyd\the division bell\" and edit the <texture> to the following:

<control type="image">
<description>backcover in album view</description>
<posx>-100</posx>
<posy>220</posy>
<width>400</width>
<height>300</height>
<align>center</align>
<aspectratio>stretch</aspectratio>
<fadetime>IconCrossfadeTime</fadetime>
<texture>$INFO[ListItem.Path]backcover.jpg</texture>
<visible>Container.Content(albums)</visible>
<include>VisibleFadeEffect</include>
</control>

Image

i get nothing,
and i think the difference is that you are pointing to a specific .avi file, where i point to a directory (containing the actual flac files)
Reply
#8
i'm afraid you're out of luck.
ListItem.Path is not available at album level...at least not in library mode.
it should work at song level in the library though.


you could also try in filemode, using ListItem.Filenameandpath
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Showing backcover of cds (not embedded)?0