aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/dropbox.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-02-18 16:58:38 -0500
committerJesús <heckyel@hyperbola.info>2022-02-18 16:58:38 -0500
commitc7a54bcfbd27dde89c6267b42da7de8ea5625be1 (patch)
tree671b2b7ffe3f976952836dbfe6ee53bf33971e3a /yt_dlp/extractor/dropbox.py
parentb6d1ccad21d790c38605be2966ad17e92f1186d7 (diff)
parented66a17ef0b18159dda901f0122520c25ea95d6b (diff)
downloadhypervideo-pre-c7a54bcfbd27dde89c6267b42da7de8ea5625be1.tar.lz
hypervideo-pre-c7a54bcfbd27dde89c6267b42da7de8ea5625be1.tar.xz
hypervideo-pre-c7a54bcfbd27dde89c6267b42da7de8ea5625be1.zip
updated from upstream | 18/02/2022 at 16:58
Diffstat (limited to 'yt_dlp/extractor/dropbox.py')
-rw-r--r--yt_dlp/extractor/dropbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/dropbox.py b/yt_dlp/extractor/dropbox.py
index 3ae3a8d3d..2559657ad 100644
--- a/yt_dlp/extractor/dropbox.py
+++ b/yt_dlp/extractor/dropbox.py
@@ -56,8 +56,8 @@ class DropboxIE(InfoExtractor):
else:
raise ExtractorError('Password protected video, use --video-password <password>', expected=True)
- json_string = self._html_search_regex(r'InitReact\.mountComponent.+ "props":(.+), "elem_id"', webpage, 'Info JSON')
- info_json = self._parse_json(json_string, video_id)
+ json_string = self._html_search_regex(r'InitReact\.mountComponent\(.*?,\s*(\{.+\})\s*?\)', webpage, 'Info JSON')
+ info_json = self._parse_json(json_string, video_id).get('props')
transcode_url = traverse_obj(info_json, ((None, 'preview'), 'file', 'preview', 'content', 'transcode_url'), get_all=False)
formats, subtitles = self._extract_m3u8_formats_and_subtitles(transcode_url, video_id)