Moved ibm think videos GenericIE

This commit is contained in:
Parth Verma 2018-04-30 21:59:45 +05:30
parent 15b71e4a61
commit 5305ecf7f9
2 changed files with 2 additions and 30 deletions

View File

@ -450,10 +450,7 @@ from .hrti import (
from .huajiao import HuajiaoIE from .huajiao import HuajiaoIE
from .huffpost import HuffPostIE from .huffpost import HuffPostIE
from .hypem import HypemIE from .hypem import HypemIE
from .ibm_think import ( from .ibm_think import IbmThinkPlaylistIE
IbmThinkIE,
IbmThinkPlaylistIE,
)
from .iconosquare import IconosquareIE from .iconosquare import IconosquareIE
from .ign import ( from .ign import (
IGNIE, IGNIE,

View File

@ -7,31 +7,6 @@ from .common import InfoExtractor
from .generic import GenericIE 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/(playlist/)?(\d*/)?replay/(?P<id>[0-9]+)/?'
_TESTS = [{
'url': 'https://www.ibm.com/events/think/watch/replay/113734399/',
'md5': '0a3f1c81c58aacbbb36e292a1c1f9690',
'info_dict': {
'id': '113734399',
'ext': 'mp4',
'title': 'Think 2018 Chairman\'s Address: Putting Smart to Work',
'timestamp': 1521575552,
'upload_date': '20180320',
'uploader': 'f8k4md3yana',
'uploader_id': '43178333',
}
}]
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
ustream_url = self._html_search_regex(r'<iframe\ssrc="(.*?)"', webpage, 'ustream_url').split('?')[0] + '/'
return self.url_result(ustream_url, GenericIE.ie_key())
class IbmThinkPlaylistIE(InfoExtractor): class IbmThinkPlaylistIE(InfoExtractor):
IE_DESC = 'IBM Think Playlist' IE_DESC = 'IBM Think Playlist'
IE_NAME = 'IBMThink:playlist' IE_NAME = 'IBMThink:playlist'