Need to fix kodi xml .nfo format for fanart and thumb
#1
You should remove the feature to save .nfo until you fix the xml format. When .nfo is saved kodi will not show any thumbs

fan art will will be saved as

Code:
<fanart>http://image.tmdb.org/t/p/original/id2qZADRqKEGFxf7yeHLp4tHaEo.jpg</fanart>

where it should be saved as:

Code:
<fanart>
        <thumb preview="http://image.tmdb.org/t/p/original/id2qZADRqKEGFxf7yeHLp4tHaEo.jpg">http://image.tmdb.org/t/p/original/id2qZADRqKEGFxf7yeHLp4tHaEo.jpg</thumb>
             <thumb preview="http://image.tmdb.org/t/p/w780/o3P90r3owOlD86e27aC801rk4QI.jpg">http://image.tmdb.org/t/p/original/o3P90r3owOlD86e27aC801rk4QI.jpg</thumb>
</fanart>
#2
What is the / your problem?
#3
Are you saying that Fanart needs to be renamed to Thumbs?
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
#4
The TMM saved XML format is INCORRECT so Kodi does not recognize the thumb url. This is why Jodi will not show artwork when you save the .nfo

INCORRECT TMM XML:
Code:
<thumb>http://image.tmdb.org/t/p/original/fkFp0nGcSsF8216I1zG6rtO5ybN.jpg</thumb>
    <fanart>http://assets.fanart.tv/fanart/movies/11974/moviebackground/the-burbs-569876b02d8c6.jpg</fanart>

CORRECT Kodi XML format:
Code:
<thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/7xNhRac6lwSaHxJsOk5trFWUDGa.jpg">http://image.tmdb.org/t/p/original/7xNhRac6lwSaHxJsOk5trFWUDGa.jpg</thumb>
    <thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/2B78dT7Bs8HhtpgcljOWlsaX5I6.jpg">http://image.tmdb.org/t/p/original/2B78dT7Bs8HhtpgcljOWlsaX5I6.jpg</thumb>
    <fanart>
        <thumb preview="http://image.tmdb.org/t/p/w780/8keMlLuzB9XIUBnbdEq5DCqZdHQ.jpg">http://image.tmdb.org/t/p/original/8keMlLuzB9XIUBnbdEq5DCqZdHQ.jpg</thumb>
        <thumb preview="http://image.tmdb.org/t/p/w780/bTFeSwh07oX99ofpDI4O2WkiFJ.jpg">http://image.tmdb.org/t/p/original/bTFeSwh07oX99ofpDI4O2WkiFJ.jpg</thumb>
    </fanart>
#5
Could you tell whats wrong?
This makes a bit of a puzzle still
#6
Kodi somewhen changed it's NFO format to support more than one image per type in NFO.
Nevertheless, when having a local image file, this has always precedence over thos in NFO (at least, this is my last information)
Furthermore, Kodi should be pretty backward compatible, so it should read quite fine...

We have already changed the format for TMM v3...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#7
(2017-08-16, 08:56)myron Wrote: Kodi somewhen changed it's NFO format to support more than one image per type in NFO.
Nevertheless, when having a local image file, this has always precedence over thos in NFO (at least, this is my last information)
Furthermore, Kodi should be pretty backward compatible, so it should read quite fine...

We have already changed the format for TMM v3...

Unfortunately the created .NFO takes precedence over any locally saved images (unless you know a setting that can change this?) so the problem is if you save the .nfo then update library you will be missing fanart.

If you update(refresh) the same single movie (under movie information) and click YES when asked "Locally stored information found. Ignore and refresh from internet?" the fanart is properly displayed again because it ignored the bad .nfo created. In addition the fanart and cover are both properly saved to directory, which do not display if nfo is there.

I would love it if there was a way to use the .nfo and locally saved artwork. I really would like to update library without internet connection. Not sure if just removing <thumb>'s from xml would solve this.

At least this is my experience on windows and libreelec.
#8
I have never experienced that. I have one computer that is not connected to the internet, and it does scrape both the nfo file and local artwork.

