Commit Graph

72 Commits

Author SHA1 Message Date
Stein Magnus Jodal
1b5b7abfdd Allow settings prefixed with 'CUSTOM_' (fixes #204) 2012-11-13 00:44:07 +01:00
Stein Magnus Jodal
6acaa490e9 Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
49cf1ab8aa Require at least one frontend and one backend 2012-11-08 14:43:21 +01:00
Stein Magnus Jodal
197447c0cb Remove ancient despotify settings check 2012-11-08 14:42:06 +01:00
Stein Magnus Jodal
0c9452d9d3 Remove unused argument shadowing builtin (#211) 2012-10-17 01:31:41 +02:00
Stein Magnus Jodal
b8d637e1f5 Move DATA_PATH, SETTINGS_PATH, and SETTINGS_FILE to mopidy.utils.path 2012-10-17 00:21:24 +02:00
Stein Magnus Jodal
5fc77be76e Update path in comment 2012-10-16 22:25:37 +02:00
Stein Magnus Jodal
479ab249bb Move mopidy.utils.{log => formatting}.indent to break import cycle 2012-10-16 22:25:23 +02:00
Stein Magnus Jodal
d9d6a3d5b6 Move exceptions to mopidy.exceptions 2012-10-16 16:08:46 +02:00
Stein Magnus Jodal
666800ec57 Fix most flake8 warnings (#211) 2012-10-16 14:00:34 +02:00
Stein Magnus Jodal
49201def74 Fix NameError caused by change to module imports 2012-09-19 23:54:41 +02:00
Thomas Adamcik
dda5e5261a Move and rename expand_path to mopidy.utils.path
Also switches a bit move of mopidy.utils.settings over to module imports and
double spaces between functions.
2012-09-16 22:07:59 +02:00
Thomas Adamcik
355ff811af Add $XDG_name_DIR substitution to _FILE and _PATH settings.
This change removes the practice of hardcoding fallbacks to these paths outside
of the base settings file. We can probably get rid of some of the location
CONSTANTS that are currently in use in mopidy/__init__.py
2012-09-16 18:03:07 +02:00
Thomas Adamcik
3cf1b13d49 Cleanup mopidy.utils.settings.
- Move to module import for stdlib
- Extract path manipulation code to a method
- Avoid uneeded copying of settings dict by binding current localy.
2012-09-16 17:47:51 +02:00
Thomas Adamcik
8c038bbae6 Review cleanup. 2012-09-05 20:48:00 +02:00
Thomas Adamcik
114bc10ae8 Merge branch 'develop' into feature/switch-to-gst-mixers
Conflicts:
	mopidy/gstreamer.py
2012-09-03 22:54:22 +02:00
Stein Magnus Jodal
5f8374a174 Use same wording in setting validation and docs 2012-09-03 22:32:57 +02:00
Stein Magnus Jodal
252984138f Map old settings GSTREAMER_AUDIO_SINK and LOCAL_OUTPUT_OVERRIDE to the new OUTPUT setting 2012-09-03 22:32:44 +02:00
Stein Magnus Jodal
7866d62300 Improve docstring 2012-09-03 22:32:19 +02:00
Stein Magnus Jodal
6b41806eea Merge remote-tracking branch 'adamcik/feature/simplify-outputs' into develop
Conflicts:
	docs/changes.rst
	mopidy/utils/settings.py
2012-09-03 22:08:52 +02:00
Thomas Adamcik
5a0199ac20 Remove MIXER_MAX_VOLUME setting. 2012-09-01 22:06:46 +02:00
Thomas Adamcik
55b9bc979c Merge branch 'feature/simplify-outputs' into feature/switch-to-gst-mixers
Conflicts:
	mopidy/gstreamer.py
2012-09-01 12:40:39 +02:00
Thomas Adamcik
e4d425d37a Add did you mean tests for settings.
- Checks varying degrees of typos until the edit distance becomes to large.
- Also updated did you mean to always uppercase it's input so we catch caps
  errors.
2012-09-01 12:28:32 +02:00
Thomas Adamcik
4e4a209ec3 Fix existing settings tests that did_you_mean broke. 2012-09-01 12:15:08 +02:00
Thomas Adamcik
03a7f03bb8 Style fixes to levenshtein and did_you_mean. 2012-09-01 12:11:09 +02:00
Thomas Adamcik
3c2576a629 Guess what setting you meant based on levenshtein. 2012-09-01 11:46:58 +02:00
Thomas Adamcik
387da58425 Deprecate and remove shoutcast settings.
I've also verfied that the examples provided will actually work.
2012-09-01 11:22:05 +02:00
Thomas Adamcik
6e3e1f997f Convert to only using GStreamer mixers. 2012-08-26 14:30:13 +02:00
Thomas Adamcik
343207ebe2 Update docs with latest OUTPUT changes and fix issues raised in review of pull request. 2012-08-26 12:37:23 +02:00
Thomas Adamcik
c565e274a5 Replace OUTPUTS with OUTPUT and switch to simple outputs that return a gst.Bin 2012-08-23 23:44:05 +02:00
Stein Magnus Jodal
24d9f8f200 Fix a bunch of pylint warnings 2012-02-10 00:17:21 +01:00
Thomas Adamcik
0479adf7fc Fix s/_FOLDER/_PATH/, move cache to mopidy instead of spotify folder and fix docs. 2011-07-18 00:15:58 +02:00
Thomas Adamcik
f483908761 Switch to using SETTINGS_FOLDER and SETTINGS_FILE derived from xdg 2011-07-17 02:12:55 +02:00
Thomas Adamcik
f365786c9d Switch to get_user_config_dir() instead of .mopidy 2011-07-17 02:12:55 +02:00
Thomas Adamcik
e2597ab23f Fix minor bug in settings subsystem that prevented _FILE/PATH settings to be set to None 2011-07-17 02:11:06 +02:00
Stein Magnus Jodal
6a77922905 Ask about missing settings in alphabetic order 2011-06-15 22:19:41 +02:00
Stein Magnus Jodal
c0a39afa31 Do not interactively ask for settings when they are already set locally 2011-06-10 14:30:32 +02:00
Johannes Knutsen
5e0a85c1b6 Get encoding from sys module directly instead of getpass.sys 2011-06-09 20:38:52 +02:00
Johannes Knutsen
c31db04979 Move private methods to be closer it's caller 2011-06-09 20:08:50 +02:00
Johannes Knutsen
efa38d2449 Read interactive settings optional by adding --interactive option 2011-06-09 20:04:13 +02:00
Johannes Knutsen
8d240ea686 Read missing local settings from stdin by default 2011-06-09 20:04:13 +02:00
Stein Magnus Jodal
2321550079 Fix import cycle 2011-06-09 17:35:22 +02:00
Johannes Knutsen
e97b32d041 rename SPOTIFY_HIGH_BITRATE setting to SPOTIFY_BITRATE, and use actual bitrate value to define preferred bitrate 2011-06-09 17:18:35 +02:00
Stein Magnus Jodal
7d7fb8d906 Compare default passwords with the unmasked current password 2011-05-19 22:44:31 +02:00
Stein Magnus Jodal
6778718837 Remove 'Settings:' label and indentation of all settings 2011-05-19 22:38:16 +02:00
Stein Magnus Jodal
0b2b0c5c3c Show current setting value on same line as setting name 2011-05-19 22:37:09 +02:00
Stein Magnus Jodal
a760a7fdb4 Use pprint to format long setting values 2011-05-19 22:31:04 +02:00
Stein Magnus Jodal
7074b4928c Add some tests for --list-settings formatting 2011-05-19 22:30:09 +02:00
Thomas Adamcik
65db8c4a7b Kill off *_OUTPUT_OVERRIDEs in favour of just having CustomOutput to handle corner cases 2011-05-07 23:18:31 +02:00
Thomas Adamcik
eceba71273 Unify naming of output settings 2011-04-25 17:30:55 +02:00