Jump to content

.nfo only with imdb link


steini

Recommended Posts

Hey guys

 

I noticed that only having a imdb url in a .nfo crashes the xml parser and no metadata or images are fetched for the movie:

 

Exampe 

 

Moviename.xml contains:

http://www.imdb.com/title/tt0408306/

 

The relevant part of the log:

 

2015-01-14 18:03:27.2346 Error - App: Error in Nfo
*** Error Report ***
Version: 3.0.5482.1
Command line: /opt/MediaBrowser/MediaBrowserServer/bin/MediaBrowser.Server.Mono.exe -programdata /var/opt/MediaBrowser/MediaBrowserServer
Operating system: Unix 3.10.0.123
Processor count: 2
64-Bit OS: True
64-Bit Process: True
Program data path: /var/opt/MediaBrowser/MediaBrowserServer
Mono: 3.10.0 (tarball Sat Nov 15 03:35:34 UTC 2014)
Application Path: /opt/MediaBrowser/MediaBrowserServer/bin/MediaBrowser.Server.Mono.exe
Text node cannot appear in this state.  Line 1, position 1.
System.Xml.XmlException
 at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
 at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
 at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
 at Mono.Xml.XmlFilterReader.Read () [0x00000] in <filename unknown>:0 
 at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
 at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.Video].Fetch (MediaBrowser.Controller.Entities.Video item, System.Collections.Generic.List`1 userDataList, System.String metadataFile, System.Xml.XmlReaderSettings settings, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
 at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.Video].Fetch (MediaBrowser.Controller.Entities.Video item, System.Collections.Generic.List`1 userDataList, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
 at MediaBrowser.XbmcMetadata.Parsers.MovieNfoParser.Fetch (MediaBrowser.Controller.Entities.Video item, System.Collections.Generic.List`1 userDataList, System.Collections.Generic.List`1 chapters, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
 at MediaBrowser.XbmcMetadata.Providers.BaseVideoNfoProvider`1[MediaBrowser.Controller.Entities.Movies.Movie].Fetch (MediaBrowser.Controller.Providers.LocalMetadataResult`1 result, System.String path, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
 at MediaBrowser.XbmcMetadata.Providers.BaseNfoProvider`1+<GetMetadata>c__async0[MediaBrowser.Controller.Entities.Movies.Movie].MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Providers.LocalMetadataResult`1[MediaBrowser.Controller.Entities.Movies.Movie]].GetResult () [0x00000] in <filename unknown>:0 
 at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshWithProviders>c__async1[MediaBrowser.Controller.Entities.Movies.Movie,MediaBrowser.Controller.Providers.MovieInfo].MoveNext () [0x00000] in <filename unknown>:0 
I really enjoy only having to enter the imdb url in a nfo and it works perfectly with Kodi. The imdb link will be relevant while imdb is a running service, but other things can change (like rating etc).
 
Thanks
Link to comment
Share on other sites

MikePlanet

I notices too, that MBS currently can't use any non xml formed nfo files.

@Luke: I think it would be a good idea to first try to read the nfo as xml, catch the exception, if it is malformed and allow (in case xml reading is not successful) to simply read the file as text stream and parse IMDB id via REGEX (same we already use for media path) - that would grab the IMDB from any form of file and probably helps a lot of ppl.

Link to comment
Share on other sites

we do handle an imdb url after the closing xml, but we don't currently handle the situation where the contents of the file is just a url. so i'll add a fix for that.

Link to comment
Share on other sites

  • 1 month later...
josh4trunks

we do handle an imdb url after the closing xml, but we don't currently handle the situation where the contents of the file is just a url. so i'll add a fix for that.

Hey @@Luke

I also prefer to have simple .nfo's with just an IMDB URL. I have CouchPotato do my downloading/naming/ and add the simple .nfo.

MediaBrowser see's these new movies and adds them to my library but doesn't download any metadata for them. I'm guessing because it thinks the .nfo should have this stuff already.

 

I can mitigate this with 'Metadata Manager > Movies > Refresh' but I was wondering if there was a better way.

Can I tell MediaBrowser scan in movies with a simple (non-xml) .nfo, add to my library, and download metadata?

 

Thanks!

Edited by josh4trunks
Link to comment
Share on other sites

josh4trunks

OK, so the way I'm doing it worked for Kodi is not currently ideal for MB.

 

If I scan in the file without the NFO, MB grabs the metadata. I just like having the NFO there because it gets rid of the chance for mis-identification between CouchPotato and Kodi.

Link to comment
Share on other sites

Yea we use the presence of local metadata to serve as an alternative to internet metadata. But in this case they need to be combined and merged.

Link to comment
Share on other sites

josh4trunks

that'd be great if we had the ability/option to use movie NFO for identification only. this would mirror what Kodi does with a barebones NFO

=]

Link to comment
Share on other sites

  • 3 weeks later...
steini

Using nfo´s only to identify a movie would be the best option for me, but a second solution would be to have an option to ignore local metadata?

Edited by steini
Link to comment
Share on other sites

  • 4 weeks later...
josh4trunks

@@Luke

This is fixed in the latest builds!

 

But.. is there a way to not have Emby overwrite the simple .NFO files I have. I noticed Emby overwrote my simple, IMDB URL only .NFO files with standard .NFO information.

 

I would love if Emby could use my simple .NFO files for identification, but not overwrite them.

 

Thanks,

Edited by josh4trunks
Link to comment
Share on other sites

  • 1 month later...
dsoccer

The Kodi scraper allows you to put a link to the site you want scraped in the nfo -- so for my files these links point to TMDb. I do this to make sure that everything is matched appropriately.

 

For example, at the end of the barebones nfo for Casino Royale is http://www.themoviedb.org/movie/36557.

 

Would it be possible for Emby to support urls (like these) other than IMDB? Thanks!

Link to comment
Share on other sites

we can add tmdb yea, but what is the procedure for handling an arbitrary url?

Link to comment
Share on other sites

dsoccer

They don't handle any arbitrary url, only those for which there is a valid scraper installed. From the wiki:

 

The scraper tries to match URL's to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!

 

So, in my case, the TMDb scraper finds the movie url and is able to handle it.

Link to comment
Share on other sites

  • 1 month later...
robotarmy

curious what the status on this is. i'm running: Version 3.0.5641.5 and Emby doesn't seem to be reading my "Video .nfo files containing a mix of XML and URL" like Kodi does.

 

should it be working in the version i am running, or should i just be patient for an upcoming release?

 

THANKS!

Link to comment
Share on other sites

it should work fine at this point so if you're having trouble best to post a specific example. thanks.

Link to comment
Share on other sites

robotarmy

here's an example for one of my daughter's movies:

 

Tinker Bell Series [sET]/2012 - Secret of the Wings/Secret of the Wings (2012).mp4

Tinker Bell Series [sET]/2012 - Secret of the Wings/Secret of the Wings (2012).nfo

 

contents of the NFO file:

 

<movie>
        <set>Tinker Bell Series [sET]</set>
        <sorttitle>Tinker Bell 2012</sorttitle>
</movie>
http://www.themoviedb.org/movie/75258

 

Emby doesn't seem to pick up any of it:

https://imgur.com/a/OMmfb

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...