]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/sbs.py
[extractors] Use new framework for existing embeds (#4307)
[yt-dlp.git] / yt_dlp / extractor / sbs.py
index 711524406b6396caae41debe105727284dcf85f1..6bb499930c4555a302a730c85594fb53f9b387c6 100644 (file)
@@ -15,6 +15,12 @@ class SBSIE(InfoExtractor):
                 .*?\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: