aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/dropbox.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-10-03 16:50:27 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-10-03 16:56:19 +0530
commit8b7fb8b60da78b54a518246b251be3d1829fef38 (patch)
tree0a18644076581c900ef769f6319d758749f4a279 /yt_dlp/extractor/dropbox.py
parenta83333c4328591c279a27dd0ec4c7c5addcc411f (diff)
downloadhypervideo-pre-8b7fb8b60da78b54a518246b251be3d1829fef38.tar.lz
hypervideo-pre-8b7fb8b60da78b54a518246b251be3d1829fef38.tar.xz
hypervideo-pre-8b7fb8b60da78b54a518246b251be3d1829fef38.zip
[extractor] Make search_json able to parse lists
Now `contains_pattern` can be set to `\[.+\]`
Diffstat (limited to 'yt_dlp/extractor/dropbox.py')
-rw-r--r--yt_dlp/extractor/dropbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/dropbox.py b/yt_dlp/extractor/dropbox.py
index 0d12513b2..54d97a25d 100644
--- a/yt_dlp/extractor/dropbox.py
+++ b/yt_dlp/extractor/dropbox.py
@@ -54,7 +54,7 @@ class DropboxIE(InfoExtractor):
raise ExtractorError('Password protected video, use --video-password <password>', expected=True)
info_json = self._search_json(r'InitReact\.mountComponent\(.*?,', webpage, 'mountComponent', video_id,
- contains_pattern=r'.+?"preview".+?', end_pattern=r'\)')['props']
+ contains_pattern=r'{.+?"preview".+?}', end_pattern=r'\)')['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)