]> jfr.im git - yt-dlp.git/commitdiff
Bugfix for b9f2bc2dbed2323734a0d18e65e1e2e23dc833d8
authorbashonly <redacted>
Tue, 29 Aug 2023 13:06:02 +0000 (08:06 -0500)
committerbashonly <redacted>
Tue, 29 Aug 2023 13:06:02 +0000 (08:06 -0500)
Authored by: bashonly

yt_dlp/extractor/dropbox.py

index ec86d7ad2447759076bb1ed1f16f4324291a5f13..bc2efce12325f638ec619a2cf16c79c5d7b34ada 100644 (file)
@@ -66,10 +66,10 @@ def _real_extract(self, url):
         for encoded in reversed(re.findall(r'registerStreamedPrefetch\s*\(\s*"[\w/+=]+"\s*,\s*"([\w/+=]+)"', webpage)):
             decoded = base64.b64decode(encoded).decode('utf-8', 'ignore')
             transcode_url = self._search_regex(
-                r'\n\x03(https://[^\x12\x03\n]+\.m3u8)', decoded, 'transcode url', default=None)
+                r'\n.(https://[^\x03\x08\x12\n]+\.m3u8)', decoded, 'transcode url', default=None)
             if not transcode_url:
                 continue
-            formats, subtitles = self._extract_m3u8_formats_and_subtitles(transcode_url, video_id)
+            formats, subtitles = self._extract_m3u8_formats_and_subtitles(transcode_url, video_id, 'mp4')
             has_anonymous_download = self._search_regex(r'(anonymous:\tanonymous)', decoded, 'anonymous', default=False)
             break