]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/mgtv.py
[extractor/generic] Detect manifest links via extension
[yt-dlp.git] / yt_dlp / extractor / mgtv.py
index 6d1843a1861defd2fc90d26960668699d8b1b0c1..edc92b371fbe43d390f0fd639c20a2736f7ae965 100644 (file)
@@ -67,7 +67,7 @@ class MGTVIE(InfoExtractor):
     def _real_extract(self, url):
         video_id = self._match_id(url)
         tk2 = base64.urlsafe_b64encode(
-            f'did={compat_str(uuid.uuid4()).encode()}|pno=1030|ver=0.3.0301|clit={int(time.time())}'.encode())[::-1]
+            f'did={str(uuid.uuid4())}|pno=1030|ver=0.3.0301|clit={int(time.time())}'.encode())[::-1]
         try:
             api_data = self._download_json(
                 'https://pcweb.api.mgtv.com/player/video', video_id, query={
@@ -117,7 +117,6 @@ def _real_extract(self, url):
                 },
                 'format_note': stream.get('name'),
             })
-        self._sort_formats(formats)
 
         return {
             'id': video_id,