I HATE library mode. Can anyone help me to modify Aeon to show fanart in file view?
#1
Ok, let's start from this: I HATE library mode. Nod

Please don't ask me why (there are a lot of reasons that I share with a lot of users, as I read in many threads on this forum) and please, PLEASE, don't try to convince me to use the library mode. It's my choice to not use library mode, and I hope you can respect it Wink

Now, we can start. I'm currently using XBMC 9.11 with the skin AEON 2.1.

My video and music libraries are on two hard-drives, with this structure:


M:\Music\
---------\Artist01\
------------------\folder.jpg
------------------\fanart.jpg
------------------\Album01\
---------------------------\folder.jpg
---------------------------\fanart.jpg
---------------------------\song01.mp3
---------------------------\song02.mp3
------------------\Album02\
---------------------------\folder.jpg
---------------------------\fanart.jpg
---------------------------\song01.mp3
---------------------------\song02.mp3
---------\Artist02\
------------------\folder.jpg
------------------\fanart.jpg
------------------\Album01\
---------------------------\folder.jpg
---------------------------\fanart.jpg
---------------------------\song01.mp3
---------------------------\song02.mp3
------------------\Album02\
---------------------------\folder.jpg
---------------------------\fanart.jpg
---------------------------\song01.mp3
---------------------------\song02.mp3

S:\Films\
--------\film01.avi
--------\film01.tbn
--------\film01-fanart.jpg
--------\film02.avi
--------\film02.tbn
--------\film02-fanart.jpg
--------\film03.avi
--------\film03.tbn
--------\film03-fanart.jpg

S:\TV Shows\
-------------\show01\
---------------------\folder.jpg
---------------------\fanart.jpg
---------------------\season01\
-------------------------------\folder.jpg
-------------------------------\fanart.jpg
-------------------------------\episode01.avi
-------------------------------\episode02.avi
---------------------\season02\
-------------------------------\folder.jpg
-------------------------------\fanart.jpg
-------------------------------\episode01.avi
-------------------------------\episode02.avi
-------------\show02\
---------------------\folder.jpg
---------------------\fanart.jpg
---------------------\season01\
-------------------------------\folder.jpg
-------------------------------\fanart.jpg
-------------------------------\episode01.avi
-------------------------------\episode02.avi
---------------------\season02\
-------------------------------\folder.jpg
-------------------------------\fanart.jpg
-------------------------------\episode01.avi
-------------------------------\episode02.avi


I have modified the Includes_MainMenu.xml changing the following code

Code:
<item id="6">
    <label>31013</label>
    <onclick>Skin.SetBool(videomovies)</onclick>
    <onclick>Skin.Reset(videotv)</onclick>
    <onclick>XBMC.ActivateWindow(MyVideoLibrary,movietitles)</onclick>
    <visible>!Skin.HasSetting(nomovies)</visible>
</item>
<item id="7">
    <description>My Videos</description>
    <label>31014</label>
    <onclick>Skin.SetBool(videotv)</onclick>
    <onclick>Skin.Reset(videomovies)</onclick>
    <onclick>XBMC.ActivateWindow(MyVideoLibrary,tvshowtitles)</onclick>
    <visible>!Skin.HasSetting(notvshows)</visible>
</item>

into this:

Code:
<item id="6">
    <label>31013</label>
    <onclick>Skin.SetBool(videomovies)</onclick>
    <onclick>Skin.Reset(videotv)</onclick>
    <onclick>XBMC.ActivateWindow(10024,S:\Films\)</onclick>
    <visible>!Skin.HasSetting(nomovies)</visible>
</item>
<item id="7">
    <label>31014</label>
    <onclick>Skin.SetBool(videotv)</onclick>
    <onclick>Skin.Reset(videomovies)</onclick>
    <onclick>XBMC.ActivateWindow(10024,S:\TV Shows\)</onclick>
    <visible>!Skin.HasSetting(notvshows)</visible>
</item>

So, when i click on Movies on the main menu I open my movies library in file list mode and when I click on TV Shows I open my tv shows library in file list mode.

Good.

Now, all I want to do is the following:

1) In the Movies section I have the list of my movies (each one with its <movie>.tbn poster) and I would like to use the <movie>-fanart.jpg as a background for the currently selected movie in the list.

