https://github.com/kpj/smarty
Smart playlist generator for mpd
https://github.com/kpj/smarty
Last synced: 24 days ago
JSON representation
Smart playlist generator for mpd
- Host: GitHub
- URL: https://github.com/kpj/smarty
- Owner: kpj
- License: apache-2.0
- Created: 2013-10-23T12:00:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T10:57:23.000Z (about 7 years ago)
- Last Synced: 2025-04-15T08:09:31.866Z (about 1 month ago)
- Language: Python
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Smarty
======.. image:: https://img.shields.io/pypi/v/smarty.svg
:target: https://crate.io/packages/smarty/
:alt: Latest version
.. image:: https://img.shields.io/pypi/dm/smarty.svg
:target: https://crate.io/packages/smarty/
:alt: Number of PyPI downloadsA smart playlist generator for MPD written in python.
Installation
------------
Using pip
+++++++++
::$ pip install smarty
Using easy_install
++++++++++++++++++
::$ easy_install smarty
Usage
-----In default configuration, smarty will try to use ``$MPD_HOST`` (environment variable) and port ``6600``. If ``$MPD_HOST`` is not set, it will use localhost.
::
usage: smarty [-h] [-i ] [-p ] [--maxnum ] [--dist ]
[--norepeat] [-v] [--exclude [ ...]]Smart playlist generator written in python.
optional arguments:
-h, --help show this help message and exit
-i , --ip IP address of mpd server
-p , --port
Port mpd server is listening on
--maxnum Maximal number of songs in playlist
--dist Add new song if only songs are left to play in current playlist
--norepeat Don't add songs which are already in playlist.
-v, --verbose Print information about running process
--exclude [ ...]
Never add these genres to playlistExample
-------Smarty could be used like this
::
smarty --norepeat --maxnum 3000 --verbose --exclude Comedy
This would only add songs which are not already in the current playlist and allow a maximum number of 3000 songs (deletes from the beginning if that number is exceeded). It will furthermore display the genre of each added song and not add the genre 'Comedy'.
Bug Reports
-----------
Please submit any bugs you find to https://github.com/kpj/Smarty/issues.Links
-----
- Github: https://github.com/kpj/Smarty
- PyPi Homepage: https://pypi.python.org/pypi/smarty