This commit is contained in:
sankalp committed 2024-01-28 14:42:32 +05:45
1 parent cffd9482e9
commit 662fb5ff83
15 files changed
+615 -670

No files matched your search

+3 -3
View File
@@ -26,13 +26,13 @@ play_music() {
local choice="$1"
local link="${menu_options[$choice]}"
notification "Playing now: $choice"
# Check if the link is a playlist
if [[ $link == *playlist* ]]; then
mpv --shuffle --vid=no --no-resume-playback "$link"
else
notification "Playing now: $choice"
elif [[ -n $link ]]; then
mpv "$link"
notification "Playing now: $choice"
fi
}