aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/generic.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-20 04:27:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-21 13:27:44 +0530
commit6970b6005e9c07c427d368bbe3f71f85878f325e (patch)
tree3c5090cb5729f896b28c0537bf94b6686a31ce38 /yt_dlp/extractor/generic.py
parentfc5fa964c7ca1ee548ee3b8f1e559aac24d3d45f (diff)
downloadhypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.tar.lz
hypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.tar.xz
hypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.zip
[cleanup] Minor fixes
Closes #2334
Diffstat (limited to 'yt_dlp/extractor/generic.py')
-rw-r--r--yt_dlp/extractor/generic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py
index 542902caf..934b354a9 100644
--- a/yt_dlp/extractor/generic.py
+++ b/yt_dlp/extractor/generic.py
@@ -3804,6 +3804,7 @@ class GenericIE(InfoExtractor):
json_ld['formats'], json_ld['subtitles'] = self._extract_m3u8_formats_and_subtitles(
json_ld['url'], video_id, 'mp4')
json_ld.pop('url')
+ self._sort_formats(json_ld['formats'])
return merge_dicts(json_ld, info_dict)
def check_video(vurl):
@@ -3858,7 +3859,7 @@ class GenericIE(InfoExtractor):
protocol, _, _ = url.partition('/')
thumbnail = protocol + thumbnail
- url_keys = list(filter(re.compile(r'video_url|video_alt_url\d+').fullmatch, flashvars.keys()))
+ url_keys = list(filter(re.compile(r'video_url|video_alt_url\d*').fullmatch, flashvars.keys()))
formats = []
for key in url_keys:
if '/get_file/' not in flashvars[key]: