projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1050e0d
)
[ustream] Add support for video.ibm.com (#26894)
author
Sergio Livi
<me@serl.it>
Sat, 17 Oct 2020 16:14:46 +0000
(18:14 +0200)
committer
GitHub
<noreply@github.com>
Sat, 17 Oct 2020 16:14:46 +0000
(23:14 +0700)
youtube_dl/extractor/ustream.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ustream.py
b/youtube_dl/extractor/ustream.py
index 582090d0dd1e69bb8d4a761e81e702b0aa10253f..9e860aeb761aae86de24b20ce29c6250c4ff52bf 100644
(file)
--- a/
youtube_dl/extractor/ustream.py
+++ b/
youtube_dl/extractor/ustream.py
@@
-19,7
+19,7
@@
from ..utils import (
class UstreamIE(InfoExtractor):
class UstreamIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?
ustream\.tv
/(?P<type>recorded|embed|embed/recorded)/(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?
(?:ustream\.tv|video\.ibm\.com)
/(?P<type>recorded|embed|embed/recorded)/(?P<id>\d+)'
IE_NAME = 'ustream'
_TESTS = [{
'url': 'http://www.ustream.tv/recorded/20274954',
IE_NAME = 'ustream'
_TESTS = [{
'url': 'http://www.ustream.tv/recorded/20274954',
@@
-67,12
+67,15
@@
class UstreamIE(InfoExtractor):
'params': {
'skip_download': True, # m3u8 download
},
'params': {
'skip_download': True, # m3u8 download
},
+ }, {
+ 'url': 'https://video.ibm.com/embed/recorded/128240221?&autoplay=true&controls=true&volume=100',
+ 'only_matching': True,
}]
@staticmethod
def _extract_url(webpage):
mobj = re.search(
}]
@staticmethod
def _extract_url(webpage):
mobj = re.search(
- r'<iframe[^>]+?src=(["\'])(?P<url>http://
www\.ustream\.tv
/embed/.+?)\1', webpage)
+ r'<iframe[^>]+?src=(["\'])(?P<url>http://
(?:www\.)?(?:ustream\.tv|video\.ibm\.com)
/embed/.+?)\1', webpage)
if mobj is not None:
return mobj.group('url')
if mobj is not None:
return mobj.group('url')