psyciknz / NextPVR.bundle

Plex Channel for viewing NextPVR content
29 stars 4 forks source link

Error when Updating Library with recordings #14

Closed jtweaver closed 7 years ago

jtweaver commented 7 years ago

I've been using this for a few weeks, and it has been great when it works. Since the recent update, I've been getting the error message below when trying to import Recorded TV from NextPVR. I have everything set up correctly (I think), including my Plex token. Let me know if you need more than just this excerpt of the logs, but this seems to be the recurring issue. Thanks.

`2017-07-14 15:26:44,032 (fc) : DEBUG (model:229) - Serializing to C:\Users\\AppData\Local\Plex Media Server\Metadata\TV Shows\4\d7ee19a4109916c7e9ed0a35663a382f8f92b89.bundle\Contents\com.plexapp.agents.npvrxml\Info.xml 2017-07-14 15:26:44,033 (fc) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2017-07-14 15:26:44,033 (fc) : DEBUG (runtime:924) - Response: [200] str, 16 bytes 2017-07-14 15:45:58,964 (32ac) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.npvrxml/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMwo3MDJzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0MApjb20ucGxleGFwcC5hZ2VudHMubnB2cnhtbDovLzcwMj9sYW5nPWVuczQKZ3VpZHMzCjcwMnMyCmlkcjAK 2017-07-14 15:45:58,964 (32ac) : DEBUG (runtime:49) - Received packed state data (80 bytes) 2017-07-14 15:45:58,966 (32ac) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.npvrxml/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMwo3MDJzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0MApjb20ucGxleGFwcC5hZ2VudHMubnB2cnhtbDovLzcwMj9sYW5nPWVuczQKZ3VpZHMzCjcwMnMyCmlkcjAK 2017-07-14 15:45:58,967 (32ac) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.npvrxml://?lang=en 2017-07-14 15:45:58,967 (32ac) : DEBUG (model:234) - Deserializing from C:\Users\\AppData\Local\Plex Media Server\Metadata\TV Shows\4\d7ee19a4109916c7e9ed0a35663a382f8f92b89.bundle\Contents\com.plexapp.agents.npvrxml\Info.xml 2017-07-14 15:45:58,970 (32ac) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata//tree' 2017-07-14 15:45:58,977 (32ac) : INFO (logkit:16) - Found plex token: ?X-Plex-Token= 2017-07-14 15:45:58,979 (32ac) : INFO (logkit:16) - Update: Media ID = Metadata ID = plex token: ?X-Plex-Token= 2017-07-14 15:45:58,979 (32ac) : INFO (logkit:16) - Update: Update called for TV Show with id = Media.title: 0711 GIUD: com.plexapp.agents.npvrxml://?lang=en 2017-07-14 15:45:58,979 (32ac) : DEBUG (networking:166) - Requesting 'http://localhost:32400/library/metadata//tree?X-Plex-Token=' 2017-07-14 15:46:00,010 (32ac) : INFO (logkit:16) - ('Xml Count ', 3) 2017-07-14 15:46:00,012 (32ac) : INFO (logkit:16) - Update: Retrieved ext from plex: ts 2017-07-14 15:46:00,012 (32ac) : INFO (logkit:16) - Update: Retrieved media ep name plex: 2017-07-14 15:46:00,013 (32ac) : INFO (logkit:16) - Update: No poster data found 2017-07-14 15:46:00,013 (32ac) : INFO (logkit:16) - Update: No banner data found 2017-07-14 15:46:00,013 (32ac) : INFO (logkit:16) - Update: No fanart data found 2017-07-14 15:46:00,013 (32ac) : INFO (logkit:16) - Loading xml File: H:\Recorded TV\\_20170711_22002235.xml 2017-07-14 15:46:00,015 (32ac) : INFO (logkit:16) - Update: Looks like an NPVR XML file (has ) 2017-07-14 15:46:00,016 (32ac) : CRITICAL (core:574) - Exception in the update function of agent named 'NPVR TV .xml Importer', called with guid 'com.plexapp.agents.npvrxml://?lang=en' (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1076, in _update agent.update(obj, media, lang, kwargs) File "C:\Users\\AppData\Local\Plex Media Server\Plug-ins\NPVRxmlTV.bundle\Contents\Code__init__.py", line 214, in update Log('Update: Episode summary set to ' + metadata.summary) TypeError: cannot concatenate 'str' and 'NoneType' objects**

2017-07-14 15:46:00,028 (32ac) : DEBUG (model:229) - Serializing to C:\Users\\AppData\Local\Plex Media Server\Metadata\TV Shows\4\d7ee19a4109916c7e9ed0a35663a382f8f92b89.bundle\Contents\com.plexapp.agents.npvrxml\Info.xml`

psyciknz commented 7 years ago

Do you have the xml from nextpvr it's trying to load. It's almost like it has not summary/description.

jtweaver commented 7 years ago

Here it is. It doesn't have a summary tag but does have a description tag without data. Almost all of my recordings are like this though (and don't get loaded into Plex).

CBS Austin News at 10P_20170711_22002235.xml.txt

psyciknz commented 7 years ago

Ok, l'll have a toodle later today/tonight. If I'm checking if the tag has something in it before updating the summary property, then because this has nothing in it, the plex summary property will be null. I'll need to set it to nothing first (null and nothing are different)

jtweaver commented 7 years ago

Can confirm the latest update fixes the problem. Thanks @psyciknz !

psyciknz commented 7 years ago

Awesome. Thanks.