为mpd创建智能播放列表
smart的Python项目详细描述
用python编写的mpd智能播放列表生成器。
安装
使用pip
$ pip install smarty
使用简易安装
$ easy_install smarty
用法
在默认配置中,Smarty将尝试使用^{TT1}$(环境变量)和端口^{TT2}$。如果未设置$MPD_HOST,则它将使用localhost。
usage: smarty [-h] [-i <ip>] [-p <port>] [--maxnum <num>] [--dist <num>] [--norepeat] [-v] [--exclude <genre> [<genre> ...]] Smart playlist generator written in python. optional arguments: -h, --help show this help message and exit -i <ip>, --ip <ip> IP address of mpd server -p <port>, --port <port> Port mpd server is listening on --maxnum <num> Maximal number of songs in playlist --dist <num> Add new song if only <x> 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 <genre> [<genre> ...] Never add these genres to playlist
示例
Smarty可以像这样使用
smarty --norepeat --maxnum 3000 --verbose --exclude Comedy<>这只会添加当前播放列表中没有的歌曲,允许最多3000首歌曲(如果超过该数字,从一开始就删除)。它将进一步显示每一个添加歌曲的流派,而不是添加流派'喜剧'。
错误报告
请将发现的任何错误提交给https://github.com/kpj/Smarty/issues。