summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergio Livi <me@serl.it>2020-10-17 18:14:46 +0200
committerGitHub <noreply@github.com>2020-10-17 23:14:46 +0700
commit605535776a8d5beba78b4d1b057d5206ddd969eb (patch)
tree4d0d6f5f8ececea438c0d02427c2ba407eef8304
parent1050e0d09f02209cc5c6f45da46c2b79f73d96f4 (diff)
downloadyoutube-dl-605535776a8d5beba78b4d1b057d5206ddd969eb.tar.gz
youtube-dl-605535776a8d5beba78b4d1b057d5206ddd969eb.tar.xz
youtube-dl-605535776a8d5beba78b4d1b057d5206ddd969eb.zip
[ustream] Add support for video.ibm.com (#26894)
-rw-r--r--youtube_dl/extractor/ustream.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ustream.py b/youtube_dl/extractor/ustream.py
index 582090d0d..9e860aeb7 100644
--- a/youtube_dl/extractor/ustream.py
+++ b/youtube_dl/extractor/ustream.py
@@ -19,7 +19,7 @@ from ..utils import (
 
 
 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',
@@ -67,12 +67,15 @@ class UstreamIE(InfoExtractor):
         '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(
-            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')