aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-26 21:51:31 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-26 21:52:16 +0530
commit9bd2020476c325df351c8e706d4b55894f916089 (patch)
treeaecaa5a9b136cae6ce1f54a9dbbafc7299a34d96 /yt_dlp/options.py
parented9b7e3dd39796d4537863f8dbd6ee6f07810e43 (diff)
downloadhypervideo-pre-9bd2020476c325df351c8e706d4b55894f916089.tar.lz
hypervideo-pre-9bd2020476c325df351c8e706d4b55894f916089.tar.xz
hypervideo-pre-9bd2020476c325df351c8e706d4b55894f916089.zip
[hls] Enable `--hls-use-mpegts` by default when downloading live-streams
* Also added option `--no-hls-use-mpegts` to disable this Related: #96
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index c47f6ea50..88f74ff36 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -634,10 +634,18 @@ def parseOpts(overrideArguments=None):
help='Use ffmpeg instead of the native HLS downloader')
downloader.add_option(
'--hls-use-mpegts',
- dest='hls_use_mpegts', action='store_true',
+ dest='hls_use_mpegts', action='store_true', default=None,
help=(
- 'Use the mpegts container for HLS videos, allowing to play the '
- 'video while downloading (some players may not be able to play it)'))
+ 'Use the mpegts container for HLS videos; '
+ 'allowing some players to play the video while downloading, '
+ 'and reducing the chance of file corruption if download is interrupted. '
+ 'This is enabled by default for live streams'))
+ downloader.add_option(
+ '--no-hls-use-mpegts',
+ dest='hls_use_mpegts', action='store_false',
+ help=(
+ 'Do not use the mpegts container for HLS videos. '
+ 'This is default when not downloading live streams'))
downloader.add_option(
'--external-downloader',
dest='external_downloader', metavar='NAME',