]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/teachertube.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / teachertube.py
index 1272078c50b8703aa906e055fc57842078542e95..c3eec2784f6764fb7af477c53a580034e1454c52 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -76,8 +73,6 @@ def _real_extract(self, url):
             } for media_url in set(media_urls)
         ]
 
-        self._sort_formats(formats)
-
         thumbnail = self._og_search_thumbnail(
             webpage, default=None) or self._html_search_meta(
             'thumbnail', webpage)
@@ -111,7 +106,7 @@ class TeacherTubeUserIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         user_id = mobj.group('user')
 
         urls = []