tunein-cli allows you to browse TUNEIN streams from your command line and listen to them by parsing xml from http://opml.radiotime.com/ to gather stations information.
- Open streams directly from your terminal using mplayer
- Download streams as .pls files
- Printout stream url source
- Open streams in browser
- Add streams to favourites
- Add custom streams using urls to favourites
- Play stations from favourites
- inquirer (v2.6.3)
- untangle (v1.1.1)
- requests (v2.23.0)
- PyInquirer (windows only)
- windows-curses (windows only)
- mplayer
apt-get install mplayer
orbrew install mplayer
orsudo pacman -S mplayer
- download from the website.
- After the installation puth your mplayer directory path to your system environment variables under "Path"
- On osx and linux:
$ git clone "https://github.com/Kaanthegmr/tunein-cli"
$ cd tunein-cli
$ pip install -r requirements.txt
$ python tunein.py
- If you're on Windows, run
python tunein_win.py
Once you start the program you will see the following output: Use your keyboard navigate through options.
[?] Select Option::
[1]: Open Stream
[2]: Download Stream
[3]: Show Stream Source
[4]: Open In Browser
[5]: Add to Favourites
[6]: Add custom station
[7]: Favourites
[8]: Exit
- Linux ✔️
- macOS ✔️
- Windows ✔️ (no coloring and some bugs)
If you're on a Linux system, consider doing the following changes:
$ sudo touch /etc/mplayer/mplayer.conf
$ sudo echo "nolirc=yes" > /etc/mplayer/mplayer.conf
$ sudo echo "ao=alsa" > /etc/mplayer/mplayer.conf