aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2022-10-10 20:28:55 +0000
committerGitHub <noreply@github.com>2022-10-11 01:58:55 +0530
commit226c0f3a54faef19e2d2729d0072e7df43a7250b (patch)
tree7d0b540daf7b3eee7ba5d32e0a97a006bac992b3
parentade1fa70cbaaaadaa4772e5f0564870cea3167ef (diff)
downloadhypervideo-pre-226c0f3a54faef19e2d2729d0072e7df43a7250b.tar.lz
hypervideo-pre-226c0f3a54faef19e2d2729d0072e7df43a7250b.tar.xz
hypervideo-pre-226c0f3a54faef19e2d2729d0072e7df43a7250b.zip
[extractor/sbs] Improve `_VALID_URL` (#5193)
Closes #5045 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/sbs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/yt_dlp/extractor/sbs.py b/yt_dlp/extractor/sbs.py
index 6bb499930..45320339d 100644
--- a/yt_dlp/extractor/sbs.py
+++ b/yt_dlp/extractor/sbs.py
@@ -12,6 +12,7 @@ class SBSIE(InfoExtractor):
ondemand(?:
/video/(?:single/)?|
/movie/[^/]+/|
+ /(?:tv|news)-series/(?:[^/]+/){3}|
.*?\bplay=|/watch/
)|news/(?:embeds/)?video/
)(?P<id>[0-9]+)'''
@@ -63,6 +64,12 @@ class SBSIE(InfoExtractor):
'note': 'Live stream',
'url': 'https://www.sbs.com.au/ondemand/video/1726824003663/sbs-24x7-live-stream-nsw',
'only_matching': True,
+ }, {
+ 'url': 'https://www.sbs.com.au/ondemand/news-series/dateline/dateline-2022/dateline-s2022-ep26/2072245827515',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.sbs.com.au/ondemand/tv-series/the-handmaids-tale/season-5/the-handmaids-tale-s5-ep1/2065631811776',
+ 'only_matching': True,
}]
def _real_extract(self, url):