Open GoogleCodeExporter opened 8 years ago
This patch fixes it for me :)
Original comment by gm...@colin.guthr.ie
on 17 Aug 2010 at 9:21
Attachments:
I also noticed a second problem with it getting the list of speakers.
I'd get the following error:
22:28:36 T:2663181168 M:3032137728 NOTICE: [TED Talks] resources.lib.util
attempting to open http://www.ted.com/speakers/atoz/page/10
22:28:36 T:2663181168 M:3032010752 NOTICE: [TED Talks] resources.lib.util
attempting to open http://www.ted.com/speakers/atoz/page/11
22:28:37 T:2663181168 M:3032010752 NOTICE: /usr/lib/python2.6/urllib.py:1222:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them
as being unequal
res = map(safe_map.__getitem__, s)
22:28:37 T:2663181168 M:3032010752 INFO: -->Python script returned the
following error<--
22:28:37 T:2663181168 M:3032010752 ERROR: Error Type: <type
'exceptions.KeyError'>
22:28:37 T:2663181168 M:3032010752 ERROR: Error Contents: (u'\xf1',)
22:28:37 T:2663181168 M:3032010752 ERROR: Traceback (most recent call last):
File "/home/media/.xbmc/addons/plugin.video.ted.talks/default.py", line 27, in <module>
ted_talks.Main()
File "/home/media/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 182, in __init__
self.checkMode()
File "/home/media/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 243, in checkMode
UI().speakers()
File "/home/media/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 131, in speakers
self.addItem(speaker, isFolder = True)
File "/home/media/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 59, in addItem
'&name='+urllib.quote_plus(info['Title'])
File "/usr/lib/python2.6/urllib.py", line 1228, in quote_plus
s = quote(s, safe + ' ')
File "/usr/lib/python2.6/urllib.py", line 1222, in quote
res = map(safe_map.__getitem__, s)
KeyError: (u'\xf1',)
22:28:37 T:2663181168 M:3032010752 INFO: -->End of Python script error
report<--
22:28:37 T:2663181168 M:3032010752 INFO: Python script stopped
The attached patch fixes this, but it's probably left someone out of the list :D
Original comment by gm...@colin.guthr.ie
on 17 Aug 2010 at 9:34
Attachments:
Original issue reported on code.google.com by
Yugl...@gmail.com
on 5 Jul 2010 at 5:47