summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRemita Amine <[email protected]>2021-03-28 08:46:33 +0100
committerRemita Amine <[email protected]>2021-03-28 08:46:33 +0100
commit87a8bde7775ebc31175ebb111015b4052b50b7db (patch)
tree807bf85a9ed755274d9867774af025b33f119227
parent49fc0a567febda65709cc5154ff046684a3b8427 (diff)
downloadyoutube-dl-87a8bde7775ebc31175ebb111015b4052b50b7db.tar.gz
youtube-dl-87a8bde7775ebc31175ebb111015b4052b50b7db.zip
[sbs] add support for ondemand watch URLs(closes #28566)
-rw-r--r--youtube_dl/extractor/sbs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sbs.py b/youtube_dl/extractor/sbs.py
index f722528cd..0a806ee4e 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(?:/video/(?:single/)?|.*?\bplay=)|news/(?:embeds/)?video/)(?P<id>[0-9]+)'
+ _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/(?:ondemand(?:/video/(?:single/)?|.*?\bplay=|/watch/)|news/(?:embeds/)?video/)(?P<id>[0-9]+)'
_TESTS = [{
# Original URL is handled by the generic IE which finds the iframe:
@@ -43,6 +43,9 @@ class SBSIE(InfoExtractor):
}, {
'url': 'https://www.sbs.com.au/news/embeds/video/1840778819866',
'only_matching': True,
+ }, {
+ 'url': 'https://www.sbs.com.au/ondemand/watch/1698704451971',
+ 'only_matching': True,
}]
def _real_extract(self, url):