Does it have to do with the version of python maybe? I'm running 2.7.2 (because its the default in the packages for debian squeeze) but does it need to be run with 2.6 or newer maybe? (im pretty sure it doesn't, just trying to think of things)
I just installed both agents. Struggling with one thing, which I am not sure is a bug or expected behavior.
I have some home videos, which I added custom NFO files for TV shows. Unfortunately, the NFO files are not being used, but instead they are scraped from thetvdb (obviously wrong).
Is there any way to completely turn off all external scraping and solely rely on local media information?
Any thoughts?
Any thoughts?
The XBMC nfo agents do (at least currently) not have an option to work with other agents. So I guess you didn't select the XBMC nfo agent when you created your TV section.
If you create a new section, make sure to click "Show Advanced Options" and select the XBMC nfo agent from the dropdown:

Does it have to do with the version of python maybe? I'm running 2.7.2 (because its the default in the packages for debian squeeze) but does it need to be run with 2.6 or newer maybe? (im pretty sure it doesn't, just trying to think of things)
I'm running the version which comes with PMS.
From com.plexapp.agents.xbmcnfotv.log :
Minor silly question - if I edit the NFO files after scanning the movies in, how can I force Plex to refresh the data?
Minor silly question - if I edit the NFO files after scanning the movies in, how can I force Plex to refresh the data?
You have to do a Force Refresh to pick up the changes in the nfo files:

