NFO agent


Looking forward to hear fro u soon then !!


The closest I can find is the following:


2010-09-25 19:04:37,930 (-5fddbb00) :  CRITICAL (core) - Exception while loading code (most recent call last):<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 122, in load_code<br />
    self.init_code = self.loader.load(self.init_path, elevated)<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code.py", line 18, in load<br />
    code = self.compile(source, filename, elevated)<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code.py", line 23, in compile<br />
    return RestrictedPython.compile_restricted(source, name, 'exec', elevated=elevated)<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/RestrictedPython/RCompile.py", line 115, in compile_restricted<br />
    gen.compile()<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/RestrictedPython/RCompile.py", line 68, in compile<br />
    tree = self._get_tree()<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/RestrictedPython/RCompile.py", line 59, in _get_tree<br />
    tree = self.parse()<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/RestrictedPython/RCompile.py", line 56, in parse<br />
    return niceParse(self.source, self.filename, self.mode)<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/RestrictedPython/RCompile.py", line 38, in niceParse<br />
    compile(source, filename, mode)<br />
  File "/Users/myusername/Library/Application Support/Plex Media Server/Plug-ins/XBMCnfo.bundle/Contents/Code/__init__.py", line 115<br />
    except: pass<br />
   ^<br />
IndentationError: unexpected unindent



Does that mean anything to anyone?

Redownload XBMCnfo. That error was fixed.



Ok here are 3 NFOs
All this movies were been titled "La Casa Dei 100 Corpi" instead of their original Titles
Hope this Helps to nail the problem
Thanx
Archivio.zip (7.35 KB)

updated pushed to git, and here is your plexapp for the fix. It should match better now. It is not perfect. The problem is with files that start with “the.” or your local translation. It now matches the “the” and the second word in the name.

@Harley: sorry for the stupid question but what should an .nfo file look like? Any template to follow? Cheers




I'm at work now, but for title you can look at one if my earlier posts. The others except actors and genres should be like title.

Here is one example for "Up".

Harley, your latest code is working almost perfectly! Thanks! :smiley:



I have two problems:


  1. Movies with unicode characters in their filename (and title) does not work. Maybe you need to add a

decode('utf-8')

ending somewhere.

2. Only the last of a series of genres is added. For example:



If the genre element is: “Genre 1 / Genre 2 / Genre 3” and I change the genre.split to " / " all genres (1-3) are parsed. However, only “Genre 3” is entered into the database.



Hope you can fix these two issues :slight_smile:


Sorry, forget about the first problem (unicode characters). I don't think the agent was the problem... :o

I was wondering about that because I had movies with : in them that were fine, I think.



By the by, would it be beneficial to make a small app for OSX that built these nfo files? I am not sure one exists for osx, even for xbmc. I don’t know its usefulness once the real edit info is released.



I'm on lunch so I don't have time to compare, but here is my up.nfo that xbmc created. XBMCnfo finds it. It matches a media file titled up.avi. (case shouldn't matter)

It would be very beneficial to make that app for OS X. Right now, I use a Windows app called "XBMC Media Companion" to do the NFO files. It scrapes IMDB, so although I shouldn't advertise it too much, this is a way to get those data into Plex/Nine. So the app should be able to get data from IMDB for me to be interested.

NFO files also solves the problem that - especially now in the buggy days of Plex/Nine - you have to make the same changes over and over again if you rescan your library. The "Edit Info" part of the MM won't make up for that. By having NFO files, you once and for all can set for example a custom title for a movie - using your excellent agent, that custome title will be used whenever you rescan... :)



What if I make a new info provider that combines XBMCnfo reader with all the other agents, and write to a file? As for your case,MTI, you could always back up the metadata folder inside ~/library/as/plex media server/ metadata. This is small I beleve and it is where plex stores their version of NFL files.

Honestly, it would be easier to write an AppleScript taut backed up your plex info.XML file as an nfo, and then make an agent for that file.

Cleaned up the code, alittle. Genres sometimes had a space in front and fixed multiple genres, tagline, writers support and such. Should run with no exceptions. Also, I have been working on the thumbnail for actors to try it get it working. I see the agent requesting data from the url but is not showing up in plex. I am hoping someone out there can figure out where my meta.data statement is screwed up.



Feel free to add anything to the source GIT.



Chris

Duplicate post. Sorry

Duplicate post



In your log, it shows The Matatdor matching up with Disney's Up?

Ya I was intentionally putting wrong .nfo files to make sure it overwrote the auto data. Just checking the Name change function, so I put the Up .nfo with Matador movie.

Chris

gotcha