commit 350fd63bd16592cb57fd98d4364f62c3103fb0d1
parent 1f730a3c96cac8bd0027f6966478c09e7b9f52a8
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 9 Mar 2021 11:12:10 +0100
lf: allow loading m3u playlists into mpd
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lf/lfrc b/lf/lfrc
@@ -88,6 +88,10 @@ cmd queue %{{
mpc -h ~/.local/share/mpd/socket insert "file://$i"
printf "Queued: %s" "$i"
;;
+ *.m3u)
+ mpc -h ~/.local/share/mpd/socket load "file://$i"
+ printf "Loaded playlist: %s" "$i"
+ ;;
esac
done
}}