Skip to content

Commit

Permalink
bug: minor fix for switching playbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Savitoj <savitojs@gmail.com>
  • Loading branch information
savitojs committed Sep 17, 2024
1 parent b0374d6 commit 2402662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gurbani-fetch-n-play
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Date: 2024-09-06
# License: MIT License

VERSION="v0.6"
VERSION="v0.7"

OS="$(uname)"
if [[ "$OS" == "Darwin" ]]; then
Expand Down Expand Up @@ -388,7 +388,6 @@ while true; do
;;
"🔄 Switch radio channel")
echo -e "${BLUE}Switching to another radio channel...${NC}"
pkill vlc || pkill VLC > /dev/null 2>&1

# Re-run the station selection
execute_and_wait "curl -s https://play.sikhnet.com/api/radio -o /tmp/radio_data.json" "Fetching Live Radio data from Sikhnet.com"
Expand Down Expand Up @@ -428,6 +427,7 @@ while true; do

rm /tmp/radio_data.json

pkill vlc || pkill VLC > /dev/null 2>&1
echo -e "${GREEN}Playing ${selected_index}...${NC}"
$VLC_BIN -I dummy "$url" > /dev/null 2>&1 &
echo -e "${GREEN}Stream playing in VLC...${NC}"
Expand Down

0 comments on commit 2402662

Please sign in to comment.