diff options
Diffstat (limited to 'sys/nixpkgs/pkgs')
-rw-r--r-- | sys/nixpkgs/pkgs/yt/src/constants.rs | 7 | ||||
-rw-r--r-- | sys/nixpkgs/pkgs/yt/src/downloader.rs | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sys/nixpkgs/pkgs/yt/src/constants.rs b/sys/nixpkgs/pkgs/yt/src/constants.rs index 6385df54..5e233656 100644 --- a/sys/nixpkgs/pkgs/yt/src/constants.rs +++ b/sys/nixpkgs/pkgs/yt/src/constants.rs @@ -18,7 +18,12 @@ pub const YT_DLP_FLAGS: [&str; 13] = [ "--sponsorblock-remove", "sponsor", ]; -pub const MPV_FLAGS: [&str; 2] = ["--speed=2.7", "--volume=75"]; +pub const MPV_FLAGS: [&str; 4] = [ + "--speed=2.7", + "--volume=75", + "--keep-open=yes", + "--msg-level=osd/libass=fatal", +]; pub const CONCURRENT: u32 = 5; diff --git a/sys/nixpkgs/pkgs/yt/src/downloader.rs b/sys/nixpkgs/pkgs/yt/src/downloader.rs index f29f4a3b..e915700d 100644 --- a/sys/nixpkgs/pkgs/yt/src/downloader.rs +++ b/sys/nixpkgs/pkgs/yt/src/downloader.rs @@ -142,6 +142,8 @@ impl Downloader { mpv.stdout(stdout()); mpv.stderr(stderr()); mpv.args(MPV_FLAGS); + // TODO: Set the title to the name of the video, not the path <2024-02-09> + // mpv.arg(format!("--title=")) mpv.arg(&path); let status = mpv.status().context("Failed to run mpv")?; |