diff options
author | Remita Amine <remitamine@gmail.com> | 2021-01-06 13:41:07 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2021-01-06 13:41:07 +0100 |
commit | 430c4bc9d02b49e180309dc55c62b96d5cada535 (patch) | |
tree | 74b8d235ba8375c5f05ab1560ec80ac3c0d049b0 /youtube_dl/extractor/sbs.py | |
parent | 4ae243fc6ca41e4f7684db96dfdf58aaed33d100 (diff) | |
download | youtube-dl-430c4bc9d02b49e180309dc55c62b96d5cada535.tar.xz |
[sbs] Add support for ondemand play and news embed URLs(closes #17650)(closes #27629)
Diffstat (limited to 'youtube_dl/extractor/sbs.py')
-rw-r--r-- | youtube_dl/extractor/sbs.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sbs.py b/youtube_dl/extractor/sbs.py index 0e623ff7b..f722528cd 100644 --- a/youtube_dl/extractor/sbs.py +++ b/youtube_dl/extractor/sbs.py @@ -10,7 +10,7 @@ from ..utils import ( class SBSIE(InfoExtractor): IE_DESC = 'sbs.com.au' - _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/(?:ondemand|news)/video/(?:single/)?(?P<id>[0-9]+)' + _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/(?:ondemand(?:/video/(?:single/)?|.*?\bplay=)|news/(?:embeds/)?video/)(?P<id>[0-9]+)' _TESTS = [{ # Original URL is handled by the generic IE which finds the iframe: @@ -18,7 +18,7 @@ class SBSIE(InfoExtractor): 'url': 'http://www.sbs.com.au/ondemand/video/single/320403011771/?source=drupal&vertical=thefeed', 'md5': '3150cf278965eeabb5b4cea1c963fe0a', 'info_dict': { - 'id': '320403011771', + 'id': '_rFBPRPO4pMR', 'ext': 'mp4', 'title': 'Dingo Conservation (The Feed)', 'description': 'md5:f250a9856fca50d22dec0b5b8015f8a5', @@ -34,6 +34,15 @@ class SBSIE(InfoExtractor): }, { 'url': 'http://www.sbs.com.au/news/video/471395907773/The-Feed-July-9', 'only_matching': True, + }, { + 'url': 'https://www.sbs.com.au/ondemand/?play=1836638787723', + 'only_matching': True, + }, { + 'url': 'https://www.sbs.com.au/ondemand/program/inside-windsor-castle?play=1283505731842', + 'only_matching': True, + }, { + 'url': 'https://www.sbs.com.au/news/embeds/video/1840778819866', + 'only_matching': True, }] def _real_extract(self, url): |