<commit_before>#!/bin/bash

################################################################################
#  A simple utility to allow playlist selection and playing from cli for MPD
#
#  by <NAME>
#
#  Licensed under a Creative Commons BY-SA 3.0 Unported license
#  To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.
#
################################################################################


	if [ "$1" == "" ]; then
		echo -e "\E[0;32m(\E[0;37mg\E[0;32m)enre, (\E[0;37ma\E[0;32m)rtist, a(\E[0;37ml\E[0;32m)bum, (\E[0;37mp\E[0;32m)laylist, or (\E[0;37mq\E[0;32m)uit? "; tput sgr0
		read CHOICE
	else
		CHOICE=$(echo "$1")
	fi

        
    
	case "$CHOICE" in
		"a") 
            if [ -f $(which fzf) ];then 
                result=$(mpc list artist | fzf --multi)
            else
                result=$(mpc list artist | pick)
            fi
            mpc clear -q
            while IFS= read -r artist; do
                mpc findadd artist "${artist}" 
                mpc shuffle -q
                mpc play
            done <<< "$result"<commit_msg>added album artist to mpdcontrol<commit_after>#!/bin/bash

################################################################################
#  A simple utility to allow playlist selection and playing from cli for MPD
#
#  by <NAME>
#
#  Licensed under a Creative Commons BY-SA 3.0 Unported license
#  To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.
#
################################################################################


	if [ "$1" == "" ]; then
		echo -e "\E[0;32m(\E[0;37mg\E[0;32m)enre, (\E[0;37mA\E[0;32m)lbumartist, (\E[0;37ma\E[0;32m)rtist, a(\E[0;37ml\E[0;32m)bum, (\E[0;37mp\E[0;32m)laylist, or (\E[0;37mq\E[0;32m)uit? "; tput sgr0
		read CHOICE
	else
		CHOICE=$(echo "$1")
	fi

        
    
	case "$CHOICE" in
		"A") 
            if [ -f $(which fzf) ];then 
                result=$(mpc list albumartist | fzf --multi)
            else
                result=$(mpc list albumartist | pick)
            fi
            mpc clear -q
            while IFS= read -r albumartist; do
                mpc findadd albumartist "${albumartist}" 
                mpc shuffle -q
                mpc play
            done <<< "$result"
		;;
		"a") 
            if [ -f $(which fzf) ];then 
                result=$(mpc list artist | fzf --multi)
            else
                result=$(mpc list artist | pick)
            fi
            mpc clear -q
            while IFS= read -r artist; do
                mpc findadd artist "${artist}" 
                mpc shuffle -q
                mpc play
            done <<< "$result"
{'fraction_non_alphanumeric': 0.24180327868852458, 'fraction_numerical': 0.03204172876304024, 'mean_word_length': 2.0615735461801594, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1720942', 'n_tokens_mistral': 936, 'n_tokens_neox': 848, 'n_words': 227}