]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/sapo.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / sapo.py
index 49a9b313a87a5bf9b80fa8a3b8d78c104722cd5b..beffaee592e3a1802d0561161d9dd324293a77b5 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -63,7 +60,7 @@ class SapoIE(InfoExtractor):
     ]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         video_id = mobj.group('id')
 
         item = self._download_xml(
@@ -101,8 +98,6 @@ def _real_extract(self, url):
                 'height': 720,
             })
 
-        self._sort_formats(formats)
-
         return {
             'id': video_id,
             'title': title,