Thanks - that's what I thought; I could have sworn I tried that exact option a few times.
...
And now as I type that, I remembered the reason it didn't work is I was making minor tweaks to the agent itself at the time, and obviously those wouldn't be picked up without a relaunch of the server.
File "F:\Plex Media Server\Plug-ins\XBMCnfoTV.bundle\Contents\Code\__init__.py", line 83, in update
path1 = media.items[0].parts[0].fileFile "F:\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 110, in_getitem_ = lambda x, y: x.__getitem__(y),IndexError: list index out of range
@sander1, @Guillaume,
I reverted this change "Use paths provided to us by the scanner instead of doing manual lookups." back and the TV importer now works.
L.
@sander1, @Guillaume,
I reverted this change "Use paths provided to us by the scanner instead of doing manual lookups." back and the TV importer now works.
L.
@lleone,
I am having the same problem with the TV importer "list index out of range". Could you please describe how did you get it to work?
T
Edit: Never mind. Found the commit, and made the changes in my importer. Now the TV show works. Thanks!
I'm a python idiot,
Can someone tell me exactly how to revert the commit for the "Use paths provided to us by the scanner instead of doing manual lookups?"
On my Plex, I added the nfo bundles before even adding my media and hte only thing I get is a generic TVShow name with no other information.
lleone seems to be right. The commit right before the one he noted works without error (here's the init.py if you're having trouble getting it). Although there are still some problems parsing the NFO files:
- Genre doesn't get pulled from declarations
- Episode Duration shows as 0 for me and from what I can tell, it doesn't appear in my tvshow.nfo file. Wonder if we can grab that from one of the episodes or from thetvdb (since the tvdb show ID is in my tvshow.nfo as )
- The rating (looks like 7.7) doesn't appear to load either.
For individual releases, I'm missing the following:
- Rating
- Director
- Writer (as )
- Airdate (as )
Also, fanart doesn't show (just sitting in tv show root as fanart.jpg, haven't looked but the importer is probably looking for folder.jpg or something). I may try to fix some of this and submit pull requests to Guillaume if I get any time. He really should be the one to look and figure out what's going on with the latest commits not working for most/all people.
Here's my NFO files (for the TV show Jackass):
tvshow.nfo (in Jackass dir)
Jackass - S01E01 Poo Cocktail.nfo (in Season.1 dir, obviously)
I have tried the update version of XMBC .nfo importer
but unfortunatly does not work fine with SYNOLOGY ARM ....
1°) the name should not have space : the name need to be "XMBCnfoImporter" and not "XBMC .nfo Importer"
2°) the agent do not match well all the .nfo files....
2013-03-18 13:16:01,164 (431f6490) : INFO (__init__:18) - Searching
2013-03-18 13:16:01,357 (431f6490) : INFO (__init__:23) - Looking for Movie NFO file at /volume1/video/FilmsTest/10 minutes a vivre/10 minutes a vivre.nfo
2013-03-18 13:16:02,260 (431f6490) : INFO (__init__:65) - Found movie information in NFO file: title = 10 minutes a vivre, year = 2006, id = 2874
2013-03-18 13:16:02,747 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 644 bytes
2013-03-18 13:16:32,251 (431f6490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CjczOTMyY2JmMDJlOTEyMjFzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTgKMiBEYXlzIGluIE5ldyBZb3JrczQKbmFtZXM5NAolMkZ2b2x1bWUxJTJGdmlkZW8lMkZGaWxtc1Rlc3QlMkYyJTIwRGF5cyUyMEluJTIwTmV3JTIwWW9yayUyRjIlMjBEYXlzJTIwSW4lMjBOZXclMjBZb3JrJTJFYXZpczgKZmlsZW5hbWVzNDAKY2QxNzZkYzVlYjZjZmIyOWRiNGVhYWYyMDk4Zjg0MmIzNDJjMmE2OHM4CnBsZXhIYXNoczcKNTUxMjM2MHM4CmR1cmF0aW9uczQKMjg3NXMyCmlkcjAK
2013-03-18 13:16:33,306 (431f6490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CjczOTMyY2JmMDJlOTEyMjFzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTgKMiBEYXlzIGluIE5ldyBZb3JrczQKbmFtZXM5NAolMkZ2b2x1bWUxJTJGdmlkZW8lMkZGaWxtc1Rlc3QlMkYyJTIwRGF5cyUyMEluJTIwTmV3JTIwWW9yayUyRjIlMjBEYXlzJTIwSW4lMjBOZXclMjBZb3JrJTJFYXZpczgKZmlsZW5hbWVzNDAKY2QxNzZkYzVlYjZjZmIyOWRiNGVhYWYyMDk4Zjg0MmIzNDJjMmE2OHM4CnBsZXhIYXNoczcKNTUxMjM2MHM4CmR1cmF0aW9uczQKMjg3NXMyCmlkcjAK
2013-03-18 13:16:33,455 (431f6490) : INFO (agentkit:914) - Searching for matches for {'openSubtitlesHash': '73932cbf02e91221', 'name': '2 Days in New York', 'filename': '%2Fvolume1%2Fvideo%2FFilmsTest%2F2%20Days%20In%20New%20York%2F2%20Days%20In%20New%20York%2Eavi', 'plexHash': 'cd176dc5eb6cfb29db4eaaf2098f842b342c2a68', 'duration': '5512360', 'id': '2875'}
2013-03-18 13:16:34,502 (431f6490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2875/tree'
2013-03-18 13:16:55,305 (431f6490) : CRITICAL (agentkit:605) - Exception when constructing media object (most recent call last):
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 603, in __init__
setattr(self, 'tree', Media.TreeForDatabaseID(self.id, type(self)._level_names))
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 642, in TreeForDatabaseID
xml_str = cls._core.networking.http_request('http://%s:32400/library/metadata/%s/tree' % (host, str(dbid)), cacheTime=0, immediate=True)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 422, in http_request
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 147, in __init__
self.load()
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 183, in load
f = self._opener.open(req, timeout=self._timeout)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 438, in open
response = self._open(req, data)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 456, in _open
'_open', req)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain
result = func(*args)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1217, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1192, in do_open
raise URLError(err)
URLError:
2013-03-18 13:16:55,533 (431f6490) : INFO (__init__:18) - Searching
2013-03-18 13:16:55,582 (431f6490) : INFO (__init__:23) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 Days In New York/2 Days In New York.nfo
2013-03-18 13:16:56,090 (431f6490) : INFO (__init__:65) - Found movie information in NFO file: title = 2 days in New York, year = 2011, id = 2875
2013-03-18 13:16:56,219 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 644 bytes
2013-03-18 13:17:36,581 (431f6490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzVzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc1P2xhbmc9eG5zNApndWlkczQKMjg3NXMyCmlkcjAK
2013-03-18 13:17:39,549 (431f6490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzVzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc1P2xhbmc9eG5zNApndWlkczQKMjg3NXMyCmlkcjAK
2013-03-18 13:17:43,135 (431f6490) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.XBMCnfoImporter://2875?lang=xn
2013-03-18 13:17:45,132 (431f6490) : ERROR (model:194) - Cannot read model from /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/f/a07409f1cb4106550cb7e0b463e21340d19b827.bundle/Contents/com.plexapp.agents.XBMCnfoImporter
2013-03-18 13:17:46,273 (431f6490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2875/tree'
2013-03-18 13:17:52,021 (431f6490) : INFO (__init__:99) - Found poster image at /volume1/video/FilmsTest/2 Days In New York/2 Days In New York-poster.jpg
2013-03-18 13:17:52,111 (431f6490) : INFO (__init__:145) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 Days In New York/2 Days In New York.nfo
2013-03-18 13:17:52,133 (431f6490) : INFO (__init__:145) - Additionally looking for Movie NFO file at /volume1/video/FilmsTest/2 Days In New York\movie.nfo
2013-03-18 13:17:56,421 (431f6490) : INFO (__init__:260) - ++++++++++++++++++++++++
2013-03-18 13:17:56,610 (431f6490) : INFO (__init__:261) - Movie nfo Information
2013-03-18 13:17:56,615 (431f6490) : INFO (__init__:262) - ++++++++++++++++++++++++
2013-03-18 13:17:56,670 (431f6490) : INFO (__init__:263) - Title: 2 days in New York
2013-03-18 13:17:56,677 (431f6490) : INFO (__init__:264) - id: com.plexapp.agents.XBMCnfoImporter://2875?lang=xn
2013-03-18 13:17:56,683 (431f6490) : INFO (__init__:265) - Summary: Marion est désormais installée à New York, où elle vit avec Mingus un journaliste de radio, leurs deux enfants qu'ils ont eus de relations antérieures et un chat.
2013-03-18 13:17:56,688 (431f6490) : INFO (__init__:266) - Year: 2011
2013-03-18 13:17:56,699 (431f6490) : INFO (__init__:267) - IMDB rating: 7.0
2013-03-18 13:17:56,705 (431f6490) : INFO (__init__:268) - Content Rating: None
2013-03-18 13:17:56,810 (431f6490) : INFO (__init__:269) - Directors
2013-03-18 13:17:56,815 (431f6490) : INFO (__init__:271) - Julie Delpy
2013-03-18 13:17:56,821 (431f6490) : INFO (__init__:272) - Studio: None
2013-03-18 13:17:56,828 (431f6490) : INFO (__init__:273) - Duration: 5460000
2013-03-18 13:17:56,834 (431f6490) : INFO (__init__:274) - Actors
2013-03-18 13:17:56,861 (431f6490) : INFO (__init__:278) - Genres
2013-03-18 13:17:56,880 (431f6490) : INFO (__init__:280) - Comédie
2013-03-18 13:17:56,886 (431f6490) : INFO (__init__:281) - ++++++++++++++++++++++++
2013-03-18 13:17:57,241 (431f6490) : DEBUG (model:218) - Serializing to /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/f/a07409f1cb4106550cb7e0b463e21340d19b827.bundle/Contents/com.plexapp.agents.XBMCnfoImporter/Info.xml
2013-03-18 13:17:57,410 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 16 bytes
2013-03-18 13:17:57,761 (431f6490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CmRjZjc4MTU3NzMzMTBiYmZzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTUKMiBEYXlzIGluIFBhcmlzczQKbmFtZXM4NAolMkZ2b2x1bWUxJTJGdmlkZW8lMkZGaWxtc1Rlc3QlMkYyJTIwZGF5cyUyMGluJTIwUGFyaXMlMkYyJTIwZGF5cyUyMGluJTIwUGFyaXMlMkVhdmlzOApmaWxlbmFtZXM0MAo5MzA4NmViN2YxZDc2ZmRlOTRhYmVhZWU4ZDBjZWMyMDE4MGY4NjMyczgKcGxleEhhc2hzNwo1NzAzODY0czgKZHVyYXRpb25zNAoyODc4czIKaWRyMAo_
2013-03-18 13:17:57,982 (431f6490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CmRjZjc4MTU3NzMzMTBiYmZzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTUKMiBEYXlzIGluIFBhcmlzczQKbmFtZXM4NAolMkZ2b2x1bWUxJTJGdmlkZW8lMkZGaWxtc1Rlc3QlMkYyJTIwZGF5cyUyMGluJTIwUGFyaXMlMkYyJTIwZGF5cyUyMGluJTIwUGFyaXMlMkVhdmlzOApmaWxlbmFtZXM0MAo5MzA4NmViN2YxZDc2ZmRlOTRhYmVhZWU4ZDBjZWMyMDE4MGY4NjMyczgKcGxleEhhc2hzNwo1NzAzODY0czgKZHVyYXRpb25zNAoyODc4czIKaWRyMAo_
2013-03-18 13:17:58,015 (431f6490) : INFO (agentkit:914) - Searching for matches for {'openSubtitlesHash': 'dcf7815773310bbf', 'name': '2 Days in Paris', 'filename': '%2Fvolume1%2Fvideo%2FFilmsTest%2F2%20days%20in%20Paris%2F2%20days%20in%20Paris%2Eavi', 'plexHash': '93086eb7f1d76fde94abeaee8d0cec20180f8632', 'duration': '5703864', 'id': '2878'}
2013-03-18 13:17:58,196 (431f6490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2878/tree'
2013-03-18 13:17:58,890 (431f6490) : INFO (__init__:18) - Searching
2013-03-18 13:17:58,995 (431f6490) : INFO (__init__:23) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 days in Paris/2 days in Paris.nfo
2013-03-18 13:17:59,241 (431f6490) : INFO (__init__:65) - Found movie information in NFO file: title = 2 days in Paris, year = 2007, id = 2878
2013-03-18 13:17:59,281 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 640 bytes
2013-03-18 13:18:40,924 (431f6490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzhzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc4P2xhbmc9eG5zNApndWlkczQKMjg3OHMyCmlkcjAK
2013-03-18 13:18:44,664 (431f6490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzhzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc4P2xhbmc9eG5zNApndWlkczQKMjg3OHMyCmlkcjAK
2013-03-18 13:18:45,833 (431f6490) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.XBMCnfoImporter://2878?lang=xn
2013-03-18 13:18:46,935 (431f6490) : ERROR (model:194) - Cannot read model from /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/d/4d670a04e94e8119e0f0c37bc83614b68311edf.bundle/Contents/com.plexapp.agents.XBMCnfoImporter
2013-03-18 13:18:47,943 (431f6490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2878/tree'
2013-03-18 13:18:49,800 (42c18490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CjFiZjk1Zjg4NGYzMmE4NDlzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTYKMiBGYXN0IDIgRnVyaW91c3M0Cm5hbWVzODYKJTJGdm9sdW1lMSUyRnZpZGVvJTJGRmlsbXNUZXN0JTJGMiUyMEZhc3QlMjAyJTIwRnVyaW91cyUyRjIlMjBGYXN0JTIwMiUyMEZ1cmlvdXMlMkVhdmlzOApmaWxlbmFtZXM0MAo1Nzk3YzA5Y2U5ZTUxZDAxZDMyNmU2NTg3ZTBiMGU1NzE4YmYyM2QxczgKcGxleEhhc2hzNwo2NDYxMDAwczgKZHVyYXRpb25zNAoyODc2czIKaWRyMAo_
2013-03-18 13:18:50,522 (42c18490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnhuczQKbGFuZ3M1Ck1vdmllczEwCm1lZGlhX3R5cGViMHM2Cm1hbnVhbHIxCnM2Cmt3YXJnczYKczE2CjFiZjk1Zjg4NGYzMmE4NDlzMTcKb3BlblN1YnRpdGxlc0hhc2hzMTYKMiBGYXN0IDIgRnVyaW91c3M0Cm5hbWVzODYKJTJGdm9sdW1lMSUyRnZpZGVvJTJGRmlsbXNUZXN0JTJGMiUyMEZhc3QlMjAyJTIwRnVyaW91cyUyRjIlMjBGYXN0JTIwMiUyMEZ1cmlvdXMlMkVhdmlzOApmaWxlbmFtZXM0MAo1Nzk3YzA5Y2U5ZTUxZDAxZDMyNmU2NTg3ZTBiMGU1NzE4YmYyM2QxczgKcGxleEhhc2hzNwo2NDYxMDAwczgKZHVyYXRpb25zNAoyODc2czIKaWRyMAo_
2013-03-18 13:18:50,649 (42c18490) : INFO (agentkit:914) - Searching for matches for {'openSubtitlesHash': '1bf95f884f32a849', 'name': '2 Fast 2 Furious', 'filename': '%2Fvolume1%2Fvideo%2FFilmsTest%2F2%20Fast%202%20Furious%2F2%20Fast%202%20Furious%2Eavi', 'plexHash': '5797c09ce9e51d01d326e6587e0b0e5718bf23d1', 'duration': '6461000', 'id': '2876'}
2013-03-18 13:18:51,886 (42c18490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2876/tree'
2013-03-18 13:18:53,967 (42c18490) : INFO (__init__:18) - Searching
2013-03-18 13:18:54,217 (42c18490) : INFO (__init__:23) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 Fast 2 Furious/2 Fast 2 Furious.nfo
2013-03-18 13:18:54,237 (431f6490) : INFO (__init__:99) - Found poster image at /volume1/video/FilmsTest/2 days in Paris/2 days in Paris-poster.jpg
2013-03-18 13:18:54,243 (431f6490) : INFO (__init__:145) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 days in Paris/2 days in Paris.nfo
2013-03-18 13:18:54,248 (431f6490) : INFO (__init__:145) - Additionally looking for Movie NFO file at /volume1/video/FilmsTest/2 days in Paris\movie.nfo
2013-03-18 13:18:54,652 (42c18490) : INFO (__init__:65) - Found movie information in NFO file: title = 2 Fast 2 Furious, year = 2002, id = 2876
2013-03-18 13:18:55,358 (42c18490) : DEBUG (runtime:896) - Response: [200] str, 640 bytes
2013-03-18 13:18:57,549 (431f6490) : INFO (__init__:260) - ++++++++++++++++++++++++
2013-03-18 13:18:57,630 (431f6490) : INFO (__init__:261) - Movie nfo Information
2013-03-18 13:18:57,635 (431f6490) : INFO (__init__:262) - ++++++++++++++++++++++++
2013-03-18 13:18:57,653 (431f6490) : INFO (__init__:263) - Title: 2 days in Paris
2013-03-18 13:18:57,683 (431f6490) : INFO (__init__:264) - id: com.plexapp.agents.XBMCnfoImporter://2878?lang=xn
2013-03-18 13:18:57,718 (431f6490) : INFO (__init__:265) - Summary: Marion, photographe d'origine française, vit à New York avec Jack, architecte d'intérieur. Pour donner un nouveau souffle à leur relation, ils partent en voyage à Venise - mais leur séjour est gâché lorsque Jack attrape une gastro-entérite... Ils décident alors de se rendre à Paris où Marion a toujours des attaches.Là encore, l'escapade amoureuse tourne court : entre les parents envahissants de la jeune femme, ses ex-petits copains dragueurs et la manie de Jack à prendre en photo la moindrepierre tombale, le couple ne trouve aucun répit !Parviendront-ils à surmonter la tempête ? Ou passeront-ils maîtres dans l'art de la dispute ?
2013-03-18 13:18:57,723 (431f6490) : INFO (__init__:266) - Year: 2007
2013-03-18 13:18:57,753 (431f6490) : INFO (__init__:267) - IMDB rating: 6.0
2013-03-18 13:18:57,780 (431f6490) : INFO (__init__:268) - Content Rating: None
2013-03-18 13:18:57,806 (431f6490) : INFO (__init__:269) - Directors
2013-03-18 13:18:57,813 (431f6490) : INFO (__init__:271) - Julie Delpy
2013-03-18 13:18:57,819 (431f6490) : INFO (__init__:272) - Studio: None
2013-03-18 13:18:57,824 (431f6490) : INFO (__init__:273) - Duration: 5700000
2013-03-18 13:18:57,840 (431f6490) : INFO (__init__:274) - Actors
2013-03-18 13:18:57,888 (431f6490) : INFO (__init__:278) - Genres
2013-03-18 13:18:57,893 (431f6490) : INFO (__init__:280) - Comédie
2013-03-18 13:18:57,902 (431f6490) : INFO (__init__:281) - ++++++++++++++++++++++++
2013-03-18 13:18:58,917 (431f6490) : DEBUG (model:218) - Serializing to /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/d/4d670a04e94e8119e0f0c37bc83614b68311edf.bundle/Contents/com.plexapp.agents.XBMCnfoImporter/Info.xml
2013-03-18 13:18:59,273 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 16 bytes
2013-03-18 13:19:16,435 (431f6490) : DEBUG (runtime:700) - Handling request GET /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzZzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc2P2xhbmc9eG5zNApndWlkczQKMjg3NnMyCmlkcjAK
2013-03-18 13:19:19,299 (431f6490) : DEBUG (runtime:796) - Found route matching /:/plugins/com.plexapp.agents.XBMCnfoImporter/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKNwpzMgp4bnM0CmxhbmdiMXM1CmZvcmNlbnMxMApwYXJlbnRHVUlEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0CjI4NzZzNApkYmlkczQ5CmNvbS5wbGV4YXBwLmFnZW50cy5YQk1DbmZvSW1wb3J0ZXI6Ly8yODc2P2xhbmc9eG5zNApndWlkczQKMjg3NnMyCmlkcjAK
2013-03-18 13:19:21,239 (431f6490) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.XBMCnfoImporter://2876?lang=xn
2013-03-18 13:19:23,445 (431f6490) : ERROR (model:194) - Cannot read model from /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/0/71b13ef425db74311e7201b4188611495993b09.bundle/Contents/com.plexapp.agents.XBMCnfoImporter
2013-03-18 13:19:24,860 (431f6490) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/2876/tree'
2013-03-18 13:19:37,622 (431f6490) : INFO (__init__:99) - Found poster image at /volume1/video/FilmsTest/2 Fast 2 Furious/2 Fast 2 Furious-poster.jpg
2013-03-18 13:19:37,699 (431f6490) : INFO (__init__:145) - Looking for Movie NFO file at /volume1/video/FilmsTest/2 Fast 2 Furious/2 Fast 2 Furious.nfo
2013-03-18 13:19:37,705 (431f6490) : INFO (__init__:145) - Additionally looking for Movie NFO file at /volume1/video/FilmsTest/2 Fast 2 Furious\movie.nfo
2013-03-18 13:19:39,534 (431f6490) : INFO (__init__:260) - ++++++++++++++++++++++++
2013-03-18 13:19:39,560 (431f6490) : INFO (__init__:261) - Movie nfo Information
2013-03-18 13:19:39,566 (431f6490) : INFO (__init__:262) - ++++++++++++++++++++++++
2013-03-18 13:19:39,608 (431f6490) : INFO (__init__:263) - Title: 2 Fast 2 Furious
2013-03-18 13:19:39,615 (431f6490) : INFO (__init__:264) - id: com.plexapp.agents.XBMCnfoImporter://2876?lang=xn
2013-03-18 13:19:39,628 (431f6490) : INFO (__init__:265) - Summary: Brian O'Conner a signé sa plus belle action, mais aussi sa faute la plus grave, en laissant filer le chef du gang de voleurs de voitures qu'il avait mission d'infiltrer. Radié de la police de Los Angeles, ce jeune flic rebelle, fan de vitesse et de rodéos, a gardé intact son honneur mais a gâché une belle carrière. Après deux ans de galère, Brian O'Conner se retrouve à Miami et se voit offrir une ultime chance de se racheter.
Le FBI et les douanes locales surveillent depuis plusieurs mois le puissant homme d'affaires Carter Verone, qu'ils soupçonnent de se livrer à des opérations de blanchiment d'argent. Mais leurs efforts sont restés vains, le seul indice dont ils disposent pour appâter et démasquer l'énigmatique criminel étant sa passion pour les rodéos. Le temps presse, Brian semble être le seul espoir...
2013-03-18 13:19:39,633 (431f6490) : INFO (__init__:266) - Year: 2002
2013-03-18 13:19:39,640 (431f6490) : INFO (__init__:267) - IMDB rating: 4.0
2013-03-18 13:19:39,645 (431f6490) : INFO (__init__:268) - Content Rating: None
2013-03-18 13:19:39,650 (431f6490) : INFO (__init__:269) - Directors
2013-03-18 13:19:39,654 (431f6490) : INFO (__init__:271) - John Singleton
2013-03-18 13:19:39,659 (431f6490) : INFO (__init__:272) - Studio: None
2013-03-18 13:19:39,664 (431f6490) : INFO (__init__:273) - Duration: 6420000
2013-03-18 13:19:39,672 (431f6490) : INFO (__init__:274) - Actors
2013-03-18 13:19:39,689 (431f6490) : INFO (__init__:278) - Genres
2013-03-18 13:19:39,696 (431f6490) : INFO (__init__:280) - Action
2013-03-18 13:19:39,711 (431f6490) : INFO (__init__:281) - ++++++++++++++++++++++++
2013-03-18 13:19:40,947 (431f6490) : DEBUG (model:218) - Serializing to /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/0/71b13ef425db74311e7201b4188611495993b09.bundle/Contents/com.plexapp.agents.XBMCnfoImporter/Info.xml
2013-03-18 13:19:41,296 (431f6490) : DEBUG (runtime:896) - Response: [200] str, 16 bytes
Do you have an idea ?
I was able to get the movie importer to work great but for some reason i TV importer will do everything but the fanart. for some reason the fanart ends up where the banner should be and the fanart is empty. wondering if anyone else has seen that and what have they done to fix it. thanks.
Hey cna you help me on this the movie plugin worked great everything seemed to have imported correct however the tv plugin doesn't give any artwork what so-ever. Everything else from my metadata carrys over perfectly. Might be a fault with latest version of plex? Can you update to correct?
Looking at movies again, it seems there is one check in the code that doesn't work for my NFO files:
try: metadata.content_rating = nfoXML.xpath('./mpaa')[0].text
That line in the movie importer does not match the corresponding line in my NFO:
Rated PG-13 for continuous crude and sexual humor, including language
because it appears to be looking for something like PG-13 without any other formatting. I will try and fix this and submit a pull request when I get a chance.
To anyone wondering the format of my NFO files, I used Ember Media Manager (latest version from here) to create them and they are specifically formatted for XBMC Frodo (should be backwards compat. though)
UPDATE- Looking again, that field seems to be there for only certain movies. It seems the proper tag to look for is in which case I have certifications for what seems like every movie and that includes other countries as well.
USA:TV-G / USA:Not Rated / USA:Approved / UK:PG / UK:A / Sweden:15 / South Korea:12 / Netherlands:14 / Germany:12 / Finland:S / Finland:K-16 / Canada:PG / Canada:PG / Australia:PG / Australia:G / Argentina:Atp
^There is one for one of my older movies. I'll be taking a look and seeing if maybe I just have to change the './mpaa' check in the code to './certification'
-I
Looking at movies again, it seems there is one check in the code that doesn't work for my NFO files:
try: metadata.content_rating = nfoXML.xpath('./mpaa')[0].textThat line in the movie importer does not match the corresponding line in my NFO:
Rated PG-13 for continuous crude and sexual humor, including language
The agent will find the tag, get the value and set content rating value to "Rated PG-13 for continuous crude and sexual humor, including language". It's just not an expected value, the agent expects the value to be "clean".

Edit: pull request for issue with the field just sent. needs some more looking into.
Personally, I think the current system for "mpaa" makes sense - those ratings are going to be used later for filters and showing the proper rating image in the UI; seems like they should just be set to the appropriate rating rather than the whole verbose message defining what the rating is.
@sander1
Thanks for saying that far better than I could. And thanks for the pull request.
I agree with you diamondsw but it seems that only applies for what seems to be newer films (plus the format that xbmc does seems to favor it in this format instead of just the rating cleanly set). So newer films have both a and field. Older films however only have which contains the content rating for multiple countries. So to fix this problem as a whole, the optimal solution would most likely be to check for a field, use that if found (grepping out for a valid mpaa cert. like sander1 did), if not found, look in and pull out the 'xxxx' from "USA:xxxx".
The only problem with that is someone using this plug-in from another country who doesn't want to see the USA ratings..
I guess one of the big questions is, should this agent just take the data (however it may be presented) and add it to Plex, or should it try to process and figure it out first? I lean towards the former as it's simpler and avoids the case of "smart code did a dumb thing".
I'd recommend just running a find/replace across your NFO files prior to having the agent pull in the data. Plenty of programs that can automate that.
Hi! i have tried to add the "XBMCnfoImporter.bundle" folder on the path "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins" but the option for the XBMC agent is not avaliable. My Plex version is 9.7.17.
Any suggestion?
Ps.: Sorry my bad english!