steini 1 Posted January 14, 2015 Share Posted January 14, 2015 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 More sharing options...
MikePlanet 140 Posted January 14, 2015 Share Posted January 14, 2015 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 More sharing options...
Luke 37071 Posted January 14, 2015 Share Posted January 14, 2015 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 More sharing options...
steini 1 Posted January 14, 2015 Author Share Posted January 14, 2015 You are awesome! Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted February 24, 2015 Share Posted February 24, 2015 (edited) 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 February 24, 2015 by josh4trunks Link to comment Share on other sites More sharing options...
Luke 37071 Posted February 24, 2015 Share Posted February 24, 2015 yea I think some refinement is needed here when a barebones metadata file is detected. Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted February 24, 2015 Share Posted February 24, 2015 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 More sharing options...
Luke 37071 Posted February 25, 2015 Share Posted February 25, 2015 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 More sharing options...
josh4trunks 70 Posted February 25, 2015 Share Posted February 25, 2015 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 More sharing options...
steini 1 Posted March 12, 2015 Author Share Posted March 12, 2015 (edited) 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 March 12, 2015 by steini Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted April 6, 2015 Share Posted April 6, 2015 (edited) @@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 April 6, 2015 by josh4trunks Link to comment Share on other sites More sharing options...
dsoccer 0 Posted May 21, 2015 Share Posted May 21, 2015 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 More sharing options...
Luke 37071 Posted May 21, 2015 Share Posted May 21, 2015 we can add tmdb yea, but what is the procedure for handling an arbitrary url? Link to comment Share on other sites More sharing options...
dsoccer 0 Posted May 22, 2015 Share Posted May 22, 2015 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 More sharing options...
Luke 37071 Posted May 22, 2015 Share Posted May 22, 2015 Ok, thanks. I'll add support for Tmdb for this. 1 Link to comment Share on other sites More sharing options...
robotarmy 0 Posted June 22, 2015 Share Posted June 22, 2015 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 More sharing options...
Luke 37071 Posted June 22, 2015 Share Posted June 22, 2015 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 More sharing options...
robotarmy 0 Posted June 22, 2015 Share Posted June 22, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now