]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/hearthisat.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / hearthisat.py
index 59043164db8919c659f4f69ae48f12b92bc9e0b3..d1a400d8ccbb695d6500ee6ff35e00eeca14b9bf 100644 (file)
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..utils import (
     determine_ext,
@@ -48,7 +43,7 @@ class HearThisAtIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        m = re.match(self._VALID_URL, url)
+        m = self._match_valid_url(url)
         display_id = '{artist:s} - {title:s}'.format(**m.groupdict())
         api_url = url.replace('www.', '').replace('hearthis.at', 'api-v2.hearthis.at')
         data_json = self._download_json(api_url, display_id)
@@ -86,7 +81,6 @@ def _real_extract(self, url):
                     'acodec': ext,
                     'quality': 2,  # Usually better quality
                 })
-        self._sort_formats(formats)
 
         return {
             'id': track_id,