ted script gives error often
#1
Dear members,
Since a few weeks I am using, i.c. enjoining Raspbmc.
But the TED lectures often give a script error:
Quote:## ted errors in xbmc.log ##
14:37:08 T:3037736960 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.ted.talks/?url=http%3A%2F%2Ffeedproxy.google.com%2F%7Er%2FTedtalksHD%2F%7E3%2FR2ZwM_TM1VA%2Fafra_raymond_three_myths_about_corruption.html&mode=playVideo&icon=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2F592908a61852075d8423362989e9fe268fefc5c9_480x360.jpg]
14:37:25 T:2857366592 NOTICE: Thread Background Loader start, auto delete: false
14:37:25 T:2707944512 NOTICE: Thread Jobworker start, auto delete: true
15:49:30 T:2707944512 NOTICE: Previous line repeats 1 times.
15:49:30 T:2707944512 NOTICE: Thread XBPyThread start, auto delete: false
15:49:31 T:2707944512 NOTICE: -->Python Interpreter Initialized<--
15:49:31 T:2707944512 NOTICE: [PLUGIN] 'TED Talks: version 4.1.7' initialized!
15:49:35 T:2707944512 NOTICE: [TED Talks] resources.lib.model.fetcher attempting to open http://feedproxy.google.com/~r/TedtalksH...world.html with data
15:49:50 T:2707944512 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: sequence item 0: expected string, NoneType found
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/default.py", line 17, in <module>
ted_talks.Main(args_map=args_map).run()
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 346, in run
modes[mode].run(self.args_map)
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 172, in run
self.run_internal(args)
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 190, in run_internal
self.ui.playVideo(args['url'], args['icon'])
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 73, in playVideo
title, url, subs, info_labels = self.ted_talks.getVideoDetails(url, subs_language)
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks_scraper.py", line 81, in getVideoDetails
subs = subtitles_scraper.get_subtitles_for_talk(soup, subs_language, self.logger)
File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/model/subtitles_scraper.py", line 127, in get_subtitles_for_talk
msg = 'No subtitles in: %s' % (",".join(accepted_languages))
TypeError: sequence item 0: expected string, NoneType found
-->End of Python script error report<--
15:49:50 T:3037736960 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.ted.talks/?url=http%3A%2F%2Ffeedproxy.google.com%2F%7Er%2FTedtalksHD%2F%7E3%2FPxYcxlW0goM%2Fjames_b_glattfelder_who_controls_the_world.html&mode=playVideo&icon=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2F2a46d8d424ce31486b5ebb8278ade834cd6aefe7_480x360.jpg]

I sure hope someone knows a solution or could tell me where to enhance the script.
Reply
#2
I have exactly the same issue, using RaspBMC (tested on official RC4 release and nightly-20130303)

Code:
16:22:09 T:2946012224  NOTICE: -->Python Interpreter Initialized<--
16:22:10 T:2946012224  NOTICE: [PLUGIN] 'TED Talks: version 4.1.7' initialized!
16:22:13 T:2946012224  NOTICE: [TED Talks] resources.lib.model.fetcher attempting to open http://feedproxy.google.com/~r/TedtalksHD/~3/KvsvB31E6j4/edith_widder_how_we_found_the_giant_squid.html with data
16:22:26 T:2946012224   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: sequence item 0: expected string, NoneType found
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/default.py", line 17, in <module>
                                                ted_talks.Main(args_map=args_map).run()
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 346, in run
                                                modes[mode].run(self.args_map)
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 172, in run
                                                self.run_internal(args)
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 190, in run_internal
                                                self.ui.playVideo(args['url'], args['icon'])
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 73, in playVideo
                                                title, url, subs, info_labels = self.ted_talks.getVideoDetails(url, subs_language)
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/ted_talks_scraper.py", line 81, in getVideoDetails
                                                subs = subtitles_scraper.get_subtitles_for_talk(soup, subs_language, self.logger)
                                              File "/home/pi/.xbmc/addons/plugin.video.ted.talks/resources/lib/model/subtitles_scraper.py", line 127, in get_subtitles_for_talk
                                                msg = 'No subtitles in: %s' % (",".join(accepted_languages))
                                            TypeError: sequence item 0: expected string, NoneType found
                                            -->End of Python script error report<--
16:22:26 T:3037675520   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.ted.talks/?url=http%3A%2F%2Ffeedproxy.google.com%2F%7Er%2FTedtalksHD%2F%7E3%2FKvsvB31E6j4%2Fedith_widder_how_we_found_the_giant_squid.html&mode=playVideo&icon=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2Fa89a98e6f6b426d9dfe9f51e3f14adea10fa1ccb_480x360.jpg]
16:22:26 T:2946012224  NOTICE: Thread Background Loader start, auto delete: false
pi@raspbmc:~$
Reply
#3
I can't help you with the TED plugin but you could also use my "Apple Itunes Podcasts" Add-on. The TED Podcast (and about one million other) Video- and Audio-Podcasts are available there.
My GitHub. My Add-ons:
Image
Reply
#4
Vielen Dank fuer deinem Tipp. Werde dass mal versuchen.
Reply
#5
Try turning off the subtitle option in the add-on settings.
My Kodi Box: Windows 10 (1809; 64bits), Intel Core i5 9600K, Gigabyte Z390 Aorus Pro, 16 GB RAM, AMD Radeon RX550, Samsung SSD 970 EVO, Denon AVR x2500H, LG OLED55C7V 55".
Reply
#6
...and now it is 2014 but the TED talk problem still gives errors a lot. BUT... there is a SOLUTION. Can't imagine why I didn't get the idea earlier:

Open Youtube channels, search TED...WORKING!
Open Apple ITunes Podcasts, search TED talks... WORKING!
Reply

Logout Mark Read Team Forum Stats Members Help
ted script gives error often0