Skip to content

Browse and listen to TuneIn stations from the command line

License

Notifications You must be signed in to change notification settings

kaangiray26/tunein-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tunein-cli 📻

Overview

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.

Features

  • 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

Requirements

  • inquirer (v2.6.3)
  • untangle (v1.1.1)
  • requests (v2.23.0)
  • PyInquirer (windows only)
  • windows-curses (windows only)
  • mplayer

    for osx and linux:

    • apt-get install mplayer or brew install mplayer or sudo pacman -S mplayer

    for windows:

    • download from the website.
    • After the installation puth your mplayer directory path to your system environment variables under "Path"

Installation

  • 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

Usage

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

Compability

  • Linux ✔️
  • macOS ✔️
  • Windows ✔️ (no coloring and some bugs)

Troubleshoot

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

About

Browse and listen to TuneIn stations from the command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages