Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Why doesn't KODI read movie.nfo files ?
#16
Sorry, but NO!

I have now run on three different W10x64 Pro (Swedish) machines, latest updates. All have different antivirus solutions (just in case that is a problem). Two have the Kodi x64 17.6 from Windows Store, one has x32 direct download.

ALL gives the Debug msg "No NFO file found" on the very same structure that you just sent me in the RAR file.

10:50:59.960 T:11660   DEBUG: VideoInfoScanner: Scanning dir 'D:\Test bin\Sture och Kerstin forever (2010)\' as not in the database
10:50:59.968 T:11660   DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'D:\Test bin\Sture och Kerstin forever (2010)\Sture och Kerstin forever (2010).mkv'
10:50:59.968 T:11660   DEBUG: ADDON::CScraper::FindMovie: Searching for 'Sture och Kerstin forever' using Universal Movie Scraper scraper (path: 'C:\Users\bowan\AppData\Roaming\Kodi\addons\metadata.universal', content: 'movies', version: '4.1.7')


As I have read in some forums that others seem to have similar problems with disregarded nfo files, I just wonder if you test on dev machines with 'extras' that we ordinary users lack? Or if differemt locales is a problem?

I don't think we can get any further this way. I have downloaded the source code from git, and if I manage to compile it, I will add extra debugging info. I would VERY much like to see exactly what path the VideoInfoScanner tests for nfo files.

Kind regards
Bo
Reply
#17
Ok. let us know your results.

But for clarification... we are volunteers. We have no special equipment with "extras". This is a computer I built from components I purchased with my own money and Kodi did not supply it to me. In fact I have had these computers well before my involvement with Team-Kodi.
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)
Reply
#18
(2018-03-23, 12:20)bowan Wrote: Sorry, but NO!

I have now run on three different W10x64 Pro (Swedish) machines, latest updates. All have different antivirus solutions (just in case that is a problem). Two have the Kodi x64 17.6 from Windows Store, one has x32 direct download.

I have also test adding Sture och Kerstin forever with an nfo file and can confirm Karellen findings that everything is working as it should, so there is something definitely wrong with what you are doing.

Did you even bother trying what Karellen uploaded after he's taken the time to test and provide you what works for him?

(2018-03-23, 12:20)bowan Wrote: As I have read in some forums that others seem to have similar problems with disregarded nfo files,

In all cases it turns out to be either user error or using some third party tool to generate the nfo files in a format that not compatible.
Reply
#19
If you still don't believe us see

https://pastebin.com/nRjpHz8y

Line 5 will show you folder name as some movie (2010) so no way for that to be used.
Lines 11/12 will shows a URL NFO file was found
Line 18 will tell you Sture & Kerstin Forever was identified from a search using imdb id tt1655439
Line 67 shows the movie file is some movie (2010).mkv so again there was no way that could be used, and that the details found are being associated to that file.
Reply
#20
Note as TMDB was the set scraper for the source the IMDB ID is taken from the URL and used to search for the movie details on the TMDB database, if you want to scrape from IMDB website you must use the Universal Movie scraper.

[edit]

Just for completeness successful scan using Universal Movie scraper to get details from IMDB website https://pastebin.com/1nfavRZw
Reply
#21
Dear karellen and jjd-uk,

Thanks again for your help. I think I have expressed my sincerere appreciation for your work and dedication several times in this thread.

Of course I have 'bothered' to download karellen's structure before reporting back. He and you can use the movie.nfo, in my setup it does not work.

A made a new fresh copy of karellen's structure from the rar he so kindly provided, renamed the files according to jjd-uk's example, and tested again. The test went wrong, no NFO file found.

So, I have made a small sequence of screen dumps on how I setup the source. Would you kindly look the Google photo album and see if I do anything obnoxiously wrong?

Full log here, please see line 326

15:41:08.445 T:17952   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
15:41:08.445 T:17952   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanStarted
15:41:08.450 T:4656   DEBUG: VideoInfoScanner: Scanning dir 'D:\Test jjd-uk\' as not in the database
15:41:08.455 T:4656   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\Test jjd-uk\
15:41:08.459 T:4656   DEBUG: VideoInfoScanner: Scanning dir 'D:\Test jjd-uk\some movie (2010)\' as not in the database
15:41:08.467 T:4656   DEBUG: CVideoDatabase::GetMovieId (D:\Test jjd-uk\some movie (2010)\some movie (2010).mkv), query = select idMovie from movie where idFile=8
15:41:08.467 T:4656   DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'D:\Test jjd-uk\some movie (2010)\some movie (2010).mkv'
15:41:08.467 T:4656   DEBUG: ADDON::CScraper::FindMovie: Searching for 'some movie' using Universal Movie Scraper scraper (path: 'C:\Users\bowan\AppData\Roaming\Kodi\addons\metadata.universal', content: 'movies', version: '4.1.7')
15:41:08.486 T:4656   DEBUG: scraper: CreateSearchUrl returned <url>http://akas.imdb.com/find?q=some%20movie&s=tt|accept-language=en-us</url>

With the greatest respect for your work, competence and ambition, I am a pro developer for 40 years. Having written tons of asm, c and c++ for the aircraft industry under the strictest guidlines, I know a little bit about pitfalls. One quite common, is that you test on your dev machine, which can differ substantially from the final operating environment. As we do get very different results on the very same sources, I realise that either the installations on my three machines are all compromised and not the same as yours, the file system differs, or that I do something fundamentally wrong when I setup my sources. I humbly assume that you run Kodi from the official downloads? Just to rule out that our installation files differ?

P.S: The structure is zipped here.

Kind regards
Thanks
Bo
Reply
#22
(2018-03-23, 17:53)bowan Wrote: Of course I have 'bothered' to download karellen's structure before reporting back. He and you can use the movie.nfo, in my setup it does not work.

You didn't make it entirely clear what exactly you had done as you didn't mention downloading the files karellen uploaded and then using those files in your attempt to scrape, it seemed to me that you may have possibly used your own files in the same structure karellen. Anyway moving on, the only thing I immediately see different in your screenshots is Movies are in separate folders that match the movie title is not enabled.
Reply
#23
That's your problem I think, tested with Movies are in separate folders that match the movie title disabled and get same as you, because that is off it's looking inside the path D:\Test jjd-uk\ for any nfo files.

I get pretty much same as you with that disabled https://pastebin.com/Bt1RZSsj
Reply
#24
Dear jjd-uk and karellen,

YES, I'm ever som grateful! My movies now resolve according to the movie.nfo parsing url! THANK YOU!

To summarize what's needed for movie.nfo files to work:

a) You have to have the Universal scarper installed. 
b) "Movies are in separate folders that match the movie title" must be set to ON. 
c) movie.nfo files must be in correct format, encoding utf-8.

Maybe that info could be added to the Wiki?

My erroneous setting was probably because too many tests that included TV Shows. Back to square one I'm afraid - my original problem was with TV Shows (I already hear your sighs..)

Is there ANY way I can make scraping TV Shows use a single (!) parsing tvshow.nfo file for the entire show, as described in the Wiki section 2.1? That the content of the tvshow.nfo take precedence over any folder or file name lookup?

I have several local series, among one is called "Zorn (1994)" (about a painter) that Kodi stubbornly calls "Son of Zorn (2016)" (animated). I can't correct it.

The structure (for torture tests!!) is

Series (set as source, content TV Show)
 |
 +- Z
     |
     +- tvshow.nfo  (parsing, contains http://www.imdb.com/title/tt0111848  in ANSI coding)
     +- Z_s01e01.mkv
     +- Z_s01e02.mkv
     +- Z_s01e03.mkv

I have the same problem here as with Movies, "NFO file not found". I have tested setting "Selected folder contains a single TV show" both enabled and disabled. The wiki's explanation:

"Selected folder contains a single TV show
  Allows you to change the Content settings for a particular TV Show without affecting the entire Source"

isn't crystal clear to me... Maybe a language barrier.

When enabled it seems as the VideoInfoScanner searches for nfo files for each episode file. But I see no search for a common tvshow.nfo file, as is described in the Wiki.

a) Do I need another scraper (which?) as the Universal when we handled Movies?
b) Is there any other setting I'm missing?
c) Do I have to go down on each TV show folder and "change content"?

Very sorry to take up your time. 

Kind regards 
Bo
Reply
#25
The Universal Movie Scraper does not work with TV Shows. It is for Movies only. For TV shows you need to rely on https://www.thetvdb.com/ Search for your tv show there. The TVDB also uses IMDB ID's, so the TTxxxxx ID can be used as a search criteria in their database, that is why putting in a IMDB link into the Parsing NFO will find the TV Show if it exists at TVDB.

Zorn (1994) is a movie according to the link you provided, so I don't understand why you are trying to treat it as a TV Show.

Son of Zorn is a TV Show, so the scraper is returning the only result that matches your search criteria.

(2018-03-23, 21:29)bowan Wrote: a) You have to have the Universal scarper installed. 
b) "Movies are in separate folders that match the movie title" must be set to ON. 
c) movie.nfo files must be in correct format, encoding utf-8.

Maybe that info could be added to the Wiki?
a) This is one we have debated, and the explanation for this in the wiki for this item has been fixed. Using the IMDB web address simply provides the scraper with the TTxxxxx ID of the show. Most scraper sites have a field for the Movie's IMDB ID in their database. The TTxxxxx ID is then used as a search criteria at the current site, not at IMDB. If you want the IMDB information, then you need to install Universal Movie Scraper, and ensure all settings are using IMDB.

b) Wont be added to the nfo page. It is a scraper setting, and explanations for what it does are in the scraper settings.

c) already added to a new section- Troubleshooting on the parent NFO page
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)
Reply
#26
Karellen,

You were to quick, I was just going to say that I found the problem with the TV Shows.

The problematic shows (quite many in fact) when aired over here, are sent as series, not as ONE single movie as described in IMDB. My mistake, I should have checked IMDB better.

Again, a thousand THANKS!

Best // Bo
Reply
#27
Is this the series https://www.thetvdb.com/?tab=series&id=329498&lid=8

If so it’s on tvdb as 3 episodes so why are you looking to scrape from imdb? is it because as far I can from a quick search on my mobile there’s no English translation?
Reply
#28
Kodi debug log does not give good hints about missing nfo file.  What it really means is either no file was found or if found, Kodi couldn't get usable info out of it.   I have had the problem of text encoding in UTF-16 or UCS-2 LE or what have you.  Needs to be ANSI or UTF-8 to work.  Note that there is no need for a BOM in UTF-8 though for some reason windows text editors like to stick one in there.

scott s.
.
Reply
#29
@ jjd-uk

Thanks, you are probably right!

I think I abandoned TheTVDb a long time ago, because of frequent "Service Unavailable 503" errors, like in this very moment, and went for IMDB. 

But I'll try it again!

Tnx // Bo
Reply
#30
After re-reading the thread I see OP was using "movie.nfo" as his filenames.   To use movie.nfo you must select "movies are in separate folders"  which makes sense, stumbling around the code in VideoInfoScanner::GetnfoFile it appears that movie.nfo is only allowed when that's checked.  For stacked movie files or when that setting isn't selected you need <<moviefilemame>>.nfo, at least that's how I read the code.  See VideoInfoScanner.cpp @ line 1646.  In my reading the caller sets/passes the bool bGrabAny based on that setting.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
Why doesn't KODI read movie.nfo files ?0