diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-14 16:42:02 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-14 16:42:02 +0100 |
commit | 2bcd30e3f44fb7dbf859d72caf2a33a96ee5618b (patch) | |
tree | 90798576b9384b8e6afd95b35c03748d34b211f3 | |
parent | fix(package/blake3): Migrate to the new `fetchCargoVendor` fetcher (diff) | |
download | yt-2bcd30e3f44fb7dbf859d72caf2a33a96ee5618b.zip |
fix(yt/download/download_options): Stop trying to write annotations
1. Prefer free formats 2. The annotations setting was causing a constant warning, and served very little purpose.
-rw-r--r-- | yt/src/download/download_options.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt/src/download/download_options.rs b/yt/src/download/download_options.rs index 148ee56..bb87214 100644 --- a/yt/src/download/download_options.rs +++ b/yt/src/download/download_options.rs @@ -28,6 +28,8 @@ pub fn download_opts(app: &App, additional_opts: &YtDlpOptions) -> serde_json::M ] } }, + + "prefer_free_formats": true, "ffmpeg_location": env!("FFMPEG_LOCATION"), "format": "bestvideo[height<=?1080]+bestaudio/best", "fragment_retries": 10, @@ -36,7 +38,8 @@ pub fn download_opts(app: &App, additional_opts: &YtDlpOptions) -> serde_json::M "retries": 10, "writeinfojson": true, - "writeannotations": true, + // NOTE: This results in a constant warning message. <2025-01-04> + // "writeannotations": true, "writesubtitles": true, "writeautomaticsub": true, |