Moved ibm think videos GenericIE
This commit is contained in:
parent
15b71e4a61
commit
5305ecf7f9
@ -450,10 +450,7 @@ from .hrti import (
|
||||
from .huajiao import HuajiaoIE
|
||||
from .huffpost import HuffPostIE
|
||||
from .hypem import HypemIE
|
||||
from .ibm_think import (
|
||||
IbmThinkIE,
|
||||
IbmThinkPlaylistIE,
|
||||
)
|
||||
from .ibm_think import IbmThinkPlaylistIE
|
||||
from .iconosquare import IconosquareIE
|
||||
from .ign import (
|
||||
IGNIE,
|
||||
|
@ -7,31 +7,6 @@ from .common import InfoExtractor
|
||||
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):
|
||||
IE_DESC = 'IBM Think Playlist'
|
||||
IE_NAME = 'IBMThink:playlist'
|
||||
|
Loading…
x
Reference in New Issue
Block a user