Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
60553577
Unverified
Commit
60553577
authored
Oct 17, 2020
by
Sergio Livi
Committed by
GitHub
Oct 17, 2020
Browse files
[ustream] Add support for video.ibm.com (#26894)
parent
1050e0d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
youtube_dl/extractor/ustream.py
youtube_dl/extractor/ustream.py
+5
-2
No files found.
youtube_dl/extractor/ustream.py
View file @
60553577
...
@@ -19,7 +19,7 @@ from ..utils import (
...
@@ -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'
IE_NAME
=
'ustream'
_TESTS
=
[{
_TESTS
=
[{
'url'
:
'http://www.ustream.tv/recorded/20274954'
,
'url'
:
'http://www.ustream.tv/recorded/20274954'
,
...
@@ -67,12 +67,15 @@ class UstreamIE(InfoExtractor):
...
@@ -67,12 +67,15 @@ class UstreamIE(InfoExtractor):
'params'
:
{
'params'
:
{
'skip_download'
:
True
,
# m3u8 download
'skip_download'
:
True
,
# m3u8 download
},
},
},
{
'url'
:
'https://video.ibm.com/embed/recorded/128240221?&autoplay=true&controls=true&volume=100'
,
'only_matching'
:
True
,
}]
}]
@
staticmethod
@
staticmethod
def
_extract_url
(
webpage
):
def
_extract_url
(
webpage
):
mobj
=
re
.
search
(
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
:
if
mobj
is
not
None
:
return
mobj
.
group
(
'url'
)
return
mobj
.
group
(
'url'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment