]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/canalplus.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / canalplus.py
index b184398e2d94b4463ac1cd141ce74cfcb7429d6b..3ff5c3fbfcbede4a537e5a1763f6bed46e91630a 100644 (file)
@@ -64,7 +64,7 @@ def _real_extract(self, url):
         #     response = self._request_webpage(
         #         HEADRequest(fmt_url), video_id,
         #         'Checking if the video is georestricted')
-        #     if '/blocage' in response.geturl():
+        #     if '/blocage' in response.url:
         #         raise ExtractorError(
         #             'The video is not available in your country',
         #             expected=True)
@@ -86,7 +86,6 @@ def _real_extract(self, url):
                     'format_id': format_id,
                     'quality': preference(format_id),
                 })
-        self._sort_formats(formats)
 
         thumbnails = [{
             'id': image_id,