Create Paste
Top Pastes
Recent Pastes
Settings
Account
Untitled Paste
Anonymous
Views
1
Visibility
Private
Expires
Never
Created
March 2023
View Raw
Download
#!/bin/bash # A script that streams various radio channels over Tor with mpv # Source of music is ** Deep Web Radio ** # http://anonyradixhkgh5myfrkarggfnmdzzhhcgoy2v66uf7sml27to5n2tid.onion/ # Global variables hservice="http://anonyradixhkgh5myfrkarggfnmdzzhhcgoy2v66uf7sml27to5n2tid.onion/" wrapped="torsocks mpv" sfx=".m3u" rstation1="AnonyJazz" rstation2="AnonyRadio" rstation3="BaroqueRadio" rstation4="DarkRet" rstation5="DeepBanjo" rstation6="DeepSpaceOne" rstation7="DroneZone" rstation8="GrooveSalad" rstation9="Lush" rstation10="c0vertElectr0" # Check Dependencies if [[ $(command -v mpv | wc -l) -ne 1 ]] ; then echo "Error: mpv must be installed to run this script." exit 1 elif [[ $(command -v torsocks | wc -l) -ne 1 ]] ; then echo "Error: torsocks must be installed to run this script." exit 1 else : fi usage() { cat <<-EndUsage Usage: $(basename $0) [OPTIONS] Options: -h --help Display this help and exit -l --list List available stations -s --station Radio station to stream EndUsage exit 0 } list() { cat <<-EndStations Available Stations: (1) Anony JaZZ (2) Radio Cladenstin@ (3) BaroqueRadio (4) DarkRet (5) DeepBanjo (6) DeepSpaceOne (7) DroneZone (8) GrooveSalad (9) Lush (10) c0vertElectr0 EndStations exit 0 } station() { chosen_station="$1" case "$chosen_station" in "1") ${wrapped} ${hservice}${rstation1}${sfx} exit;; "2") ${wrapped} ${hservice}${rstation2}${sfx} exit;; "3") ${wrapped} ${hservice}${rstation3}${sfx} exit;; "4") ${wrapped} ${hservice}${rstation4}${sfx} exit;; "5") ${wrapped} ${hservice}${rstation5}${sfx} exit;; "6") ${wrapped} ${hservice}${rstation6}${sfx} exit;; "7") ${wrapped} ${hservice}${rstation7}${sfx} exit;; "8") ${wrapped} ${hservice}${rstation8}${sfx} exit;; "9") ${wrapped} ${hservice}${rstation9}${sfx} exit;; "10") ${wrapped} ${hservice}${rstation10}${sfx} exit;; esac } while getopts ":hls" args; do case $args in h|help) # Display help and exit usage exit;; l|list) # List available stations list exit;; s|station) # Radio station to stream station $2 ;; ?) # Invalid argument usage exit;; esac done