about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-20 15:34:00 +0100
committerSoispha <soispha@vhack.eu>2024-01-20 15:34:00 +0100
commit8e854924d51f5352c06ff274a51df14d0f1166af (patch)
treee8e6a384460938382b88f820164806086a5f5bb9 /sys/nixpkgs/pkgs
parentfix(sys/nixpkgs/yt/{yt,yts}): Correctly wrap them (diff)
downloadnixos-config-8e854924d51f5352c06ff274a51df14d0f1166af.tar.gz
nixos-config-8e854924d51f5352c06ff274a51df14d0f1166af.zip
fix(sys/nixpkgs/yt/{yt,ytc}): Ignore sponsor block API access errors
Diffstat (limited to 'sys/nixpkgs/pkgs')
-rw-r--r--sys/nixpkgs/pkgs/yt/src/constants.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nixpkgs/pkgs/yt/src/constants.rs b/sys/nixpkgs/pkgs/yt/src/constants.rs
index 23e1d9b9..6965ce63 100644
--- a/sys/nixpkgs/pkgs/yt/src/constants.rs
+++ b/sys/nixpkgs/pkgs/yt/src/constants.rs
@@ -2,7 +2,9 @@ use std::{env, fs, path::PathBuf};
 
 pub const HELP_STR: &'static str = include_str!("./help.str");
 
-pub const YT_DLP_FLAGS: [&str; 12] = [
+pub const YT_DLP_FLAGS: [&str; 13] = [
+    // Ignore errors arising of unavailable sponsor block API
+    "--ignore-errors",
     "--format",
     "bestvideo[height<=?1080]+bestaudio/best",
     "--embed-chapters",