aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-06-18 19:28:49 -0700
committerMike Crute <mike@crute.us>2017-06-18 19:28:49 -0700
commit1c4adc4f497331675c1ff9714705e40f8f7b214a (patch)
tree7e4793cbf8d505f908420025e65b6f22deaf6ca5
parentf0b011e871bbcffe5970d7d1e4f5e8d3f9d98de7 (diff)
downloadpydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.tar.bz2
pydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.tar.xz
pydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.zip
Update README
-rw-r--r--README.rst76
1 files changed, 48 insertions, 28 deletions
diff --git a/README.rst b/README.rst
index c59e53f..027a212 100644
--- a/README.rst
+++ b/README.rst
@@ -8,18 +8,22 @@ Pandora API Client
8.. image:: https://img.shields.io/travis/mcrute/pydora.svg 8.. image:: https://img.shields.io/travis/mcrute/pydora.svg
9 :target: https://travis-ci.org/mcrute/pydora 9 :target: https://travis-ci.org/mcrute/pydora
10 10
11.. image:: https://img.shields.io/pypi/dm/pydora.svg
12 :target: https://pypi.python.org/pypi/pydora
13
14This code is licensed under the MIT license. 11This code is licensed under the MIT license.
15 12
16This is a reasonably complete implementation of the Pandora API. It does not 13This is a reasonably complete implementation of the Pandora API that supports
17implement any of the undocumented features and does not implement most of the 14Python 2 and 3. It does not implement any of the undocumented features and does
18account management features as they were deemed not terribly useful. 15not implement most of the account management features as they are not terribly
16useful.
17
18Keys or passwords for Pandora are **not** provided in this repo, you'll have to
19`go get those <http://6xq.net/playground/pandora-apidoc/json/partners/#partners>`_
20for yourself. Make something awesome with this library, don't abuse Pandora,
21that's not cool.
19 22
20I don't provide any keys or passwords for Pandora in this repo, you'll have to 23The easy entry-point for programmatic use is
21go get those for yourself. Make something awesome with this library, don't 24``pandora.clientbuilder.PydoraConfigFileBuilder``. All programmatic APIs are in
22abuse Pandora, that's not cool. 25the ``pandora`` package. The remainder of this README is targeted at users of
26the ``pydora`` command-line player.
23 27
24Installing 28Installing
25========== 29==========
@@ -31,39 +35,55 @@ that. ::
31 $ pip install pydora 35 $ pip install pydora
32 $ pydora-configure 36 $ pydora-configure
33 37
34On Ubuntu install `mpg123`:: 38On Ubuntu install `vlc` or `vlc`::
35 39
36 # apt-get install mpg123 40 # apt-get install vlc
37 41
38On Mac OS X with `homebrew <http://brew.sh/>`_ installed:: 42To install VLC on Mac OS X visit the `VLC site
43<https://www.videolan.org/vlc/>`_ to download ``VLC.app``, then drag-and-drop
44the bundle into your ``/Applications`` folder. pydora will auto-detect this.
39 45
40 # brew install mpg123 46Audio Output Backend
47====================
48The ``pydora`` player does not directly support audio output but instead relies
49upon external audio output backends. The two supported backends are VLC and
50mpg123. The main difference between the two backends is the supported file
51formats. VLC supports a vast array of codecs, including MP3 and AAC, the two
52formats that Pandora uses. mpg123 on the other hand supports only MP3. As of
532017 Pandora has started to prefer AAC files over MP3 which necessitates VLC.
54The ``pydora`` player will try to auto-detect whatever player exists on your
55system, prefering VLC, and will use that audio output backend. If you notice a
56lot of skipping in a playlist consider installing VLC.
41 57
42Simple Player 58Simple Player
43============= 59=============
44Included is ``pydora``, a simple Pandora stream player that runs at the command 60Included is ``pydora``, a simple Pandora stream player that runs at the command
45line. It requires that mpg123 be installed with HTTP support as well as a 61line. It requires that mpg123 or VLC be installed with HTTP support as well as
46settings file (example below) located in ``~/.pydora.cfg``. Alternatively an 62a settings file (example below) located in ``~/.pydora.cfg``. Alternatively an
47environment variable ``PYDORA_CFG`` can point to the path of the config file. 63environment variable ``PYDORA_CFG`` can point to the path of the config file.
48 64
49The player only supports basic functionality for now. It will display a station 65The player only supports basic functionality for now. It will display a station
50list, allow listening to any station, basic feeback and bookmarking are also 66list, allow listening to any station, basic feeback and bookmarking are also
51supported. The player starts an mpg123 process in remote control mode and feeds 67supported. The player starts an mpg123 or VLC process in remote control mode
52commands to it. It does not download any music but rather streams them directly 68and feeds commands to it. It does not download any music but rather streams
53from Pandora. 69them directly from Pandora.
54 70
55When playing the following keys work (press enter afterwards): 71When playing the following keys work (press enter afterwards):
56 72
57* n - next song 73* n - next song
58* p - pause or resume song 74* p - pause or resume song
59* s - station list (stops song) 75* s - station list (stops song)
60* d - thumbs down track 76* d - thumbs down track
61* u - thumbs up track 77* u - thumbs up track
62* b - bookmark song 78* b - bookmark song
63* a - bookmark artist 79* a - bookmark artist
64* S - sleep song 80* S - sleep song
65* Q - quit program 81* Q - quit program
66* ? - display help 82* vu - volume up
83* vd - volume down
84* ? - display help
85
86Note that volume control is currently only supported with the VLC back-end.
67 87
68sample config:: 88sample config::
69 89