Maybe post a screenshot of Windows Explorer (or equivelant) showing what is in your movie directory.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
#9
I think this is much related to an issue i have been having for a long time. I have addressed this in a few threads i started here too.

When i add stuff to my library, i always make sure it has nfo file plus all artwork downloaded into my media lib before i let kodi scrape it. I use TMM for this purpose.

I find that if tmm doesnt download fanart and banner etc, but needs to go through manual selection, it does create all the files but kodi isnt gona scrape them.

By manual selection i mean either of the following
(1) opening the movie details dialogue, and then clicking the box for eg fanart, and then choosing one of the (many) images showing up (apparently tmm doesnt choose one by itsef)
(2) opening same dialogue, and pasting an imag url and then downloading and selecting that fanart (or thumb)

I these cases i virtually always have to go into kodis movie information, and manually select the fanart.

I guess above posting saying that once a nfo is found, kodi then no longer loading the fanart.jpg, only partly explains it. When i select fanart manually in tmm, i believe (havent exhaustively verified tho) that tmm DOES put an image url in the nfo. Leaves me puzzled why kodi still doesnt scrape
#10
according to http://kodi.wiki/view/Movie_artwork Kodi should pick up local stored artwork IF the few conditions are met:

e.g. poster:
* filename: poster.jpg/png
* ascpect ratio: 1:1.5 (should be met with the provided scraper sources)

if you have chosen another filename in the settings (e.g. folder.fpg/png) Kodi MAY NOT pick that up by default.

my personal settings are poster.jpg/png and fanart.jpg/png for years and I've never got a problem with kodi so far!
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#11
just tried it - works for me.

Scraped a movie, and exchanged the saved images (so different from those written into NFO)
Let Kodi scan with local information only.
My updated & local saved images are displayed, the ones written in NFO are ignored.

I have Kodi v17 plain, no addons or such installed.
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#12
(2017-08-24, 08:33)mlaggner Wrote: according to http://kodi.wiki/view/Movie_artwork Kodi should pick up local stored artwork IF the few conditions are met:

e.g. poster:
* filename: poster.jpg/png
* ascpect ratio: 1:1.5 (should be met with the provided scraper sources)

if you have chosen another filename in the settings (e.g. folder.fpg/png) Kodi MAY NOT pick that up by default.

my personal settings are poster.jpg/png and fanart.jpg/png for years and I've never got a problem with kodi so far!


The aspect ratio 1:1.5, is that pixel precise ratio?
And hence, if one pixel off, it wont load?
Is there similar requirement for fanart?
#13
Anybody?
#14
Hello mchp92,

Quote:The aspect ratio 1:1.5, is that pixel precise ratio
As far as I am aware, if you have a different ratio, it forces Kodi to fit the image into the allotted space. That means that your image can be squashed, stretched or perfect with portions of the image outside the image space depending on your ratio. So, yes it will load. But if you stick to the aspect ratios in the artwork pages, then you won't have weird looking artwork. There are a number of reasons artwork won't load, some include unsupported format, corrupted image file, the URL in the video database is no longer valid etc.

It is the same for all images. Try it out. Select a movie, rename a fanart image to poster.jpg, then try to load it. It will load right?

You know that you are the only one having problems with your artwork. It's been a while since I looked at your original thread, and I have probably read a thousand posts since then, but you must have some naming convention wrong. Your claim that what is exported is not imported is just completely wrong. I have done the import/export so many times that I have lost count. At least 40 or 50 times during the course of testing all those pages I wrote and rebuilding my primary and secondary Kodi installs.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
#15
It seems like that - i cant be the only one. Maybe i am overlooking something. I will upload a few sets of files to somewhere for maybe you to give it a go on your kodi?
- what is the best place to upload them?
- is there any movie clip available (which i can rename to the appropriate actual name) that i can use and not violate any copy rights?

Logout Mark Read Team Forum Stats Members Help
Need to fix kodi xml .nfo format for fanart and thumb0