From 2201b192fd5e4c27eb2e1ab4ba1eab50af18afed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 15 Jul 2021 07:34:12 +0200 Subject: [PATCH] feat(mpv): add youtube (auto) subtitles --- configs/mpv.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/mpv.nix b/configs/mpv.nix index 1a85315..5b7ae6e 100644 --- a/configs/mpv.nix +++ b/configs/mpv.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: let +{ pkgs, lib, ... }: let swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}"; nixpkgs-unstable = import { config.allowUnfree = true; }; in { @@ -10,6 +10,7 @@ in { config = { ytdl-format = "bestvideo+bestaudio/best"; osc = "no"; + ytdl-raw-options= lib.concatStringsSep "," [ ''sub-lang="de,en"'' "write-sub=" "write-auto-sub=" ]; }; bindings = { "Alt+RIGHT" = "add video-rotate 90";