]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/tvc.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / yt_dlp / extractor / tvc.py
index 1ef64caf9a9fc263a6e1f37a83a8c95b36118c1d..7c8c922a61cfdb146961349434c8459a0c9c8d8c 100644 (file)
@@ -24,7 +24,7 @@ def _real_extract(self, url):
         video_id = self._match_id(url)
 
         video = self._download_json(
-            'http://www.tvc.ru/video/json/id/%s' % video_id, video_id)
+            f'http://www.tvc.ru/video/json/id/{video_id}', video_id)
 
         formats = []
         for info in video.get('path', {}).get('quality', []):
@@ -41,7 +41,6 @@ def _real_extract(self, url):
                 'height': int_or_none(info.get('height')),
                 'tbr': int_or_none(info.get('bitrate')),
             })
-        self._sort_formats(formats)
 
         return {
             'id': video_id,