Force detection of Cover.jpg instead of Folder.jpg ?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #1
I've spent the last few days experimenting with Eden and importing various sample sets from my library to learn how XBMC works.

I've got almost everything under control now, scraping and importing exactly as required.

I've also introduced an AdvancedSettings.xml file and used <thumbsize> to increase the max size of cover art and improve the display quality.

The ONLY thing I can't figure out is how to force XBMC to recognise local "cover.jpg" files instead of "folder.jpg" files as cover images (thumbnails?).

Is this even possible?

This is offered in advancedsettings.xml:

<dvdthumbs>
<remove>folder.jpg</remove>
<add>cover.jpg</add>
</dvdthumbs>

But that doesn't seem to be working for general video files, so I'm guessing that, as the name of the XML element implies, it's specific to DVD .iso files ?

I can work around the "folder.jpg" requirement if I absolutely have to but:

a. I have other media players besides XBMC accessing this collection that also rely on "folder.jpg" and need the image to be at a far smaller resolution than what I want to use with XBMC,
so I would prefer use a different filename altogether for XBMC and leave the existing folder.jpg images as they are.

b. I just can't believe that a system as powerful as XBMC does NOT offer a way to override the default file names. There MUST be a way to do that, surely?

I have a very big collection of movies with cover art, fan art and metadata all carefully hand picked and set exactly how I like it in the folders. So I WANT XBMC to use my local stuff before it even thinks about going to the internet for anything.

Yes, I'm a control freak Smile I like my stuff the way I like it.

Can anybody offer advice on this? I've done a lot of searching and digging around but I can't seem to solve this.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #2
The above tags should work fine. Note that XBMC only looks for a folder image during a scan if you have "movies in separate folders named after the movie" enabled.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #3
Hi Jonathan

Those tags did look promising but they don't seem to be working.

I cleared my test library out and then put a cover.jpg and folder.jpg file into one movie folder. The 2 images are distinctly different so I can tell for sure what's going on.

It still pulled in the folder.jpg and ignored the cover.jpg despite those settings.

BUT, I know that it's seeing the advancedsettings.xml file now and parsing it because the other setting I enabled in there to increase the quality of the cached images IS working as desired.

I definitely have the "movies in separate folders named after the movie" setting enabled because all of my movies reside in their own folders with their own artwork and metadata.

Everything is working exactly as desired and XBMC is awesome btw, but it refuses to see cover.jpg as valid cover art for some reason.

Anything else I can try?

If my movies are .mkv files in a separate folder for each should the <dvdthumbs> tag definitely be applicable ?
find quote
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #4
Update:

I removed all other cover images from the folder and left only the cover.jpg in there, then cleared everything and imported again.

That worked.

But then I cleared everything again, put a "folder.jpg" file back into the folder WITH the "cover.jpg" file and imported again from scratch.

This time the "folder.jpg" overrode the "cover.jpg"

But I have these tags in advancedsettings.xml:

<dvdthumbs>
<remove>folder.jpg</remove>
<add>cover.jpg</add>
</dvdthumbs>

That SHOULD mean that folder.jpg is ignored completely and ONLY cover.jpg is recognised, but that clearly is not the case.

It looks like the <add> tag is working, but the <remove> tag is not, and if both files exist then "folder.jpg" always takes precedence.

Could you please check your code Jonathan and see what's going on there?
(This post was last modified: 2012-05-01 12:26 by SiliconKid.)
find quote
vdrfan Offline
Team-XBMC Developer
Posts: 2,786
Joined: Jan 2008
Reputation: 7
Location: Germany
Post: #5
Code looks fine. Please check the cases (upper/lower) of your files. By default we check for "folder.jpg|Folder.jpg|folder.JPG|Folder.JPG".

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules
For troubleshooting and bug reporting please make sure you read this first.
find quote
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #6
I can confirm that ALL artwork files in that folder are lower case only.

V:\XBMC Test\Elektra\cover.jpg
V:\XBMC Test\Elektra\fanart.jpg
V:\XBMC Test\Elektra\about.jpg
V:\XBMC Test\Elektra\fanart1.jpg
V:\XBMC Test\Elektra\fanart2.jpg
V:\XBMC Test\Elektra\folder.jpg
V:\XBMC Test\Elektra\Elektra.xml
V:\XBMC Test\Elektra\Elektra.mkv

cover.jpg is being ignored if folder.jpg is in the folder with it, regardless of the tags in advancedsettings.xml

Are you sure that your code branching isn't resulting in that override? It seems like the <remove> tag is being ignored.

I'm a software engineer and have been for 18 years and I lead a dev team so I can't help but ask these kinds of questions and troubleshoot things like this Smile
(This post was last modified: 2012-05-01 13:02 by SiliconKid.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #7
Your advancedsettings file exactly as it is loaded by XBMC is the first thing for you to checkout - top of the debug log.

I'll check over the code in the meantime.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #8
From my current log:

09:32:43 T:1492 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<thumbsize>1500</thumbsize>
<dvdthumbs>
<remove>folder.jpg</remove>
<add>cover.jpg</add>
</dvdthumbs>
</advancedsettings>


To reiterate, this DOES seem to result in cover.jpg being picked up IF folder.jpg is not in the same folder.

It is loading the advancedsettings as I have it configured by the looks of it.

The core issue seems to be that IF folder.jpg exists everything else is ignored, regardless of the settings.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #9
You'll want:

<remove>folder.jpg|Folder.jpg|folder.JPG|Folder.JPG</remove>

as those are all the ones we support, and my guess is you're hitting one of the last 3 (due to case insensitive fs, or files named that way).

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SiliconKid Offline
Member
Posts: 85
Joined: Apr 2012
Reputation: 1
Post: #10
Bingo.

That would be the correct answer!

After all that, it's a case sensitivity issue again.

I probably should have come up with that myself in retrospect but it honestly never occurred to me.

I also didn't know you could pipe delimit the values like that inside a single tag. Would be worth updating the Wiki with that too.

I would actually suggest, however, that you consider changing the behaviour of the system regarding this particular tag.

If you think about it logically, if a person specifies that "folder.jpg" should be removed, it's pretty much implied that they mean all derivations of that name, regardless of case sensitivity.

I honestly can't think of any scenario, in the context of what this tag is intended for, where anybody would want to tell XBMC to remove "folder.jpg" but NOT "Folder.jpg" or "folder.JPG".

In this context all of the variants of that file name effectively mean exactly the same thing. So in theory, what I did originally, should have worked in this context.

Thanks for your help on this Jonathan and for your follow through. Excellent support.

Solved.
find quote
Post Reply