]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/walla.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / walla.py
index cbb54867244839e0447324f5a57e07cef2f6c646..a1a9c1708c4a200731abbc26ec09a097de967d63 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -34,7 +31,7 @@ class WallaIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         video_id = mobj.group('id')
         display_id = mobj.group('display_id')
 
@@ -72,7 +69,6 @@ def _real_extract(self, url):
             if m:
                 fmt['height'] = int(m.group('height'))
             formats.append(fmt)
-        self._sort_formats(formats)
 
         return {
             'id': video_id,