aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/dispeak.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/dispeak.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/dispeak.py')
-rw-r--r--yt_dlp/extractor/dispeak.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/dispeak.py b/yt_dlp/extractor/dispeak.py
index be7ad1202..3d651f3ab 100644
--- a/yt_dlp/extractor/dispeak.py
+++ b/yt_dlp/extractor/dispeak.py
@@ -74,13 +74,11 @@ class DigitallySpeakingIE(InfoExtractor):
tbr = int_or_none(bitrate)
vbr = int_or_none(self._search_regex(
r'-(\d+)\.mp4', video_path, 'vbr', default=None))
- abr = tbr - vbr if tbr and vbr else None
video_formats.append({
'format_id': bitrate,
'url': url,
'tbr': tbr,
'vbr': vbr,
- 'abr': abr,
})
return video_formats
@@ -121,6 +119,7 @@ class DigitallySpeakingIE(InfoExtractor):
video_formats = self._parse_mp4(metadata)
if video_formats is None:
video_formats = self._parse_flv(metadata)
+ self._sort_formats(video_formats)
return {
'id': video_id,