aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2022-08-31 02:07:55 +0900
committerGitHub <noreply@github.com>2022-08-31 02:07:55 +0900
commitbfbecd1174a9e2ee08117352c26e664d36f1cc17 (patch)
tree82c0feb3021840bb60b9e3122dadbf43757e1269 /yt_dlp/extractor/common.py
parent9bd13fe5bbe1df6bb01d4edb68f2c63a4812bf94 (diff)
downloadhypervideo-pre-bfbecd1174a9e2ee08117352c26e664d36f1cc17.tar.lz
hypervideo-pre-bfbecd1174a9e2ee08117352c26e664d36f1cc17.tar.xz
hypervideo-pre-bfbecd1174a9e2ee08117352c26e664d36f1cc17.zip
[extractor/newspicks] Add extractor (#4725)
Authored by: Lesmiscore
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index f950d28ed..b79221955 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -3260,7 +3260,7 @@ class InfoExtractor:
'subtitles': {},
}
media_attributes = extract_attributes(media_tag)
- src = strip_or_none(media_attributes.get('src'))
+ src = strip_or_none(dict_get(media_attributes, ('src', 'data-video-src', 'data-src', 'data-source')))
if src:
f = parse_content_type(media_attributes.get('type'))
_, formats = _media_formats(src, media_type, f)
@@ -3271,7 +3271,7 @@ class InfoExtractor:
s_attr = extract_attributes(source_tag)
# data-video-src and data-src are non standard but seen
# several times in the wild
- src = strip_or_none(dict_get(s_attr, ('src', 'data-video-src', 'data-src')))
+ src = strip_or_none(dict_get(s_attr, ('src', 'data-video-src', 'data-src', 'data-source')))
if not src:
continue
f = parse_content_type(s_attr.get('type'))