zynine- / HDHRViewerV2.bundle

HDHomeRun + Plex
MIT License
94 stars 16 forks source link

Error after adding XMLTV.XML: <type 'exceptions.NameError'>: ("global name 'info' is not defined",): #38

Closed jpborjas closed 7 years ago

jpborjas commented 7 years ago

I installed the plugin and I can see live TV just fine. Now, I set up zap2xml and generated an xmltv.xml file, I modified the settings for XMLTV Mode = file, then specified the location of the xmltv.xml file and now I'm getting the error above. I tried to make things simpler by having just one Fav Channel, but still the same error. Here's the whole log file:

2017-01-17 11:49:58,671 (700012a18000) : DEBUG (runtime:717) - Handling request GET /video/hdhrv2 2017-01-17 11:49:58,673 (700012a18000) : DEBUG (runtime:814) - Found route matching /video/hdhrv2 2017-01-17 11:49:58,674 (700012a18000) : INFO (init:1101) - ** **[System Info]* 2017-01-17 11:49:58,674 (700012a18000) : INFO (init:1101) - ** Server: MacOSX 10.12.2 [i386] 2017-01-17 11:49:58,674 (700012a18000) : INFO (init:1101) - ** PMS : 1.2.0.3114-de38375 2017-01-17 11:49:58,674 (700012a18000) : INFO (init:1101) - ** Client: Plex Web 2.12.8 [Chrome] 2017-01-17 11:49:58,675 (700012a18000) : INFO (init:1101) - ** HDHRV2: 0.9.12 2017-01-17 11:49:58,675 (700012a18000) : INFO (init:1101) - ** ** 2017-01-17 11:49:58,675 (700012a18000) : INFO (init:1101) - ** Adding manually defined tuner: 192.168.11.5 2017-01-17 11:49:58,677 (700012a18000) : DEBUG (networking:166) - Requesting 'http://my.hdhomerun.com/discover' 2017-01-17 11:49:59,224 (700012a18000) : ERROR (init:1095) - ########## Devices.autoDiscover(): <type 'exceptions.AttributeError'>: ("'NoneType' object has no attribute 'iter'",): 'NoneType' object has no attribute 'iter' 2017-01-17 11:49:59,224 (700012a18000) : INFO (init:1101) - ** Total Tuners: 1 2017-01-17 11:49:59,230 (700012a18000) : DEBUG (networking:166) - Requesting 'http://192.168.11.5/lineup.json' 2017-01-17 11:50:00,233 (700012a18000) : ERROR (init:1095) - ########## getTunerTotalChannels(tuner): <class 'urllib2new.URLError'>: (timeout('timed out',),): 2017-01-17 11:50:00,233 (700012a18000) : ERROR (init:1095) - ########## tuner={'BaseURL': '192.168.11.5', 'autoDiscover': False, 'LocalIP': '192.168.11.5', 'DiscoverURL': 'http://192.168.11.5/discover.json', 'DeviceID': 'Manual192.168.11.5', 'LineupURL': 'http://192.168.11.5/lineup.json'} 2017-01-17 11:50:00,234 (700012a18000) : DEBUG (base:117) - Checking if com.plexapp.plugins.hdhrviewer.v2 is broken 2017-01-17 11:50:00,235 (700012a18000) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMQpzMzMKY29tLnBsZXhhcHAucGx1Z2lucy5oZGhydmlld2VyLnYyczEwCmlkZW50aWZpZXJyMAo' 2017-01-17 11:50:00,245 (700012a18000) : DEBUG (runtime:88) - Sending packed state data (598 bytes) 2017-01-17 11:50:00,246 (700012a18000) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1041 bytes 2017-01-17 11:50:04,228 (700012e1b000) : INFO (datakit:131) - Saved the dictionary file 2017-01-17 11:50:04,268 (700012a18000) : DEBUG (runtime:717) - Handling request GET /video/hdhrv2 2017-01-17 11:50:04,270 (700012a18000) : DEBUG (runtime:814) - Found route matching /video/hdhrv2 2017-01-17 11:50:04,270 (700012a18000) : INFO (init:1101) - ** **[System Info]* 2017-01-17 11:50:04,271 (700012a18000) : INFO (init:1101) - ** Server: MacOSX 10.12.2 [i386] 2017-01-17 11:50:04,271 (700012a18000) : INFO (init:1101) - ** PMS : 1.2.0.3114-de38375 2017-01-17 11:50:04,271 (700012a18000) : INFO (init:1101) - ** Client: Plex Web 2.12.8 [Chrome] 2017-01-17 11:50:04,271 (700012a18000) : INFO (init:1101) - ** HDHRV2: 0.9.12 2017-01-17 11:50:04,271 (700012a18000) : INFO (init:1101) - ** ** 2017-01-17 11:50:04,272 (700012a18000) : INFO (init:1101) - ** Adding manually defined tuner: 192.168.11.5 2017-01-17 11:50:04,274 (700012a18000) : DEBUG (networking:166) - Requesting 'http://my.hdhomerun.com/discover' 2017-01-17 11:50:04,556 (700012a18000) : ERROR (init:1095) - ########## Devices.autoDiscover(): <type 'exceptions.AttributeError'>: ("'NoneType' object has no attribute 'iter'",): 'NoneType' object has no attribute 'iter' 2017-01-17 11:50:04,556 (700012a18000) : INFO (init:1101) - ** Total Tuners: 1 2017-01-17 11:50:04,562 (700012a18000) : DEBUG (networking:166) - Requesting 'http://192.168.11.5/lineup.json' 2017-01-17 11:50:05,563 (700012a18000) : ERROR (init:1095) - ########## getTunerTotalChannels(tuner): <class 'urllib2new.URLError'>: (timeout('timed out',),): 2017-01-17 11:50:05,564 (700012a18000) : ERROR (init:1095) - ########## tuner={'BaseURL': '192.168.11.5', 'autoDiscover': False, 'LocalIP': '192.168.11.5', 'DiscoverURL': 'http://192.168.11.5/discover.json', 'DeviceID': 'Manual192.168.11.5', 'LineupURL': 'http://192.168.11.5/lineup.json'} 2017-01-17 11:50:05,565 (700012a18000) : DEBUG (base:117) - Checking if com.plexapp.plugins.hdhrviewer.v2 is broken 2017-01-17 11:50:05,565 (700012a18000) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMQpzMzMKY29tLnBsZXhhcHAucGx1Z2lucy5oZGhydmlld2VyLnYyczEwCmlkZW50aWZpZXJyMAo' 2017-01-17 11:50:05,577 (700012a18000) : DEBUG (runtime:88) - Sending packed state data (598 bytes) 2017-01-17 11:50:05,578 (700012a18000) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1041 bytes 2017-01-17 11:50:05,715 (700012a18000) : DEBUG (runtime:717) - Handling request GET /video/hdhrv2/favorite-channels?favidx=1 2017-01-17 11:50:05,716 (700012a18000) : DEBUG (runtime:814) - Found route matching /video/hdhrv2/favorite-channels 2017-01-17 11:50:05,717 (700012a18000) : DEBUG (init:1098) - ---------- Tuner not defined/found in favorite list. Assuming tuner: 192.168.11.5 2017-01-17 11:50:05,719 (700012a18000) : DEBUG (networking:166) - Requesting 'http://192.168.11.5/lineup.json' 2017-01-17 11:50:06,721 (700012a18000) : ERROR (init:1095) - ########## LoadAllChannels(tuneridx): <class 'urllib2_new.URLError'>: (timeout('timed out',),): 2017-01-17 11:50:06,722 (700012a18000) : ERROR (init:1095) - ########## tuner=0 2017-01-17 11:50:06,723 (700012a18000) : ERROR (init:1095) - ########## XMLTV Mode Channel List<type 'exceptions.IOError'>: ('file() constructor not accessible in restricted mode',): file() constructor not accessible in restricted mode 2017-01-17 11:50:06,724 (700012a18000) : DEBUG (networking:166) - Requesting 'http://192.168.11.5/discover.json' 2017-01-17 11:50:07,728 (700012a18000) : ERROR (init:1095) - ########## getDeviceInfoJsonData(tuner,info)<class 'urllib2_new.URLError'>: (timeout('timed out',),): 2017-01-17 11:50:07,729 (700012a18000) : ERROR (init:1095) - ########## tuner={'BaseURL': '192.168.11.5', 'autoDiscover': False, 'LocalIP': '192.168.11.5', 'DiscoverURL': 'http://192.168.11.5/discover.json', 'DeviceID': 'Manual192.168.11.5', 'LineupURL': 'http://192.168.11.5/lineup.json'} 2017-01-17 11:50:07,729 (700012a18000) : ERROR (init:1095) - ########## FavoriteChannelsMenu(1)<type 'exceptions.NameError'>: ("global name 'info' is not defined",): global name 'info' is not defined 2017-01-17 11:50:07,731 (700012a18000) : DEBUG (runtime:88) - Sending packed state data (114 bytes) 2017-01-17 11:50:07,731 (700012a18000) : DEBUG (runtime:924) - Response: [200] MediaContainer, 789 bytes 2017-01-17 11:50:09,561 (700012e1b000) : INFO (datakit:131) - Saved the dictionary file

jpborjas commented 7 years ago

Never mind, I figured it out.