Closed reids closed 11 years ago
I got round this by using the vimeo plugin and adding code to send vimeo urls to the plugin
I only wrote my first python half an hour ago to get this working so appologies for any crudeness. In ted_talks_scraper.py::getVideoDetails I added (added lines highlighted with *)
linkDetectors = [
lambda l: re.compile('High-res video \(MP4\)').match(str(l.string)),
lambda l: re.compile('http://download.ted.com/talks/.+.mp4').match(str(l['href'])),
*lambda l: re.compile('http://vimeo.com/.+').match(str(l['href'])),
]
for link in soup.findAll('a', href=True):
for detector in linkDetectors:
if detector(link):
url = link['href']
linkDetectors = linkDetectors[:linkDetectors.index(detector)] # Only look for better matches than what we have
break
* if url[0:16] = 'http://vimeo.com/'
* url = 'plugin://plugin.video.vimeo?action=play_video&videoid=' + url[17:100]
Thanks very much for the report and patch. I wonder if it's possible to skip the Vimeo plugin? I'll try and do some work on it later this week.
My pleasure, thanks very much for the plug in. On Jul 3, 2012 12:26 AM, "moreginger" < reply@reply.github.com> wrote:
Thanks very much for the report and patch. I wonder if it's possible to skip the Vimeo plugin? I'll try and do some work on it later this week.
Reply to this email directly or view it on GitHub:
https://github.com/moreginger/xbmc-plugin.video.ted.talks/issues/24#issuecomment-6721543
Yikes. Sorry for lameness but I've just pushed this fix to master (de84672ef0b8ef0b8b0bd671fe3de95477b801e1). Just needs merge to Frodo and pull now.
I am seeing the following error tring to play Seth Godin - This is Broken, other videos play ok, the difference I see is that this talk is hosted on Vimeo, log entry is
09:32:49 T:2908 NOTICE: -->Python Interpreter Initialized<-- 09:32:49 T:2908 NOTICE: [PLUGIN] 'TED Talks: version 3.1.2' initialized! 09:32:50 T:2908 NOTICE: [TED Talks] resources.lib.model.fetcher attempting to open http://www.ted.com/speakers/seth_godin.html with data 09:32:54 T:2836 NOTICE: -->Python Interpreter Initialized<-- 09:32:54 T:2836 NOTICE: [PLUGIN] 'TED Talks: version 3.1.2' initialized! 09:32:55 T:2836 NOTICE: [TED Talks] resources.lib.model.fetcher attempting to open http://www.ted.com/talks/seth_godin_this_is_broken_1.html with data 09:32:57 T:2836 NOTICE: [TED Talks] No languages in flashvars. 09:32:57 T:3128 NOTICE: DVDPlayer: Opening: 09:32:57 T:3128 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED 09:32:57 T:3896 NOTICE: Creating InputStream 09:32:57 T:3896 ERROR: CDVDPlayer::OpenInputStream - error opening [] 09:32:57 T:3896 NOTICE: CDVDPlayer::OnExit() 09:32:57 T:3896 NOTICE: CDVDPlayer::OnExit() deleting input stream 09:32:57 T:3128 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.ted.talks/?url=http%3A%2F%2Fwww.ted.com%2Ftalks%2Fseth_godin_this_is_broken_1.html&mode=playVideo&icon=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2F197995_389x292.jpg] 09:32:57 T:3128 NOTICE: CDVDPlayer::CloseFile()