I was spitballing on ways to get the name changed. The way you describe is ideal.
Then we'll make it happen, dammit! :)
+1 to making it happen!
Just to add/reiterate what it is I’m looking for with the NFO agent:
- To be able to use custom names for the movie title instead of the one that was chosen automatically during scanning by matching the “moviename (year).ext” to an IMDb entry (tt# id) (that is how it works right?). For example, I have all my James Bond movies prefixed with "James Bond: " - with the current agents, they show up as Dr. No, Tomorrow Never Dies, and so on…
- To use custom metadata - that may include metadata from sources other than the ones Plex can “scrape” from, or metadata that have been changed “offline” to suit special needs. For example, I insert a [Disk #] in front of the plot information in the nfo files to be able to know what disk to attach before trying to play a movie.
- The agent should supplement online data, so if for example I wish for Plex to get online/fresh information for everything else but the plot and the title of the movie, that should be possible by commenting out parts of the .py code and by having the Plex agent prioritized lower than the NFO agent.
- The NFO files contain the IMDB tt ID. So, it could also be used to give the exact match for movies that can’t be matched on the basis of the filename. But that is already happening, right? On a side note, if the latter is correct, I don’t understand why some of my movies don’t get matched (e.g. Amélie)…
I have ALOT of movies (1000+) for which I have spent countless of hours collecting my own customized metadata contained in NFO files. So this is also out of personal interest
all I need to get this done is some form of path available in search() be it through path or just .filename or something. If this happens, then I can make a custom Plex agent to add the title into the "Fix incorrect matches" results that spoecify nfo results. That is if an nfo file exists (hopefully not too much longer). Then I can parse it similarly to json objects using the new V2 framework and a new updateFromNfo() call in the plex agent. I do really dig the new xml file way more, I just wished you used non unicode titles. I do understand why, but its annoying.
Also, I have no idea what my old metadata held outside of the display name, so I didn't realize this was working. Did i get that right that all this does not do at this point is change the display name?
Not sure I understand, can you elaborate on this point?
Your current code gives me all metadata you have included xpath arguments for, except the title of the movie... :)
i need access to the mediatree item for my guid in search(). Currently in search I have access to a Movie item, and in update() I have access to a MediaTree item. Give me access to the MediaTree item in search() and it's done.
(THANK YOU, elan (and of course Harley) for investing some time in this!!! :D).
Don’t you guys use unicode encoded names for the xml bundles? I understand why they are used, just wish I new what files are on my comp, and what each one does. Unicode names make that hard to do.
I understood this point, just didn't understand "I just wished you used non unicode titles" :)
Just installed and it seems to be working for me, but it’s pulling the “overview” instead of the “plot” info. Is there any way to change this? It’s not a huge deal (because at least now I can go in and make it say whatever I want), but the overview info is a bit short. Thanks all for the work on this, we’re much closer than I expected at this point!
+1 to hoping it happen!
Thanks for a great app!!!
Change this line:
try: metadata.summary = nfoXML.xpath('./outline')[0].text
to this:
try: metadata.summary = nfoXML.xpath('./plot')[0].text
(exchange "outline" for "plot").
:)
Worked like a charm, thanks!
Getting closer thanks for all the hard work. I tried to get it to the agent to return genre with no success, I know genre is broken with the scrapers but is it possible to get working with the .nfo agent
Chris
shold this work with PLEX Media Server 0.9.9.21?
I put the XBMCnfo.bundle file into:
/Library/Application Support/Plex Media Server/Plug-ins
I’ve restarted the Server several times but I can’t see the provider:
Section Type: Movies
Media scanner: Plex Movie Scanner
Primary info provider: IMDB (or Home Movies)
any idea?
You should see it inside as a choice within imdb/plex info provider.
Hi Harley
Following the discussion a couple of days and would like to participate in the testing. Latest version of your XBMCinfo.bundle.zip is dated 12.09.10. After above positive comments and proposals for amendments I think there might be a newer version. Can you add this latest version in this section?
Actually I can scan with version 12.09.10 my individual posters and tbn.folders and also the individual title of the movie shows up.
Only exception are titles with foreign characters like the German ü, ä, ö, but this might be a general problem of PLEX 9 to be solved at a later stage.
hmm, don't even have the 'plex info provider' (but had it some time ago)