dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit a4b91feb24b01fed8db8cf74cb615a67d8f216dc
parent 95507dc88e094b568f794524d4b3ff18d2b91ccf
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 30 Jun 2020 14:18:10 +0200

Add wrapper script for youtube-dl and embed subtitles into file

Diffstat:
M.config/mpv/mpv.conf | 1+
A.local/bin/youtube-dl | 4++++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf @@ -10,6 +10,7 @@ volume-max = 1000 sub-scale = 0.5 audio-channels = 2 +ytdl-raw-options=write-sub=,write-auto-sub=,sub-lang="en,da",embed-subs=,add-metadata= ytdl-format=bestvideo[height\<=?768][fps\<=?30]+bestaudio/best[height\<=?768][fps\<=?30] [extension.gif] diff --git a/.local/bin/youtube-dl b/.local/bin/youtube-dl @@ -0,0 +1,4 @@ +#!/bin/sh +asuser -t youtube-dl youtube-dl \ + --write-sub --write-auto-sub --sub-lang=en,da --embed-subs --add-metadata \ + "$*"