]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/voicy.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / voicy.py
index 37c7d5685fe155eb15dc42c645f3cc7f6cb3538f..7438b49565b5e75c58ba94400d4605802e1cdbb7 100644 (file)
@@ -1,5 +1,4 @@
-# coding: utf-8
-from __future__ import unicode_literals
+import itertools
 
 from .common import InfoExtractor
 from ..compat import compat_str
@@ -12,8 +11,6 @@
     unsmuggle_url,
 )
 
-import itertools
-
 
 class VoicyBaseIE(InfoExtractor):
     def _extract_from_playlist_data(self, value):
@@ -47,7 +44,6 @@ def _extract_single_article(self, entry):
             'acodec': 'mp3',
             'vcodec': 'none',
         }]
-        self._sort_formats(formats)
         return {
             'id': compat_str(entry.get('ArticleId')),
             'title': entry.get('ArticleTitle'),
@@ -108,7 +104,7 @@ class VoicyChannelIE(VoicyBaseIE):
 
     @classmethod
     def suitable(cls, url):
-        return not VoicyIE.suitable(url) and super(VoicyChannelIE, cls).suitable(url)
+        return not VoicyIE.suitable(url) and super().suitable(url)
 
     def _entries(self, channel_id):
         pager = ''