NFO agent

Harley, looking forward to it :slight_smile:



BTW, I just tried to express that I felt that it would be welcome if the official devs would invest some time in this issue. Your “unofficial” efforts are greatly appreciated, though! :slight_smile:



(I’m offline most of this weekend, so I can’t help you test before late Sunday).

forgot to turn my alarm off. oops. so, back at it.

I am done with it. I’m going back to getting my plugins app store ready. For the life of me I cannot figure out how to add the scanned results into the search() function. If anyone else wants to take a look, the best code I have has already been posted.



according to elan:



“The title must be set in the search() function, not in update(). This stems historically from an issue where a piece of media might have various names, and the user picks one in the search area (via fix match, usually). As long as you pass back the title from search(), the Media Manager should use it.”



This is above my current paygrade. sorry to not get you guys all the way. Hope you enjoy the updated NBC plugin. I have more coming soon, now that I have gotten my butt kick by a search function.



Does nobody have a solution on how i can test your nfo agent????
It's just not showing up in Plex Media Server... :(

download the file. place it in your plug-ins folder. quit PMS. Quit Plex. Restart Plex, which restarts PMS. You should then be able to select it under the IMDB Info Provider.


So, despite the great efforts by Harley Hooligan, the current code does not work. :o

And nothing is up on the wiki as promised a while ago - any progress being made by the official devs? :)

still not working.



I'm not as busy as Dev are and I can guaranty that analysing, debuging, reading/writing on the forum don't allow us to write some documentation. The plugin are in Python, the API is not complicated and existing metadata agent are readable to learn. You can browse the framework bundle. All the Objects and classes are coded here.


Be patient and help yourself :D

just an update to say I’m back on it, and making a little progress.

Sounds good. And this has become even more relevant, as a working NFO agent would be a workaround for getting IMDB metadata into Alexandria… :slight_smile:

Here’s where I am at. It is extremely verbose, and I still don’t know why I cannot add an item to the search results. Still working.

Well, under the current Framework I do not think this is possible.



The way that I think the InfoProvider section works is this:


  1. PMM searches for your for your movie based on the title in your filename.

    -Originally this was done on IMDB

    -Now IMDB through Google or google itself. Not really sure, nor is it important to this discussion
  2. Media Manager populates a list for you based solely on these results

    -Each item on the list is basically a link to a webpage (google,bing,imdb)
  3. If you select the movie name now, it will then update by calling agent.imdb.update()

    -This gets the rest of the metadata since you’ve already chosen a, what we’ll call a “display name”

    -I think that all agents are actually updated during this function call, as xbmcnfo.log updates during this time.
  4. If you select “search” instead of this movie, only the imdb.search() function is called.

    Which then puts you back to sqaure one.
  5. The same as 3 happens when you choose “Select Movie” after searching



    Note: Nowhere in that workflow is there an opportunity for xbmcnfo.bundle to input a name into the search box list





    For those who understand agents:



    I am looking to get the file path in my agents Search() call. then this can all be fixed. Right now when I call media.filename in search() I get a value of ‘None’.



    Here is my last code until I hear that the workflow is actually different than what I described. I may very well be wrong. I hope I am. I’ve read the api, all of the other agents, and looked at all the other agents logs. I have not seen in one of them a way to inject a list item into the list box that slides down when you choose “Fix Incorrect Match”. I hope I have missed how to do this.

Harley with your recent code, I’m able to get most of my prescraped metadata (in nfo files) into the library. Awesome…! :slight_smile:



It could use some clean-up and I don’t get actors, genre, writers data scraped. I was able to add studio, tagline, and I’ve exchanged outline/plot so that the summary uses the plot element.



Is what you detail above related to the fact that we cannot use this agent to change the title of the movie?

Hey Harley, I’ll discuss with Jam and see if we need to make a fix/enhancement to allow access to the media in search().

@elan: so will that fix/enhancement allow the nfo agent to insert another title instead of the one that currently gets “chosen” automagically?

Now your just asking questions for the sake of asking questions… He says they’ll discuss exactly that.

What I meant to say (and I’m truly sorry about the outburst) was:



You might be right that the question was answered - but if so, it was answered in such a technical way that I did not understand it. Judging my questions as “question for the sake of questions” on such limited ground was not called for! :huh:

deleted

elan and james if reading this…what about a scanner for the names. Ideally yes, it would be included in the Plex Info provider, or maybe I make this an XBMC info provider similar to cinepassion. Lots of options, just would like the the nfo name to show up when I pick Fix Incorrect match.



Not sure I follow. Wouldn't it be enough for the NFO agent to be able to return the name in the search() function? Then people who have NFOs can use the NFO agent at the highest priority, as a primary agent, and if they want they can add in some poster/art agents and perhaps others to fill in missing data.