]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rtlnl.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / rtlnl.py
index e6b450a239e986c63c8dd0c367ca50ea6ae37b82..724cb64e9319c49955839765d7e106f8e89156b1 100644 (file)
@@ -8,6 +8,7 @@
 class RtlNlIE(InfoExtractor):
     IE_NAME = 'rtl.nl'
     IE_DESC = 'rtl.nl and rtlxl.nl'
+    _EMBED_REGEX = [r'<iframe[^>]+?\bsrc=(?P<q1>[\'"])(?P<url>(?:https?:)?//(?:(?:www|static)\.)?rtl\.nl/(?:system/videoplayer/[^"]+(?:video_)?)?embed[^"]+)(?P=q1)']
     _VALID_URL = r'''(?x)
         https?://(?:(?:www|static)\.)?
         (?:
@@ -115,7 +116,6 @@ def _real_extract(self, url):
 
         formats = self._extract_m3u8_formats(
             m3u8_url, uuid, 'mp4', m3u8_id='hls', fatal=False)
-        self._sort_formats(formats)
 
         thumbnails = []
 
@@ -173,7 +173,6 @@ def _real_extract(self, url):
         webpage = self._download_webpage(url, video_id)
 
         formats, subtitles = self.get_formats_and_subtitles(webpage, video_id)
-        self._sort_formats(formats)
 
         return {
             'id': video_id,