]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/c56.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / c56.py
index cac8fdcba4a9967b9aa028c29bac1d539af458ca..e4b1c9a84c30ff57976107876f3bc71e952d397f 100644 (file)
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..utils import js_to_json
 
@@ -31,7 +26,7 @@ class C56IE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url, flags=re.VERBOSE)
+        mobj = self._match_valid_url(url)
         text_id = mobj.group('textid')
 
         webpage = self._download_webpage(url, text_id)
@@ -54,7 +49,6 @@ def _real_extract(self, url):
                 'url': f['url']
             } for f in info['rfiles']
         ]
-        self._sort_formats(formats)
 
         return {
             'id': info['vid'],