]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/breakcom.py
[ie/box] Fix formats extraction (#8649)
[yt-dlp.git] / yt_dlp / extractor / breakcom.py
index 68c7cf2bba49c1cb4374ae00f6262214c1890551..00cf308c7a02e696ff0a50d7d0379d9c432b5989 100644 (file)
@@ -1,7 +1,3 @@
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from .youtube import YoutubeIE
 from ..utils import (
@@ -41,7 +37,7 @@ class BreakIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        display_id, video_id = re.match(self._VALID_URL, url).groups()
+        display_id, video_id = self._match_valid_url(url).groups()
 
         webpage = self._download_webpage(url, display_id)
 
@@ -67,7 +63,6 @@ def _real_extract(self, url):
                 'format_id': 'http-%d' % bitrate if bitrate else 'http',
                 'tbr': bitrate,
             })
-        self._sort_formats(formats)
 
         title = self._search_regex(
             (r'title["\']\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1',