dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2ac255def48b4634827d454feb075e8ddf010b79
parent d21c3914fb1b5a4b50cde432d606c290fa622cd0
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Fri,  6 Sep 2024 14:01:37 +0200

linkhandler: play bandcamp album via mpv

Diffstat:
Mscripts/linkhandler | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/scripts/linkhandler b/scripts/linkhandler @@ -360,7 +360,17 @@ if (is_bandcamp_track($LINK)) { } elsif (is_bandcamp_album($LINK)) { my @choices = ( - ['Download', \&download_bandcamp] + ['Download', \&download_bandcamp], + ['Play', sub { + my $link = shift; + my @choices = ( + # ['Audio (queue in mpd)', \&play_audio_mpd], + ['Audio (mpv)', \&play_audio_mpv] + ); + + my $selected_ref = menu(\@choices); + $selected_ref->($link); + }] ); my $selected_ref = menu(\@choices); $selected_ref->($LINK);