diff options
author | Mike Crute <mike@crute.us> | 2017-06-18 19:28:49 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2017-06-18 19:28:49 -0700 |
commit | 1c4adc4f497331675c1ff9714705e40f8f7b214a (patch) | |
tree | 7e4793cbf8d505f908420025e65b6f22deaf6ca5 | |
parent | f0b011e871bbcffe5970d7d1e4f5e8d3f9d98de7 (diff) | |
download | pydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.tar.bz2 pydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.tar.xz pydora-1c4adc4f497331675c1ff9714705e40f8f7b214a.zip |
Update README
-rw-r--r-- | README.rst | 76 |
1 files changed, 48 insertions, 28 deletions
@@ -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 | |||
14 | This code is licensed under the MIT license. | 11 | This code is licensed under the MIT license. |
15 | 12 | ||
16 | This is a reasonably complete implementation of the Pandora API. It does not | 13 | This is a reasonably complete implementation of the Pandora API that supports |
17 | implement any of the undocumented features and does not implement most of the | 14 | Python 2 and 3. It does not implement any of the undocumented features and does |
18 | account management features as they were deemed not terribly useful. | 15 | not implement most of the account management features as they are not terribly |
16 | useful. | ||
17 | |||
18 | Keys 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>`_ | ||
20 | for yourself. Make something awesome with this library, don't abuse Pandora, | ||
21 | that's not cool. | ||
19 | 22 | ||
20 | I don't provide any keys or passwords for Pandora in this repo, you'll have to | 23 | The easy entry-point for programmatic use is |
21 | go get those for yourself. Make something awesome with this library, don't | 24 | ``pandora.clientbuilder.PydoraConfigFileBuilder``. All programmatic APIs are in |
22 | abuse Pandora, that's not cool. | 25 | the ``pandora`` package. The remainder of this README is targeted at users of |
26 | the ``pydora`` command-line player. | ||
23 | 27 | ||
24 | Installing | 28 | Installing |
25 | ========== | 29 | ========== |
@@ -31,39 +35,55 @@ that. :: | |||
31 | $ pip install pydora | 35 | $ pip install pydora |
32 | $ pydora-configure | 36 | $ pydora-configure |
33 | 37 | ||
34 | On Ubuntu install `mpg123`:: | 38 | On Ubuntu install `vlc` or `vlc`:: |
35 | 39 | ||
36 | # apt-get install mpg123 | 40 | # apt-get install vlc |
37 | 41 | ||
38 | On Mac OS X with `homebrew <http://brew.sh/>`_ installed:: | 42 | To install VLC on Mac OS X visit the `VLC site |
43 | <https://www.videolan.org/vlc/>`_ to download ``VLC.app``, then drag-and-drop | ||
44 | the bundle into your ``/Applications`` folder. pydora will auto-detect this. | ||
39 | 45 | ||
40 | # brew install mpg123 | 46 | Audio Output Backend |
47 | ==================== | ||
48 | The ``pydora`` player does not directly support audio output but instead relies | ||
49 | upon external audio output backends. The two supported backends are VLC and | ||
50 | mpg123. The main difference between the two backends is the supported file | ||
51 | formats. VLC supports a vast array of codecs, including MP3 and AAC, the two | ||
52 | formats that Pandora uses. mpg123 on the other hand supports only MP3. As of | ||
53 | 2017 Pandora has started to prefer AAC files over MP3 which necessitates VLC. | ||
54 | The ``pydora`` player will try to auto-detect whatever player exists on your | ||
55 | system, prefering VLC, and will use that audio output backend. If you notice a | ||
56 | lot of skipping in a playlist consider installing VLC. | ||
41 | 57 | ||
42 | Simple Player | 58 | Simple Player |
43 | ============= | 59 | ============= |
44 | Included is ``pydora``, a simple Pandora stream player that runs at the command | 60 | Included is ``pydora``, a simple Pandora stream player that runs at the command |
45 | line. It requires that mpg123 be installed with HTTP support as well as a | 61 | line. It requires that mpg123 or VLC be installed with HTTP support as well as |
46 | settings file (example below) located in ``~/.pydora.cfg``. Alternatively an | 62 | a settings file (example below) located in ``~/.pydora.cfg``. Alternatively an |
47 | environment variable ``PYDORA_CFG`` can point to the path of the config file. | 63 | environment variable ``PYDORA_CFG`` can point to the path of the config file. |
48 | 64 | ||
49 | The player only supports basic functionality for now. It will display a station | 65 | The player only supports basic functionality for now. It will display a station |
50 | list, allow listening to any station, basic feeback and bookmarking are also | 66 | list, allow listening to any station, basic feeback and bookmarking are also |
51 | supported. The player starts an mpg123 process in remote control mode and feeds | 67 | supported. The player starts an mpg123 or VLC process in remote control mode |
52 | commands to it. It does not download any music but rather streams them directly | 68 | and feeds commands to it. It does not download any music but rather streams |
53 | from Pandora. | 69 | them directly from Pandora. |
54 | 70 | ||
55 | When playing the following keys work (press enter afterwards): | 71 | When 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 | |||
86 | Note that volume control is currently only supported with the VLC back-end. | ||
67 | 87 | ||
68 | sample config:: | 88 | sample config:: |
69 | 89 | ||