]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/sport5.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / sport5.py
index a417b5a4ef0ddf302f11dc36f430572192e64262..44b4067de3a1f194eb2cf9048323fd30152399ef 100644 (file)
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..utils import ExtractorError
 
@@ -36,7 +31,7 @@ class Sport5IE(InfoExtractor):
     ]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         media_id = mobj.group('id')
 
         webpage = self._download_webpage(url, media_id)
@@ -79,7 +74,6 @@ def _real_extract(self, url):
             'width': int(fmt.get('width')),
             'height': int(fmt.get('height')),
         } for fmt in metadata.findall('./PlaybackLinks/FileURL')]
-        self._sort_formats(formats)
 
         return {
             'id': video_id,