diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-11 10:05:36 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-11 11:03:36 +0530 |
commit | 494f52308b313110b481711d3d1cb8f3630a5bbe (patch) | |
tree | 54a2d60245b4464c9c6f1c64e2c7c7d4dca683f8 /yt_dlp/YoutubeDL.py | |
parent | 3d38b2d6d014b8b0d90e72213420441634744efb (diff) | |
download | hypervideo-pre-494f52308b313110b481711d3d1cb8f3630a5bbe.tar.lz hypervideo-pre-494f52308b313110b481711d3d1cb8f3630a5bbe.tar.xz hypervideo-pre-494f52308b313110b481711d3d1cb8f3630a5bbe.zip |
[FixupM3u8] Obey `--hls-prefer-mpegts`
Closes #3697
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 83210f6c8..8d7c8a43f 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3194,8 +3194,8 @@ class YoutubeDL: downloader = downloader.__name__ if downloader else None if info_dict.get('requested_formats') is None: # Not necessary if doing merger - fixup_live = info_dict.get('is_live') and self.params.get('hls_use_mpegts') is None - ffmpeg_fixup(downloader == 'HlsFD' or fixup_live, + ffmpeg_fixup(downloader == 'HlsFD' 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', |