Commit Graph

4772 Commits

Author SHA1 Message Date
Stein Magnus Jodal
b0cffb8681 mpd: Move query_from_mpd_search_format into only module using it 2013-11-17 16:00:15 +01:00
Stein Magnus Jodal
25380fbbed mpd: Reformat query regexp 2013-11-17 15:45:57 +01:00
Stein Magnus Jodal
1e1523abb5 mpd: Match just ' ', not any space char 2013-11-17 15:45:31 +01:00
Stein Magnus Jodal
200adc71a4 mpd: Reduce indentation of multiline regexps 2013-11-17 15:36:16 +01:00
Stein Magnus Jodal
3bf4d0e9d1 mpd: Use same regexp flags everywhere 2013-11-17 15:24:33 +01:00
Stein Magnus Jodal
4cd0f8bd65 mpd: Remove redundant ^ from all patterns
re.match() only matches on the start of the line anyway.
2013-11-17 15:17:30 +01:00
Stein Magnus Jodal
b37d163f33 mpd: Make regexps work with re.VERBOSE 2013-11-17 15:13:27 +01:00
Thomas Adamcik
f84bafe750 Merge pull request #583 from jodal/feature/software-mixing-by-default
audio: Change to software mixing by default
2013-11-16 06:23:09 -08:00
Stein Magnus Jodal
e25705f8fa local: Ignore *.nfo and *.html when scanning 2013-11-16 15:19:48 +01:00
Stein Magnus Jodal
495c0b627b audio: Change to software mixing by default 2013-11-16 15:05:01 +01:00
Stein Magnus Jodal
4e3cc59581 docs: Move commands changes to top of changelog 2013-11-16 14:32:06 +01:00
Stein Magnus Jodal
c32f67f38c commands: Use single quotes 2013-11-16 14:06:45 +01:00
Stein Magnus Jodal
c97e812544 Merge pull request #570 from adamcik/feature/subcommands
Add sub-commands to mopidy and switch mopidy-scan over.
2013-11-16 05:00:42 -08:00
Thomas Adamcik
087dc5065d local: Remove argument that was simply added for testing help formatting 2013-11-16 03:13:22 +01:00
Thomas Adamcik
9586cb7fc9 docs: Update usage in man page 2013-11-16 03:11:30 +01:00
Thomas Adamcik
ea28e91f63 Merge branch 'develop' into feature/subcommands
Conflicts:
	mopidy/scanner.py
2013-11-16 03:08:38 +01:00
Thomas Adamcik
0ab772f251 docs: Add command API to docs and extension dev page. 2013-11-16 03:04:48 +01:00
Thomas Adamcik
03c301705d commands: Move mopidy.utils.command to mopidy.commands
- Also adds documenation to Command class.
- Moves scan command to commands to match naming.
2013-11-16 03:02:45 +01:00
Stein Magnus Jodal
3b03cdd222 docs: Update changelog 2013-11-16 02:26:57 +01:00
Thomas Adamcik
2f6ecd9171 commands: Move to using a help attribute instead of __doc__ 2013-11-16 02:26:47 +01:00
Thomas Adamcik
f89169d551 commands: Review changes for wording etc (#570) 2013-11-16 02:23:04 +01:00
Stein Magnus Jodal
2e85c222e0 local: Ignore capitalization of excluded file exts
Fixes #575
2013-11-16 02:21:18 +01:00
Stein Magnus Jodal
0c1ce36bfc mpd: bitrate in status response is always an int
Fixes #577
2013-11-16 02:11:00 +01:00
Stein Magnus Jodal
6323a07629 mpd: Don't save comments to tag cache
As they can contain newlines. Fixes #579.
2013-11-16 01:55:56 +01:00
Thomas Adamcik
09b6f726fa Merge pull request #580 from jodal/fix/zeroconf-invalid-host
Fix invalid host in Zeroconf
2013-11-15 16:39:13 -08:00
Stein Magnus Jodal
eee276d8c0 zeroconf: Wrap unpublish in try-except 2013-11-16 01:28:53 +01:00
Stein Magnus Jodal
34e327ed12 zeroconf: Wrap publish in try-except 2013-11-16 01:28:44 +01:00
Stein Magnus Jodal
5c33115eeb zeroconf: Don't set host when binding to all interfaces 2013-11-16 01:07:16 +01:00
Stein Magnus Jodal
f3b09e4ef2 zeroconf: Catch DBusException from AddService
Fixes #576
2013-11-16 01:06:57 +01:00
Stein Magnus Jodal
9814fe1ec9 zeroconf: Fix logger name 2013-11-16 00:20:26 +01:00
Thomas Adamcik
209a6659f6 local: Print number of tracks in library 2013-11-14 23:44:43 +01:00
Thomas Adamcik
ce13e7ae9e doc: Update with command changes 2013-11-14 23:39:09 +01:00
Thomas Adamcik
37ba3ca01d Merge branch 'develop' into feature/commands-helper-tmp
Conflicts:
	mopidy/utils/log.py
2013-11-14 23:36:27 +01:00
Thomas Adamcik
5f5c6a841c ext/backend: Use utils.command directly.
Commands don't "belong" to backends or frontends so just leave it at an ext
level and start using mopidy.utils.command directly.
2013-11-14 23:34:06 +01:00
Thomas Adamcik
63899059be main: Convert main program flow to command helpers
- Moves all startup code from start() into mopidy.commands
- Moves deps and config to mopidy.commands
- Plugs in use of commands parsing provided by new helpers
- Allows commands to override base verbosity level
- Removes defunct bootstrap logging helper.
2013-11-14 23:33:29 +01:00
Thomas Adamcik
a6c3b78a6f local: Convert local scanning to new commands.
Also moves mopidy.backends.local.scan to .command
2013-11-14 23:32:55 +01:00
Thomas Adamcik
da4cfebe05 ext: Add get_command and mopidy.backends.base.Command 2013-11-14 23:31:20 +01:00
Thomas Adamcik
c0f1a1352b commands: Replace set_defaults with set method
For our use case we only need to be able to override a value, not set defaults
so this simplifies everything.
2013-11-14 23:31:20 +01:00
Thomas Adamcik
39f7fd5955 commands: Extend use of exit helper to parser errors
This moves all the bad arugment handling into our class and makes sure to mark
all the helpers as internal.
2013-11-14 23:31:20 +01:00
Thomas Adamcik
d82f48a42f commands: Internalise handling of help action
This means help will always be handled by the root command. Additionally this
adds an exit helper.
2013-11-14 23:31:20 +01:00
Thomas Adamcik
0b1b249ae8 commands: Remove trailing newline for command errors 2013-11-14 23:31:20 +01:00
Thomas Adamcik
1394f3929b commands: Add run method to Commands 2013-11-14 23:31:20 +01:00
Thomas Adamcik
f5a5f9e9b1 commands: Add str method CommandError 2013-11-14 23:31:20 +01:00
Thomas Adamcik
b5360a1360 commands: Add usage to CommandError 2013-11-14 23:31:20 +01:00
Thomas Adamcik
001c8e0bdc commands: Add set_defaults() to the parser
- Removes mock based test that checks delegation, just check commands result
- Allow setting of defaults that propegate down the chain
- Move internal parser args to a _parse helper.
2013-11-14 23:31:20 +01:00
Thomas Adamcik
6bddcb7875 commands: Add help_formatter() with tests. 2013-11-14 23:31:20 +01:00
Thomas Adamcik
88bc046605 commands: Make sure parser errors get translated to correct error type. 2013-11-14 23:31:20 +01:00
Thomas Adamcik
fa7eee3bdf commands: Add basic format usage helper 2013-11-14 23:31:20 +01:00
Thomas Adamcik
754865d8b6 commands: Set child names upon adding them 2013-11-14 23:31:20 +01:00
Thomas Adamcik
7c82485a07 commands: Start adding commands util helper.
This class is intended to be used to contruct a tree of sub-commands. In this
intial version it mainly focuses on exposing `add_argument` to allow for nested
parsers. Next step is to start adding better `--help` that shows the entire tree
and hooking it up to select what code path to really run.
2013-11-14 23:31:20 +01:00