From 93041d4ceca35fe661d4d4608f5ec18d3a12cefc Mon Sep 17 00:00:00 2001 From: Parth Verma Date: Sun, 29 Apr 2018 23:42:10 +0530 Subject: [PATCH] Fixed ibm think playlist downloader regex and handled ustream via generic parser --- youtube_dl/extractor/ibm_think.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/ibm_think.py b/youtube_dl/extractor/ibm_think.py index 815f29d73..b6a45403f 100644 --- a/youtube_dl/extractor/ibm_think.py +++ b/youtube_dl/extractor/ibm_think.py @@ -4,13 +4,13 @@ from __future__ import unicode_literals import re from .common import InfoExtractor -from .ustream import UstreamIE +from .generic import GenericIE class IbmThinkIE(InfoExtractor): IE_DESC = 'IBM Think Videos' IE_NAME = 'IBMThink' - _VALID_URL = r'https?://(?:www\.)?ibm\.com/events/think/watch/replay/(?P[0-9]+)/?' + _VALID_URL = r'https?://(?:www\.)?ibm\.com/events/think/watch/(playlist/)?(\d*/)?replay/(?P[0-9]+)/?' _TESTS = [{ 'url': 'https://www.ibm.com/events/think/watch/replay/113734399/', 'md5': '0a3f1c81c58aacbbb36e292a1c1f9690', @@ -29,7 +29,7 @@ class IbmThinkIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) ustream_url = self._html_search_regex(r'', webpage)] + entries = [self.url_result(m, GenericIE.ie_key()) for m in re.findall(r'', webpage)] title = self._html_search_regex(r'(?:.+?)\s\|\s(?:.+?)\s\|\s(.+?)', webpage, 'title') description = self._og_search_description(webpage) return self.playlist_result(entries, playlist_id, title, description)