Gurbani Radio Fetch-n-Play is a bash script that fetches live Gurbani channels from Sikhnet.com and allows you to play them using VLC. It also provides options to check the online status of channels and stop any ongoing playback.
This project combines the gists I have written together with fzf
- Fetch and display live Gurbani channels from Sikhnet.com
- Play selected channels using VLC
- Check the online status of available channels
- Stop VLC playback directly from the command line
- Switch channels between online via CLI
The script requires the following tools to be installed:
vlc
fzf
jq
The script will automatically check for these dependencies and attempt to install them if they are missing.
- macOS (via Homebrew)
- Fedora (via
dnf
) - Ubuntu (via
apt-get
)
./gurbani-fetch-n-play [options]
-
-h, --help
Show the help message and exit -
-s, --stop
Stop the current VLC playback -
-t, --status
Show the online status of available channels without playing them -
-i, --install
Installs the script to writeable$PATH
available -
-u, --update
Update the insalled script if version mismatch -
-v, --version
Shows the version of the installed script
Non-interactive mode installs at ~/.local/bin
by default.
curl -s https://raw.githubusercontent.com/savitojs/gurbani-fetch-n-play/main/gurbani-fetch-n-play | bash -s -- --install
The script will automatically check for and install any missing dependencies.
Interactive installation will discover writeable $PATH
for installation
curl -O https://raw.githubusercontent.com/savitojs/gurbani-fetch-n-play/main/gurbani-fetch-n-play
chmod +x gurbani-fetch-n-play
./gurbani-fetch-n-play --install
-
Fetch and Play
To fetch and play a channel:gurbani-fetch-n-play
-
Stop Playback
To stop the current playback:gurbani-fetch-n-play --stop
-
Show Status
To show the online status of channels:gurbani-fetch-n-play --status
This project is licensed under the MIT License.
Gratitude to Sikhnet for their Gurbani Radio Service