Add --no-join option to skip ffmpeg join

issue #36
This commit is contained in:
Ivan Habunek 2020-09-29 09:24:29 +02:00
parent bb16108572
commit 2abc56213e
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
3 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Twitch Downloader change log
-------------------
* Added `source` as alias for best available quality (#33)
* Added `--no-join` option to `download` to skip ffmpeg join (#36)
1.11.0 (2020-09-03)
-------------------

View File

@ -301,6 +301,11 @@ def _download_video(video_id, args):
playlist_path = path.join(target_dir, "playlist_downloaded.m3u8")
playlist.dump(playlist_path)
if args.no_join:
print_out("\n\n<dim>Skipping joining files...</dim>")
print_out("VODs downloaded to:\n<blue>{}</blue>".format(target_dir))
return
print_out("\n\nJoining files...")
target = _video_target_filename(video, args.format)
_join_vods(playlist_path, target)

View File

@ -118,6 +118,11 @@ COMMANDS = [
"help": "Video quality, e.g. 720p. Set to 'source' to get best quality.",
"type": str,
}),
(["--no-join"], {
"help": "Don't run ffmpeg to join the downloaded vods, implies --keep.",
"action": "store_true",
"default": False,
}),
],
),
]