All Projects → oldlaptop → iheart-mplayer

oldlaptop / iheart-mplayer

Licence: BSD-2-Clause license
Automatically open an iheartradio station in a media player, such as mplayer, VLC, or mpv

Programming Languages

python
139335 projects - #7 most used programming language
Roff
2310 projects
shell
77523 projects

Projects that are alternatives of or similar to iheart-mplayer

radiobar
macOS menubar app to listen to streaming radio
Stars: ✭ 53 (+20.45%)
Mutual labels:  radio, vlc
adl
🍿 anime-downloader + trackma wrapper
Stars: ✭ 91 (+106.82%)
Mutual labels:  mpv, vlc
podcast-player
A Python command line podcast player
Stars: ✭ 20 (-54.55%)
Mutual labels:  mpv, mplayer
playercast
Cast to media player and control playback remotely.
Stars: ✭ 46 (+4.55%)
Mutual labels:  mpv, vlc
Movie Monad
📺 A free and simple to use video player made with Haskell.
Stars: ✭ 347 (+688.64%)
Mutual labels:  mpv, vlc
kaa.si-cli
Stream anime from kaa.si and sync with anilist
Stars: ✭ 12 (-72.73%)
Mutual labels:  mpv, vlc
twitchpipe
Pipe your favorite Twitch streams to the media player of your choice, or a file to save them for later. Supports low-latency playback.
Stars: ✭ 28 (-36.36%)
Mutual labels:  mpv, vlc
Mpv
🎥 Command line video player
Stars: ✭ 17,018 (+38577.27%)
Mutual labels:  mpv, mplayer
pyradio
📻 Play your favorite radio station from the terminal
Stars: ✭ 69 (+56.82%)
Mutual labels:  radio, vlc
Radigo
Record radiko 📻
Stars: ✭ 135 (+206.82%)
Mutual labels:  radio
Si4735
SI4735 Library for Arduino
Stars: ✭ 182 (+313.64%)
Mutual labels:  radio
Tr 9
TR-9, the (only) M17 system compatible handheld - schematics, PCB design files, BOM.
Stars: ✭ 131 (+197.73%)
Mutual labels:  radio
Pagermon
Multimon-ng pager message parser and viewer
Stars: ✭ 154 (+250%)
Mutual labels:  radio
Fradioplayer
A simple radio player framework for iOS, macOS, tvOS.
Stars: ✭ 183 (+315.91%)
Mutual labels:  radio
Bootstrap Table
An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
Stars: ✭ 11,068 (+25054.55%)
Mutual labels:  radio
Iot Pt
A Virtual environment for Pentesting IoT Devices
Stars: ✭ 218 (+395.45%)
Mutual labels:  radio
R2cloud
Decode satellite signals on Raspberry PI or any other 64-bit intel.
Stars: ✭ 125 (+184.09%)
Mutual labels:  radio
Rdio Scanner
Rdio Scanner is an interface similar to a police radio scanner for software defined radio recorders
Stars: ✭ 122 (+177.27%)
Mutual labels:  radio
Swift Radio Pro
Professional Radio Station App for iOS!
Stars: ✭ 2,644 (+5909.09%)
Mutual labels:  radio
Jcplayer
🎵 A simple audio player for Android applications.
Stars: ✭ 209 (+375%)
Mutual labels:  radio

IHEART-URL(1) - General Commands Manual

NAME

iheart-url - print the audio stream URL for an iheartradio station

SYNOPSIS

iheart-url [-chiv] [-l terms] [-s terms] [station_id]
iheart-mplayer [-c] [-l terms] [station_id]
iheart-mpv [-c] [-l terms] [station_id]
iheart-vlc [-c] [-l terms] [station_id]

DESCRIPTION

iheart-url fetches the URL for an iHeartRadio station's audio stream from iHeartRadio's API servers and prints it to stdout. It is meant to be used with audio players and the command substitution syntax in most shells, like so:

$ mplayer -novideo "$(iheart-url [station_id])"

iheart-mplayer is a trivial POSIX sh wrapper scripts that does precisely that for the mplayer media player, or for mpv or vlc if it is called by the corresponding names.

The options are as follows:

-c

Disable TLS; all API requests will be done in cleartext, and only cleartext stream URLS will be returned. May prevent any valid stream URL from being returned, in the event that the station has only TLS streams.

-h

Display a help message. Meaningless for wrapper scripts.

-i

Instead of printing the URL for a station, output some human-readable info about it. Meaningless for wrapper scripts.

-l terms

"I'm feeling lucky" search for terms; print the URL of the "best" result according to iHeartRadio's servers.

-s terms

Run a search for terms, outputting vital information like station ID for each result. Meaningless for wrapper scripts.

-v

Increase verbosity level, may be specified multiple times for more verbosity. Useful in conjunction with -s. Meaningless for wrapper scripts.

station_id

Print the URL for this numerical station ID. Station IDs can be obtained with -i or -s.

ENVIRONMENT

MPLAYER_OPTS

MPV_OPTS

VLC_OPTS

Command line arguments for wrapper scripts to pass their players.

EXAMPLES

Print the URL for station ID 5361:

$ iheart-url 5361

Print expanded search results for the term "Sports:"

$ iheart-url -vs Sports

Play the best match for the search term "Classic rock" in mpv (note the use of double quotes to prevent the shell from field-splitting the search term:)

$ iheart-mpv -l "Classic rock"

CAVEATS

While most media players capable of handling network streams will be able to use these URLs, the lack of public documentation concerning iHeartRadio's API precludes any guarantees about the content provided. Also because of the lack of documentation, much of this tool's functionality relies on information gained from deep-packet inspection of official iHeartRadio apps' traffic and on trial and error. The iHeartRadio API has been known to change on occasion and break iheart-url's functionality. Technical documentation derived from this tool's development may be found in its source code and in the 'iheart-api' file in the source distribution.

BUGS

iheart-mplayer, iheart-mpv, and iheart-vlc naively pass all their arguments to iheart-url, and all of iheart-url's stdout output as an argument to the player. Players do not particularly like the output of -h, -i, or -s.

Multiple people have reported intermittent outages of the iHeartRadio API, during which it may return HTTP errors for iheart-url's requests for certain stations.

Python may raise string encoding exceptions if the console does not support UTF-8. Setting PYTHONIOENCODING to something like ":namereplace" in the environment is recommended.

Up-to-date information on any issues can be found on the Github issue tracker: https://github.com/oldlaptop/iheart-mplayer/issues

OpenBSD 6.4 - March 1, 2019

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].