From d771ab431c480c682aefbf2c5cc826baa87f3577 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 20 Jan 2024 16:06:30 +0100 Subject: fix(sys/nixpkgs/yt/downloader): Be more lenient with yt-dlp exit codes --- sys/nixpkgs/pkgs/yt/src/downloader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/nixpkgs/pkgs/yt/src') 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 { 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(); -- cgit 1.4.1