aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-16 19:36:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-17 00:07:43 +0530
commit241464919271278831f23b3a086dcf57aeb80d3b (patch)
tree8e1e0e2c2b4d632fa48d30aa84148185aa66224e /yt_dlp/YoutubeDL.py
parent5d5c0f7e99d121aa0db476b1166828af552aeb14 (diff)
downloadhypervideo-pre-241464919271278831f23b3a086dcf57aeb80d3b.tar.lz
hypervideo-pre-241464919271278831f23b3a086dcf57aeb80d3b.tar.xz
hypervideo-pre-241464919271278831f23b3a086dcf57aeb80d3b.zip
[cleanup] Misc cleanup
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 8d7c8a43f..1c7540bcd 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1322,7 +1322,6 @@ class YoutubeDL:
return None
elif reply == 'n':
return f'Skipping {video_title}'
- return True
elif ret is not None:
return ret
return None
@@ -3191,18 +3190,18 @@ class YoutubeDL:
FFmpegFixupM4aPP)
downloader = get_suitable_downloader(info_dict, self.params) if 'protocol' in info_dict else None
- downloader = downloader.__name__ if downloader else None
+ downloader = downloader.FD_NAME if downloader else None
if info_dict.get('requested_formats') is None: # Not necessary if doing merger
- ffmpeg_fixup(downloader == 'HlsFD' and not self.params.get('hls_use_mpegts')
+ ffmpeg_fixup(downloader == 'hlsnative' and not self.params.get('hls_use_mpegts')
or info_dict.get('is_live') and self.params.get('hls_use_mpegts') is None,
'Possible MPEG-TS in MP4 container or malformed AAC timestamps',
FFmpegFixupM3u8PP)
ffmpeg_fixup(info_dict.get('is_live') and downloader == 'DashSegmentsFD',
'Possible duplicate MOOV atoms', FFmpegFixupDuplicateMoovPP)
- ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'Malformed timestamps detected', FFmpegFixupTimestampPP)
- ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'Malformed duration detected', FFmpegFixupDurationPP)
+ ffmpeg_fixup(downloader == 'web_socket_fragment', 'Malformed timestamps detected', FFmpegFixupTimestampPP)
+ ffmpeg_fixup(downloader == 'web_socket_fragment', 'Malformed duration detected', FFmpegFixupDurationPP)
fixup()
try: