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 16:06:30 +0100
committerSoispha <soispha@vhack.eu>2024-01-20 16:06:30 +0100
commitd771ab431c480c682aefbf2c5cc826baa87f3577 (patch)
tree69a2a0b8cf8eb6bb9482b2c3ece163751b646e64 /sys/nixpkgs/pkgs
parentfeat(sys/nixpkgs/yt/{yt,ytc}): Persist old selection file (diff)
downloadnixos-config-d771ab431c480c682aefbf2c5cc826baa87f3577.tar.gz
nixos-config-d771ab431c480c682aefbf2c5cc826baa87f3577.zip
fix(sys/nixpkgs/yt/downloader): Be more lenient with yt-dlp exit codes
Diffstat (limited to 'sys/nixpkgs/pkgs')
-rw-r--r--sys/nixpkgs/pkgs/yt/src/downloader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nixpkgs/pkgs/yt/src/downloader.rs b/sys/nixpkgs/pkgs/yt/src/downloader.rs
index 1733500a..34627f70 100644
--- a/sys/nixpkgs/pkgs/yt/src/downloader.rs
+++ b/sys/nixpkgs/pkgs/yt/src/downloader.rs
@@ -10,7 +10,7 @@ use std::{
 };
 
 use anyhow::{bail, Context, Result};
-use log::{debug, warn};
+use log::{debug, error, warn};
 use url::Url;
 
 use crate::constants::{status_path, CONCURRENT, DOWNLOAD_DIR, MPV_FLAGS, YT_DLP_FLAGS};
@@ -184,7 +184,7 @@ fn download_url(url: &Url) -> Result<PathBuf> {
 
     let status = yt_dlp.status().context("Failed to run yt-dlp")?;
     if !status.success() {
-        bail!("yt_dlp execution failed with error: '{}'", status);
+        error!("yt-dlp execution failed with error: '{}'", status);
     }
 
     let mut path = String::new();