bellocarico 4 Posted February 4, 2019 Posted February 4, 2019 About 80% of my Library have a .NFO file in the same folder as the video. This was created long time ago via a 3rd party utility. Within the .NFO there's a "ttxxxxxx" IMDB reference. Does/can emby use this .NFO/IMDB reference when doing title matching? Thanks :-)
Luke 42079 Posted February 4, 2019 Posted February 4, 2019 Hi, yes nfo takes priority over internet metadata. Please let us know if this helps. Thanks.
bellocarico 4 Posted February 4, 2019 Author Posted February 4, 2019 great, one thing though.... the .NFO was created by myself I suppose it needs to be formatted in a specific way though. Is it possible to ask emby to look for the "ttxxxxxxx" reference only in the .NFO (to be used to match online), get updated data from internet and update the .NFO itself? P.S. I started to really like emby :-)
bellocarico 4 Posted February 4, 2019 Author Posted February 4, 2019 It's a NFO style looking but as you know there are *many* variation on the content of the .nfo. I think the most relevant answer to your question is: there's always something like this in it: http://imdb.com/title/tt2078586 without marking in my case.
Carlo 4561 Posted February 4, 2019 Posted February 4, 2019 (edited) Just to give you an idea. Here's the contents of a NFO off my system that Emby itself wrote NFO is in the zip. MacGruber (2010).zip Edited February 4, 2019 by cayars
bellocarico 4 Posted February 4, 2019 Author Posted February 4, 2019 (edited) Thanks this is not the case of what it can be done at the .NFO level. I do see what emby can do and I have asked it to create the .NFO for me. This is a case of importing ttxxxxxxx references from existing .NFO(s) where the imdb URL is not defined by tags, update the emby library with that information only and overwrite the existing .NFO with all the updated/latest info from Internet. emby seems to be doing all this already apart from looking for the ttxxxxxxx reference <movie> <title>Raise ravens</title> <originaltitle>Cría cuervos</originaltitle> <rating>8.1</rating> <year>1976</year> <plot>"Regards d'une Enfance." Three orphaned sisters under the custody of their stern aunt and their handicapped grandmother will have to acclimatise to the new conditions of their shared life, overcome life's constant impediments and eventually, grow up.</plot> <tagline>I took this film in a video library and watched it 3 times. It is one of the most powerful films I have ever seen. The techniques in the film are very modest but it's amazing what the director does with them. I liked very much this sad and quiet girl. The scene where her pet dies and she buries him is so solemn and heart-breaking. I felt sad about the old Grandmother who watches the old pictures in sadness. I also liked Geraldine Chaplin, she is very good in this role, her intimate bond with the daughter, and how she looks at Ana with sadness when the girl doesn't notice it. The scene where the girl imagines her mom combing her hair is mesmerizing. Maria's pain is very palpable.By the way I found some interesting information about this film. Geraldine Chaplin was dubbed in the episodes where she plays the grown Ana. It was done because the actress has a slight British accent which is not annoying or too prominent (for me at least), but the point is that she plays a grown girl, and it would be rather weird if a grown person acquires an accent in one's mother tongue if this accent did not exist during the childhood. So it was an intelligent consideration of the director.I recommend this movie very much.</tagline> <runtime>105min</runtime> <thumb>Raise ravens.tbn</thumb> <mpaa>X</mpaa> <director>Carlos Saura</director> <studio>Pedro El Samu, Elías Querejeta</studio> <genre>Drama</genre> <actor> <name>Geraldine Chaplin</name> </actor> <actor> <name>Mónica Randall</name> </actor> <actor> <name>Florinda Chico</name> </actor> <actor> <name>Ana Torrent</name> </actor> <actor> <name>Héctor Alterio</name> </actor> <actor> <name>Germán Cobos</name> </actor> <actor> <name>Mirta Miller</name> </actor> <actor> <name>Josefina Díaz</name> </actor> <actor> <name>Conchita Pérez</name> </actor> <actor> <name>Mayte Sanchez</name> </actor> <actor> <name>Juan Sánchez Almendros</name> </actor> </movie> http://imdb.com/title/tt0074360 Edited February 4, 2019 by bellocarico
Luke 42079 Posted February 4, 2019 Posted February 4, 2019 That's not valid nfo. Try saving one using the metadata editor and then you'll see where to put the imdb id
Happy2Play 9780 Posted February 4, 2019 Posted February 4, 2019 (edited) Emby will not parse a link from within the nfo file like that. It will look for the id fields within a nfo file. <imdbid>tt0074360</imdbid> <tmdbid>51857</tmdbid> Overall Emby should read all the those fields except the url. Only information I would question is the novel in "tagline". Edited February 4, 2019 by Happy2Play 1
bellocarico 4 Posted February 4, 2019 Author Posted February 4, 2019 Emby will not parse a link from within the nfo file like that. It will look for the id fields within a nfo file. <imdbid>tt0074360</imdbid> <tmdbid>51857</tmdbid> Overall Emby should read all the those fields except the url. Only information I would question is the novel in "tagline". Thanks! that's the answer I was looking for :-)
bellocarico 4 Posted February 5, 2019 Author Posted February 5, 2019 Ok thank I think best way for me would be to parse the files in the filesystem adding the <imdbid> tag around the tttxxxxxx reference. Let me "sed" this :-)
bellocarico 4 Posted February 5, 2019 Author Posted February 5, 2019 Just to give you an idea. Here's the contents of a NFO off my system that Emby itself wrote NFO is in the zip. in the NFO you provided there are two references identical <imdbid> and <id> are they both required?
Happy2Play 9780 Posted February 5, 2019 Posted February 5, 2019 (edited) in the NFO you provided there are two references identical <imdbid> and <id> are they both required? The parser should read either. code for 3.5 but I don't believe it has changed. https://github.com/MediaBrowser/Emby/blob/master/MediaBrowser.XbmcMetadata/Parsers/MovieNfoParser.cs#L38 Edited February 5, 2019 by Happy2Play 1
b3nZol 2 Posted September 28, 2023 Posted September 28, 2023 @bellocarico would you mind sharing your 'sed' to make it emby likely?
GrimReaper 4740 Posted September 28, 2023 Posted September 28, 2023 (edited) 1 hour ago, b3nZol said: @bellocarico would you mind sharing your 'sed' to make it emby likely? User @bellocaricolast visited the forums 3.5 years ago (April 2020), it is highly unlikely you'll get an answer to that. Edited September 28, 2023 by GrimReaper
b3nZol 2 Posted September 28, 2023 Posted September 28, 2023 Well, maybe some other guy has ideas. Remote server linux without X, so commandline only. My .nfo files do contain an imdb link, but i do not want to use any media manager, i just want to edit the nfo files to make only the imdb link usable for emby.
GrimReaper 4740 Posted September 28, 2023 Posted September 28, 2023 Make sure you have <uniqueid> node in your NFO. Quote <uniqueid type="" default=""></uniqueid> Yes Yes The ID from the scraper site. type="" Identifier of the ID. Do not use "default". Examples of identifier include... <uniqueid type="imdb" <uniqueid type="tvdb" <uniqueid type="tmdb" For non-scraped items, use simple values like "home", "sport", "doco" etc The value can be alpha-numeric eg tt3480556 for imdb, 286668 for tmdb, home001 for home movies, etc default="true" default="false" Only one uniqueID can be set as default="true", additional uniqueID's must be set as default="false" or ommit the default attribute Example of complete entry... <uniqueid type="tmdb" default="true"> <uniqueid type="imdb" default="false"> or <uniqueid type="imdb">
blgentry 51 Posted September 28, 2023 Posted September 28, 2023 33 minutes ago, b3nZol said: Well, maybe some other guy has ideas. Remote server linux without X, so commandline only. My .nfo files do contain an imdb link, but i do not want to use any media manager, i just want to edit the nfo files to make only the imdb link usable for emby. Use this at YOUR OWN RISK. Do some testing before you use this on files you really care about. This perl command line will take any file that you specify on the command line and substitute the EMBY style IMDBID entry for a URL that looks like "imdb.com/title/tt*". It will also make a copy of the original with the extension ".orig" appended to it. Here's the command line using a file named "imdbtest.nfo". Substitute your own filename to test/use. perl -pi.orig -e 'if ($_=~/imdb.com\/title\/(tt.*)$/) {$_ = "<imdbid>$1</imdb id>\n";}' imdbtest.nfo Note that if you run this 2 or more times on the SAME FILE, it will replace the .orig file thus destroying your original. Test. Go slow. Verify. Once you are VERY SURE, you can remove the ".orig" part like: perl -pi -e 'if ($_=~/imdb.com\/title\/(tt.*)$/) {$_ = "<imdbid>$1</imdb id>\n";}' imdbtest.nfo I hope this is helpful. Best of luck. Brian.
pünktchen 1409 Posted September 28, 2023 Posted September 28, 2023 (edited) I think what @b3nZolhas is like this: Parsing NFO That is already supported by Emby, so there's no need to alter the NFO files beforehand. Edited September 28, 2023 by pünktchen
GrimReaper 4740 Posted September 28, 2023 Posted September 28, 2023 (edited) 1 hour ago, pünktchen said: I think what @b3nZolhas is like this: Parsing NFO Thought about that, but considering OP's NFO is not url-only NFO and it needed editing and @b3nZoldecided to post in this thread inquiring about those edits, plus: 2 hours ago, b3nZol said: i just want to edit the nfo files to make only the imdb link usable for emby I assumed their NFOs contain additional data. You might be correct, though. Edited September 28, 2023 by GrimReaper
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