Giter Site home page Giter Site logo

pyradio's Introduction

PyRadio

Command line internet radio player.

Ben Dowling - http://www.coderholic.com/pyradio

Requirements

  • python 2.6+/3.2+
  • mplayer or vlc installed and in your path

Installation

The first thing is to make sure MPlayer and VLC are installed and are in the PATH. To check this, go in your favorite terminal and make sure thiese programs are launched when you type "mplayer" or "cvlc".

MacOSX tip: MPlayer is one of the available packages provided by Homebrew. But it is not the case of VLC. Nevertheless, pyradio will also work with the binary of the application VLC. You simply can add a symbolic link to the executable as follows (this link must of course be in your PATH):

ln -s /Applications/VLC.app/Contents/MacOS/VLC cvlc

The second step is to install the python package:

pip install pyradio

Shell

$ pyradio -h

usage: main.py [-h] [--stations STATIONS] [--random] [--add] [--list]

Console radio player

optional arguments:
-h, --help            show this help message and exit
--stations STATIONS, -s STATIONS
                        Path on stations csv file.
--random, -r          Start and play random station.
--add, -a             Add station to list.
--list, -l            List of added stations.
--debug, -d           Debug mode (pyradio.log created)
                      To be attached with any bug report.

Controls

Up/Down/j/k/PgUp/PgDown 	Change station selection
Enter 				        Play selected station
-/+						    Change volume
m						    Mute
r						    Select and play a random station
g						    Jump to first station
<n>G					    Jump to n-th station
Space                       Stop/start playing selected station
Esc/q					    Quit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.