]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/tvnow.py
[extractor/rozhlas] `MujRozhlas`: Add extractor (#7129)
[yt-dlp.git] / yt_dlp / extractor / tvnow.py
index b31818477e0ab6a56c011bd4ca3c9622e866da51..0acc306df26ca9caa4f25daa7cf31f8709d4f5f6 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -77,7 +74,6 @@ def make_urls(proto, suffix):
             if not info.get('free', True):
                 raise ExtractorError(
                     'Video %s is not available for free' % video_id, expected=True)
-        self._sort_formats(formats)
 
         description = info.get('articleLong') or info.get('articleShort')
         timestamp = parse_iso8601(info.get('broadcastStartDate'), ' ')
@@ -395,7 +391,6 @@ def url_repl(proto, suffix):
             if not info.get('free', True):
                 raise ExtractorError(
                     'Video %s is not available for free' % video_id, expected=True)
-        self._sort_formats(formats)
 
         description = source.get('description')
         thumbnail = url_or_none(source.get('poster'))
@@ -429,7 +424,7 @@ def _real_extract(self, url):
         return self._extract_video(info, video_id, display_id)
 
 
-class TVNowFilmIE(TVNowIE):
+class TVNowFilmIE(TVNowIE):  # XXX: Do not subclass from concrete IE
     _VALID_URL = r'''(?x)
                     (?P<base_url>https?://
                         (?:www\.)?tvnow\.(?:de|at|ch)/