From e3f9bd98de1ea9fc8372c6b1e9bfac0808c6c796 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 25 Nov 2021 11:17:25 +0700 Subject: [PATCH] use --check-formats for downloader, #90 --- docs/Settings.md | 2 +- tubearchivist/home/src/download.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Settings.md b/docs/Settings.md index 7ed1780..31b880d 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -22,7 +22,7 @@ Settings related to the download process. ## Download Format Additional settings passed to yt-dlp. -- **Format**: This controls which streams get downloaded and is equivalent to passing `--format` to yt-dlp. Use one of the recommended one or look at the documentation of [yt-dlp](https://github.com/yt-dlp/yt-dlp#format-selection). Please note: The option `--merge-output-format mp4` is automatically passed to yt-dlp to guarantee browser compatibility. +- **Format**: This controls which streams get downloaded and is equivalent to passing `--format` to yt-dlp. Use one of the recommended one or look at the documentation of [yt-dlp](https://github.com/yt-dlp/yt-dlp#format-selection). Please note: The option `--merge-output-format mp4` is automatically passed to yt-dlp to guarantee browser compatibility. Similar to that, `--check-formats` is passed as well to check that the selected formats are actually downloadable. - **Embed Metadata**: This saves the available tags directly into the media file by passing `--embed-metadata` to yt-dlp. - **Embed Thumbnail**: This will save the thumbnail into the media file by passing `--embed-thumbnail` to yt-dlp. diff --git a/tubearchivist/home/src/download.py b/tubearchivist/home/src/download.py index 4098d06..3ed462a 100644 --- a/tubearchivist/home/src/download.py +++ b/tubearchivist/home/src/download.py @@ -576,6 +576,7 @@ class VideoDownloader: "retries": 3, "writethumbnail": False, "noplaylist": True, + "check_formats": True, } if self.config["downloads"]["format"]: obs["format"] = self.config["downloads"]["format"]