Warning: Beta quality!
Orochi is a command line client for 8tracks.com written in Python.
Yamata no Orochi (八岐の大蛇) is a legendary 8-headed and 8-tailed Japanese dragon. The name translates to "8-branched giant snake". I chose the name because it both refers to the number eight (as in 8tracks) and to snakes (as in Python).
Prerequisites:
- Python 2.7+ (compatibility for 3.2+ will probably follow in the future)
- mplayer (at least r27665, released in 1.0rc3)
Install:
$ pip install -r requirements.txt
Start:
$ python -m orochi.client
Available commands (main menu):
search: Syntax: search <searchterm> Search for a mix. You can then play a mix with the "play" command. play: Syntax: play <mix> Play the nth mix from the last search results. The <mix> argument can also be a mix ID or an URL. exit: Exit the interpreter. You can also use the Ctrl-D shortcut.
Available commands (play mode menu):
pause / p: Pause or resume the playback. stop: Stop the playback and exit play mode. next_song / n: Skip to next song. next_mix: Skip to next mix. status / s: Show the status of the currently playing song. mix_info: Show information about the currently playing mix. volume / v: Syntax: volume <amount> Change playback volume. The argument must be a number between 0 and 100.
The first time Orochi is started, it creates the config.json
configfile in
the ~/.config/orochi/
directory. The following configurations can be
changed:
mplayer_extra_args: Extra arguments that are passed on to the mplayer instance.
Example configuration:
{ "mplayer_extra_args": "-ao alsa:device=hw=1.0" }
PEP8 via flake8 with max-line-width set to 99 and E126-E128 ignored.
Install requirements-dev.txt
, then run py.test
in the main directory.
Violations of the coding guidelines above will be counted as test fails.
Please refer to the Contributors Guidelines. Thanks!
Copyright (C) 2013 Danilo Bargen and contributors
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.