2) In the TV Shows section I have the list of my tv shows (each one is a folder with its folder.jpg as DVD cover) and I would like to use the fanart.jpg (in the tv show's folder) as a background for the currently selected tv show in the list.
Then I click on a tv show and I have the list of the seasons of that tv show (each season is a folder with its folder.jpg as DVD cover) and I would like to use the fanart.jpg (in the season's folder) as a background for the currently selected season in the list.
Then i click on a season and I have the list of the episodes (each one is an avi and appears with the automatically generated preview) and I would like to use the fanart.jpg (in the same season folder) as a background for all the episodes.

3) Same thing for the Music section (I will not write it again, I'm sure you understood what i mean! Laugh )

I think I have to modify something in the MyVideo.xml to use fanart in Movies and TV Shows... for example, I changed the following code:

Code:
<control type="multiimage">
    <include>Background_SingleImage</include>
    <imagepath>backdrops/default_movies</imagepath>
    <info>Skin.String(CustomVideo)</info>
    <visible>!Skin.String(CustomVideoFolder)</visible>
</control>

into:

Code:
<control type="multiimage">
    <include>Background_SingleImage</include>
    <imagepath>S:\Films\Akira-fanart.jpg</imagepath>
    <info>Skin.String(CustomVideo)</info>
    <visible>!Skin.String(CustomVideoFolder)</visible>
</control>

and the Akira fanart is used as background in the Movies and TV Shows sections. Obviously, this is wrong, but I'm trying to figure out how it works. I think it should be something like

Code:
<imagepath>S:\Films\$INFO[listitem.filename]-fanart.jpg</imagepath>

But it doesn't work. Sad

Anyway, can anyone help me, please?

Maybe there is already an Aeon's mod that works exactly as I want... am I dreaming? Big Grin
Reply
#2
Well I don't hate library mode but I could use what you're asking for and as such I went ahead and tried to make it work. And work it does!

Code:
    <control type="largeimage">
        <include>FullscreenDimensions</include>
        <visible>Control.IsVisible(57)</visible>
        <include>Animation_FanartFade</include>
        <fadetime>800</fadetime>
        <texture>$INFO[Container.FolderPath ]\folder_sheet.jpg</texture>
    </control>

Just use this instead, it works like a charm (but don't forget to change the filename. I use folder_sheet.jpg for compatibility with the mod I use for my WDTV).
Reply
#3
Thank you dextro! This is a good way to start the new year! Nod

Let's make it clear for the others who are interested in this argument: I changed the following code in MyVideo.xml

Code:
<control type="largeimage">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57) + !IsEmpty(listitem.property(fanart_image)) + !Skin.HasSetting(nomoviefanart)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>        
    <texture>$INFO[listitem.property(fanart_image)]</texture>
</control>

into this

Code:
<control type="largeimage">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[Container.FolderPath]\fanart.jpg</texture>
</control>

Now, it works but only in the TV Shows section and not in the "first level" (when you choose the tv show): it works in the "second level" (when you choose the tv show's season) and in the "third level" (when you choose the episode).

So, I changed the code above into this one:

Code:
<control type="largeimage">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[ListItem.FileNameAndPath]-fanart.jpg</texture>
</control>

<control type="largeimage">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[Container.FolderPath]\fanart.jpg</texture>
</control>

<control type="largeimage">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[ListItem.FileNameAndPath]\fanart.jpg</texture>
</control>

The second and third part of the code work perfectly in the TV Shows section.
The first part is for the Movies section, but there is a little problem: the code $INFO[ListItem.FileNameAndPath]-fanart.jpg returns something like S:\Films\Akira.avi-fanart.jpg because FileNameAndPath shows the file name with the extension. I can resolve renaming the <movie>-fanart.jpg files into <moive>.avi-fanart.jpg, but I would prefer to correct the code to show the file name without extension. I don't think there is a XBMC label with this function, so the code should be something like this:

Code:
<texture>left($INFO[ListItem.FileNameAndPath], ($INFO[ListItem.FileNameAndPath].len - 4))-fanart.jpg</texture>

The example is in VBscript, a language I know: it takes the FileNameAndPath string and removes the last 4 characters (the .avi extension).

Anyone knows how to get it work in XBMC? Huh

Next, we will try to use fanart in Music section Nerd
Reply
#4
Ok, I resolved for the Music section: in the Includes_MainMenu.xml i changed the code

Code:
<item id="1">
    <label>31010</label>
    <onclick>XBMC.ActivateWindow(MyMusic)</onclick>
    <visible>!Skin.HasSetting(nomusic)</visible>
</item>

into

Code:
<item id="1">
    <label>31010</label>
    <onclick>XBMC.ActivateWindow(10501,M:\Musica\)</onclick>
    <visible>!Skin.HasSetting(nomusic)</visible>
</item>

and then in the MyMusicSongs.xml I changed the code

Code:
<control type="largeimage" id="102">
    <include>FullscreenDimensions</include>
    <visible>!Control.IsVisible(103) + Control.IsVisible(57) + !IsEmpty(listitem.property(fanart_image)) + !Skin.HasSetting(nomusicfanart)</visible>
    <fadetime>400</fadetime>
    <texture>$INFO[listitem.property(fanart_image)]</texture>
    <include>Animation_FanartFade</include>
</control>

<control type="largeimage" id="103">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57) + !IsEmpty(container.property(fanart_image)) + !Skin.HasSetting(nomusicfanart)</visible>
    <fadetime>400</fadetime>
    <texture>$INFO[container.property(fanart_image)]</texture>
    <include>Animation_FanartFade</include>
</control>

into

Code:
<control type="largeimage" id="102">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[Container.FolderPath]\fanart.jpg</texture>
</control>

<control type="largeimage" id="103">
    <include>FullscreenDimensions</include>
    <visible>Control.IsVisible(57)</visible>
    <include>Animation_FanartFade</include>
    <fadetime>400</fadetime>
    <texture>$INFO[ListItem.FileNameAndPath]\fanart.jpg</texture>
</control>

So, also the Music section now shows fanarts in file view mode! Big Grin

Now, we just have to resolve the last problem in my previous post: how to show fanart in the Movies section.
Anyone knows which programming language is used in these xml file? The code <texture>$INFO[ListItem.FileNameAndPath]\fanart.jpg</texture> what language isHuh Eek
Reply
#5
filodicapello Wrote:Now, we just have to resolve the last problem in my previous post: how to show fanart in the Movies section.
Anyone knows which programming language is used in these xml file? The code <texture>$INFO
[ListItem.FileNameAndPath]\fanart.jpg</texture>
what language isHuh Eek

English?
Reply
#6
xbmc natively supports movie fanart in filemode.
you just have to scan your collection to the library first.
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
#7
ronie Wrote:xbmc natively supports movie fanart in filemode.
you just have to scan your collection to the library first.
And this is exactly what I do not want to do Wink
Reply
#8
Done! Big Grin

the right code for the movies is

Code:
<texture>$INFO[ListItem.Path]\$INFO[ListItem.Label]-fanart.jpg</texture>

I'm really happy now Laugh
Reply

Logout Mark Read Team Forum Stats Members Help
I HATE library mode. Can anyone help me to modify Aeon to show fanart in file view?0