From e8a016a3fef4fffa66312737320451787aa2d2ba Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 15 Jun 2014 19:44:46 +0200 Subject: [PATCH] Add album mode configuration example. Also fixed typo and documentation --- doc/examples/album_mode.cfg | 31 +++++++++++++++++++++++++ doc/examples/all_settings.cfg | 5 ++-- sima/plugins/internal/randomfallback.py | 2 +- 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 doc/examples/album_mode.cfg diff --git a/doc/examples/album_mode.cfg b/doc/examples/album_mode.cfg new file mode 100644 index 0000000..4d1c8cf --- /dev/null +++ b/doc/examples/album_mode.cfg @@ -0,0 +1,31 @@ +# +# For complete list of options availble please refer to manual +# "man 5 mpd_sima.cfg" or the documentation: +# /usr/share/doc/mpd-sima/examples/all_settings.cfg +# +########################## MPD SECTION ################################ +[MPD] +host = localhost +port = 6600 +#password = s3cr3t + +######################## LOGGING FACILITY ############################# +[log] +#logfile = +verbosity = info + +######################## SIMA CORE #################################### +[sima] +history_duration = 24 # in hours +queue_length = 5 + +######################### PLUGINS ##################################### + +[crop] +consume = 20 + +[lastfm] +queue_mode = album +album_to_add = 1 + +# vim: syntax=cfg fileencoding=utf-8 diff --git a/doc/examples/all_settings.cfg b/doc/examples/all_settings.cfg index 3be857d..46a6184 100644 --- a/doc/examples/all_settings.cfg +++ b/doc/examples/all_settings.cfg @@ -1,9 +1,10 @@ ######################################################################## # -# If you need special settings, rename this file as sima.cfg within -# your $XDG_CONFIG_HOME (default is $HOME/.config/sima/) +# If you need special settings, rename this file as mpd_sima.cfg within +# your $XDG_CONFIG_HOME (default is $HOME/.config/mpd_sima/) # You can also call it with --config option. # +# cf. man 5 mpd_sima.cfg ######################################################################## ########################## MPD SECTION ################################ diff --git a/sima/plugins/internal/randomfallback.py b/sima/plugins/internal/randomfallback.py index aceff44..4c011fe 100644 --- a/sima/plugins/internal/randomfallback.py +++ b/sima/plugins/internal/randomfallback.py @@ -71,7 +71,7 @@ class RandomFallBack(Plugin): return trks def get_trk(self): - """Get a single track acording to random flavour + """Get a single track according to random flavour """ trk = None art = None -- 2.39.5