commit a53eed64df456dc0ae64fb9c512579f3b4090d61
parent 823872dc7e759c07ab33fde4e3a33e12a6a47bf5
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 7 May 2022 11:47:47 +0200
mpvq: create linkarchive directory if necessary
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/scripts/mpvq b/scripts/mpvq
@@ -19,6 +19,7 @@ play() {
# link archive
arc(){
+ [ -d "$HOME/.cache/mpv" ] || mkdir -p "$HOME/.cache/mpv"
title=$(youtube-dl --ignore-config --get-title "$1" 2>/dev/null)
printf "%b\n" "$title\t$1" >> "$HOME/.cache/mpv/linkarchive"
}