]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/fptplay.py
[ie/mlbtv] Fix extraction (#10296)
[yt-dlp.git] / yt_dlp / extractor / fptplay.py
index c23fe6c533b38574c1d3c5f7882976a0425ef7e5..db9b2e1535ac8691d4ff0124f95cdffd919ecf9e 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import hashlib
 import time
 import urllib.parse
@@ -62,7 +59,6 @@ def _real_extract(self, url):
         info = self._download_json(
             self.get_api_with_st_token(video_id, int(slug_episode) - 1 if slug_episode else 0), video_id)
         formats, subtitles = self._extract_m3u8_formats_and_subtitles(info['data']['url'], video_id, 'mp4')
-        self._sort_formats(formats)
         return {
             'id': video_id,
             'title': join_nonempty(title, real_episode, delim=' - '),
@@ -88,7 +84,7 @@ def convert(e):
             a = [0, 0, 0, 0]
             s = len(e)
             c = 0
-            for z in range(s, 0, -1):
+            for _ in range(s, 0, -1):
                 if n <= 3:
                     i[n] = e[c]
                 n += 1