[mythtv-users] [Bulk] mythnetvision - unable to view certain channels
Hika van den Hoven
hikavdh at gmail.com
Sun Jul 19 14:52:05 UTC 2015
Hoi Hika,
Sunday, July 19, 2015, 4:48:16 PM, you wrote:
> Hoi Hika,
> Friday, July 17, 2015, 6:26:38 PM, you wrote:
>> Hoi Hika,
>> Friday, July 17, 2015, 5:43:51 PM, you wrote:
>>> Hoi Tim,
>>> Friday, July 17, 2015, 10:34:48 AM, you wrote:
>>>> ---- On Thu, 16 Jul 2015 20:26:59 +0100 Hika van den Hoven wrote ----
>>>>>I looked around a bit and ./youtube.py -S linux works in 0.27.5
>>>>>
>>>>>
>>>>>Tot mails,
>>>>> Hika mailto:hikavdh at gmail.com
>>>>>
>>>> works for me too, but ./youtube.py -T fails with the following. IF
>>>> i'm reading this right (i have no python experience), it looks like
>>>> the the 'items' key in etree is invalid?...
>>>> ---
>>>> The module aniso8601 could not be imported, duration parsing will be disabled
>>>> Traceback (most recent call last):
>>>> File "./youtube.py", line 223, in <module>
>>>> main.main()
>>>> File
>>>> "/usr/share/mythtv/internetcontent/nv_python_libs/mainProcess.py", line 461, in main
>>>> Queries.displayTreeView()
>>>> File
>>>> "/usr/share/mythtv/internetcontent/nv_python_libs/mainProcess.py", line 274, in displayTreeView
>>>> data_sets = self.config['target'].displayTreeView()
>>>> File
>>>> "/usr/share/mythtv/internetcontent/nv_python_libs/youtube/youtube_api.py", line 542, in displayTreeView
>>>> for category in etree['items']:
>>>> KeyError: 'items'
>>>> ---
>>>> does the -T error have any correlation to showing no results in the
>>>> search or browse areas in mythfrontend?
>>> I'll look at your error, but I get a result list in the frontend
>> To start, I get the same error on the commandline, but I can search
>> and watch youtube videos. So it doesn't seem to be used that way.
>> Just before the error a Videocategorielist is fetched. It either has
>> an unexpected structure or is empty. The fetch itself doesn't give an
>> error.
>> url = 'https://www.googleapis.com/youtube/v3/videoCategories?' + \
>> 'part=snippet®ionCode=%s&key=%s' % \
>> (self.config['region'], self.apikey)
> I checked further and the error comes from a missing regioncode.
> Change line 174
> 173 region = self.userPrefs.find("region")
> 174 if region != None:
> 175 self.config['region'] = region.text
> 176 else:
> 177 self.config['region'] = u'us'
> to:
> if region.text != None:
or beter to:
if region != None and region.text:
Tot mails,
Hika Alina Maria van den Hoven mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
--
More information about the mythtv-users
mailing list