aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/sbs.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/sbs.py')
-rw-r--r--hypervideo_dl/extractor/sbs.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/hypervideo_dl/extractor/sbs.py b/hypervideo_dl/extractor/sbs.py
index 4090f63..4532033 100644
--- a/hypervideo_dl/extractor/sbs.py
+++ b/hypervideo_dl/extractor/sbs.py
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
from .common import InfoExtractor
from ..utils import (
smuggle_url,
@@ -15,9 +12,16 @@ class SBSIE(InfoExtractor):
ondemand(?:
/video/(?:single/)?|
/movie/[^/]+/|
+ /(?:tv|news)-series/(?:[^/]+/){3}|
.*?\bplay=|/watch/
)|news/(?:embeds/)?video/
)(?P<id>[0-9]+)'''
+ _EMBED_REGEX = [r'''(?x)]
+ (?:
+ <meta\s+property="og:video"\s+content=|
+ <iframe[^>]+?src=
+ )
+ (["\'])(?P<url>https?://(?:www\.)?sbs\.com\.au/ondemand/video/.+?)\1''']
_TESTS = [{
# Original URL is handled by the generic IE which finds the iframe:
@@ -60,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):