[mythtv-users] Seg fault when watching YouTube videos in Mythnetvision

Anthony Giggins seven at seven.dorksville.net
Tue Sep 25 00:22:37 UTC 2012


On 24 September 2012 22:08, Martin Moores <moores.martin at gmail.com> wrote:

> On 24 September 2012 12:47, Anthony Giggins <seven at seven.dorksville.net>wrote:
>
>>
>> Actually doesn't even look like the searching is currently working
>>
>> 2012-09-24 21:39:33.316328 I [2629/2629] CoreContext netsearch.cpp:360
>> (doSearch) - Using Search URL
>> http://172.16.107.77:6544/InternetContent/GetInternetSearch?Query=ironman 2&Grabber=youtube.py&Page=1
>>
>> When Browsing to
>>
>>
>> http://backendIP:6544/InternetContent/GetInternetSearch?Query=iron%20man%202&Grabber=youtube.py&Page=1
>>
>> it returns
>>
>> XML Parsing Error: no element found
>> Location:
>> http://backendIP:6544/InternetContent/GetInternetSearch?Query=iron%20man%202&Grabber=youtube.py&Page=1
>> Line Number 1, Column 1:
>>
>> can anyone confirm this is still working?
>>
>> Anthony
>>
>
>
> Just checked mine, I'm getting results anyway:
>
> Sep 24 13:04:20 MYTHTV1 mythfrontend[1770]: I CoreContext
> netsearch.cpp:360 (doSearch) Using Search URL
> http://192.168.100.12:6544/InternetContent/GetInternetSearch?Query=ironman 2&Grabber=youtube.py&Page=1
>
> I tried the address you mentioned on my backend, I don't get an error, but
> don't get any results, just a blank RSS subscribe type window.
>
> Updated from Mythbuntu repo on Sat
>
> Cheers
>
> Martin
>
>
>
Even running this manually I get errors from the wiki article below

http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format

./youtube.py -p 2 -S "Iron Man 2"
Traceback (most recent call last):
  File "/usr/share/mythtv/internetcontent/youtube.py", line 250, in <module>
    main.main()
  File "/usr/share/mythtv/internetcontent/nv_python_libs/mainProcess.py",
line 414, in main
    search_all_languages = False,)
  File "/usr/share/mythtv/internetcontent/nv_python_libs/mainProcess.py",
line 154, in __init__
    search_all_languages = search_all_languages,)
  File
"/usr/share/mythtv/internetcontent/nv_python_libs/youtube/youtube_api.py",
line 152, in __init__
    self.mythxml = MythXML()
  File "/usr/lib/python2.6/site-packages/MythTV/methodheap.py", line 1095,
in __init__
    self.db = DBCache(db)
  File "/usr/lib/python2.6/site-packages/MythTV/database.py", line 965, in
__init__
    dbconn = xml.getConnectionInfo(pin)
  File "/usr/lib/python2.6/site-packages/MythTV/connections.py", line 619,
in getConnectionInfo
    dat = self._request('Myth/GetConnectionInfo', Pin=pin).readJSON()
  File "/usr/lib/python2.6/site-packages/MythTV/connections.py", line 607,
in _request
    for k,v in keyvars.items()])
  File "/usr/lib64/python2.6/urllib.py", line 1220, in quote
    res = map(safe_map.__getitem__, s)

and the still errors after a git pull

./youtube.py -p 2 -S "Iron Man 2"
Traceback (most recent call last):
  File
"/opt/mythtv/mythtv/mythtv/programs/scripts/internetcontent/youtube.py",
line 250, in <module>
    main.main()
  File
"/opt/mythtv/mythtv/mythtv/programs/scripts/internetcontent/nv_python_libs/mainProcess.py",
line 414, in main
    search_all_languages = False,)
  File
"/opt/mythtv/mythtv/mythtv/programs/scripts/internetcontent/nv_python_libs/mainProcess.py",
line 154, in __init__
    search_all_languages = search_all_languages,)
  File
"/opt/mythtv/mythtv/mythtv/programs/scripts/internetcontent/nv_python_libs/youtube/youtube_api.py",
line 152, in __init__
    self.mythxml = MythXML()
  File "/usr/lib/python2.6/site-packages/MythTV/methodheap.py", line 1095,
in __init__
    self.db = DBCache(db)
  File "/usr/lib/python2.6/site-packages/MythTV/database.py", line 965, in
__init__
    dbconn = xml.getConnectionInfo(pin)
  File "/usr/lib/python2.6/site-packages/MythTV/connections.py", line 619,
in getConnectionInfo
    dat = self._request('Myth/GetConnectionInfo', Pin=pin).readJSON()
  File "/usr/lib/python2.6/site-packages/MythTV/connections.py", line 607,
in _request
    for k,v in keyvars.items()])
  File "/usr/lib64/python2.6/urllib.py", line 1220, in quote
    res = map(safe_map.__getitem__, s)
TypeError: argument 2 to map() must support iteration

Cheers,

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120925/d3d31f03/attachment-0001.html>


More information about the mythtv-users mailing list