]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/hketv.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / hketv.py
index 4c616d1ddc8bc4e89327fb269a9579a1fd4c3507..e026996da6fd6821b0446d8525aa4203357dc466 100644 (file)
@@ -126,7 +126,7 @@ def _real_extract(self, url):
             # If we ever wanted to provide the final resolved URL that
             # does not require cookies, albeit with a shorter lifespan:
             #     urlh = self._downloader.urlopen(file_url)
-            #     resolved_url = urlh.geturl()
+            #     resolved_url = urlh.url
             label = fmt.get('label')
             h = self._FORMAT_HEIGHTS.get(label)
             w = h * width // height if h and width and height else None
@@ -137,7 +137,6 @@ def _real_extract(self, url):
                 'width': w,
                 'height': h,
             })
-        self._sort_formats(formats)
 
         subtitles = {}
         tracks = try_get(playlist0, lambda x: x['tracks'], list) or []