Thomas Adamcik
e82ce6256d
core: Re-add one uri scheme per backend constraint.
2013-12-31 14:45:57 +01:00
Stein Magnus Jodal
4b9ab5fcbc
Remove empty "frontends" packages
2013-12-31 14:14:19 +01:00
Stein Magnus Jodal
1ee534126e
mpd: Move mopidy.{frontends => }.mpd
2013-12-31 14:11:16 +01:00
Stein Magnus Jodal
621aff22c9
http: Move mopidy.{frontends => }.http
2013-12-31 14:04:25 +01:00
Thomas Adamcik
60112d7c6f
Merge branch 'develop' into feature/extension-registry
2013-12-30 00:37:17 +01:00
Stein Magnus Jodal
e87d5729e3
models: Add lightweight Ref model with URI, name, and type
2013-12-29 19:31:14 +01:00
Thomas Adamcik
d93d3e6fcd
local: Add local/library config value
...
- Updated library provider to support missing library
- Added config value to select local library provider
- Updated tests to use library config value
2013-12-24 00:22:58 +01:00
Thomas Adamcik
e065f349db
local: Add local library provider back
...
- Re-add a local library provider that uses our new library interface
- Re-add our json library using the new interface
- Hardcode these to use each other for now
- Scanner bit is still missing, will re-add in one of the next commits
- Bypassed test for #500 for the time being
2013-12-23 23:43:04 +01:00
Thomas Adamcik
353782e2c8
local: Add local/data_dir config value.
...
Not in use yet but, needed for future changes planed in this branch.
2013-12-23 21:40:35 +01:00
Stein Magnus Jodal
3859448e06
core: Test version property, fix typo in changelog
2013-12-15 22:49:33 +01:00
Thomas Kemmer
9bf7e39425
fix flake8 error E302
2013-12-10 06:57:16 +01:00
Thomas Kemmer
584dc1eaf6
add playlists test for writing EXTM3U files
2013-12-09 16:13:05 +01:00
Thomas Kemmer
18c44e0d8a
add translator tests for EXTM3U files
2013-12-09 15:54:28 +01:00
Thomas Kemmer
b6ee1707d3
add translator tests for EXTM3U files
2013-12-09 15:52:46 +01:00
Thomas Kemmer
a5c02c1034
basic EXTM3U playlist support
2013-12-08 15:23:23 +01:00
Thomas Adamcik
9c2d38e989
local: Remove tag cache support
...
- Updates doc references to tag cache
- Removes tag cache from config and marks it deprecated
- Removes tag cache from setup.py
- Removes tag cache from config converter
- Removes tag cache from tests
- Converts local library tests to use JSON.
2013-12-04 22:38:16 +01:00
Thomas Adamcik
da63942b48
config: Improve handling of Deprecated config values
2013-12-04 22:38:16 +01:00
Thomas Adamcik
26ec956a08
config: Add deprecated config value support.
...
This makes it possible to mark a key as deprecated, this implies it will be
ignored if present, and never included in the resulting config.
2013-11-29 00:15:03 +01:00
Thomas Adamcik
3bbcb4d121
local: Review comment fixes
2013-11-28 23:20:03 +01:00
Thomas Adamcik
603b57ef3c
utils: Remove find_uris and update find_files
...
- find_uris is no more
- find_files now returns file paths relative to path being searched
- find_files now only works on directories
- find_files tests have been updated to reflect changes
- local scanner has gotten a minimal update to reflect this alteration
2013-11-27 22:50:35 +01:00
Thomas Adamcik
c025b87076
tagcache: Split out to own extension for eventual deletion.
2013-11-27 00:04:51 +01:00
Thomas Adamcik
04044d035f
core: Refactor core Backends helper
...
Replaces the jungle of extra dicts/lists with an OrderedDict per backend
feature type. Also makes sure that each type/scheme is unique instead of
the scheme alone.
2013-11-27 00:04:51 +01:00
Thomas Adamcik
ff9f473c2f
local: Move tag cache translators and tests out.
2013-11-26 17:47:52 +01:00
Thomas Adamcik
774e629425
config: Fix review comments.
2013-11-23 07:18:57 +01:00
Thomas Adamcik
b22d7bee0b
utils: Add mkdir and content options to get_or_create_file
...
This lets callers control is parent directories are created, and set the
default content of the file.
2013-11-22 07:17:02 +01:00
Stein Magnus Jodal
8ea996de13
Revert "tests: Don't redefine PYTHONPATH"
...
This reverts commit 6be5cc0f1b .
2013-11-20 23:13:31 +01:00
Stein Magnus Jodal
6be5cc0f1b
tests: Don't redefine PYTHONPATH
...
Shot in the dark to get Travis to find dbus-python when running the `mopidy`
command as a subprocess of the tests.
2013-11-20 22:40:12 +01:00
Stein Magnus Jodal
b0cffb8681
mpd: Move query_from_mpd_search_format into only module using it
2013-11-17 16:00:15 +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
Thomas Adamcik
2f6ecd9171
commands: Move to using a help attribute instead of __doc__
2013-11-16 02:26:47 +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
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
Lasse Bigum
f5e94d8f7c
Address review comments
2013-11-13 00:40:47 +01:00
Lasse Bigum
9ba5f6862f
Merge branch 'develop' of https://github.com/mopidy/mopidy into feature/extra_tags
2013-11-13 00:23:44 +01:00
Stein Magnus Jodal
04788abaac
core: Change tracklist.{filter,remove} usage
...
The criterias are now a mapping between field names and one or more values.
This aligns tracklist.{filter,remove} with the API of
library.{find_exact,search}, and allows for e.g. batch removals.
An exception is raised immediately if the API is used in the old way to ease
migration and debugging.
2013-11-12 00:00:22 +01:00
Stein Magnus Jodal
4e7c2bab4d
Merge branch 'develop' into feature/filter_improvement
2013-11-11 23:18:23 +01:00
Stein Magnus Jodal
a289d831d0
Merge pull request #569 from ZenithDK/scan_multiple_artist
...
Fix scan with multiple track artists and add tests
2013-11-11 14:07:36 -08:00
Stein Magnus Jodal
924553b62e
http: Fix tests
2013-11-11 22:40:45 +01:00
Lasse Bigum
2bd1f043ce
Updated code with new multiple artist handling and added tests
2013-11-09 03:01:53 +01:00
Lasse Bigum
8b7621c3e3
Merge branch 'develop' of https://github.com/mopidy/mopidy into feature/extra_tags
2013-11-09 02:37:44 +01:00
Lasse Bigum
c776565f65
Another round of review comments
2013-11-09 01:22:27 +01:00
Lasse Bigum
093c0400a9
Fix review comments
2013-11-08 21:43:31 +01:00
Lasse Bigum
03750a8bf2
Fix scan with multiple track artists and add tests
2013-11-08 21:25:21 +01:00
Thomas Adamcik
9539c2ac35
main: Switch to subcommands
...
- show-deps replaced with 'mopidy deps'
- show-config replaced with 'mopidy config'
- Just running mopidy now displays help, run 'mopidy run' to start server.
2013-11-08 19:53:00 +01:00
Javier Domingo Cansino
6721a59b26
tests: Fixing self confusion mistake
...
docs: Documenting tracklist's new filter() feature
2013-11-07 09:46:34 +01:00
Javier Domingo Cansino
8b5f30e5ff
Adding test case
2013-11-07 09:34:40 +01:00
Thomas Adamcik
469f414c4c
audio: Don't do duration conversion to ms in scanner
2013-11-06 19:10:49 +01:00
Thomas Adamcik
20b0602842
audio/scanner: Move translator into audio.
...
Tries to move more of the gst bits and pieces we are leaking into audio.
2013-11-06 19:10:49 +01:00
Thomas Adamcik
0a2d74eff1
scanner: Update to use new mopidy.audio.scan
...
Also adds the check less than 100ms check back to the scanner.
2013-11-06 19:10:49 +01:00
Lasse Bigum
af6225538d
Add more tests
2013-11-05 23:17:15 +01:00
Lasse Bigum
9d7db4cf4f
Add frontend MPD tests for 'search comment "foo"'
2013-11-03 01:52:34 +01:00
Lasse Bigum
a516d2051d
Added a ton of extra tests and expanded a few to include new tags
2013-11-03 01:01:42 +01:00
Lasse Bigum
f90f5f608e
Fix testcases after merging mopidy/develop
2013-11-02 23:44:33 +01:00
Lasse Bigum
e12a75c880
Merge branch 'develop' of https://github.com/mopidy/mopidy into feature/extra_tags
2013-11-02 23:39:19 +01:00
Lasse Bigum
9593da08b6
Rename track in MPD to track_name to avoid confusion
2013-11-02 22:34:26 +01:00
Stein Magnus Jodal
838f584e2b
local: Formatting
2013-11-02 22:18:37 +01:00
Stein Magnus Jodal
b0d43444c2
local: Remove debug logging in tests
2013-11-02 22:18:26 +01:00
Lasse Bigum
f295cbd3cb
Fix flake8 issues
2013-11-02 22:14:25 +01:00
Lasse Bigum
24944bd8e3
Split artist and albumartist dependency, update tests based on this
2013-11-02 22:13:54 +01:00
Lasse Bigum
86f18935fe
Fix flake8 errors and add a few more tests
2013-11-02 21:57:53 +01:00
Lasse Bigum
fd213f2d78
Add tests for albumartist
2013-11-02 21:57:53 +01:00
Lasse Bigum
e7746dac1b
Remove debug, make track_no more robust
2013-11-02 21:54:46 +01:00
Lasse Bigum
efc9fc75b5
Fix track_no
2013-11-02 21:49:44 +01:00
Stein Magnus Jodal
04d9fa667b
deps: Don't strip last dir from dependency path
2013-11-02 19:25:06 +01:00
Lasse Bigum
2bbd9003a2
Date is not mandatory AFAICT
2013-11-02 03:07:13 +01:00
Lasse Bigum
df1820f0a7
Add genre, composer, and performer tags and use them
2013-11-02 02:29:37 +01:00
Stein Magnus Jodal
c3a9bc06ed
Bump version for development
2013-10-27 22:44:10 +01:00
Stein Magnus Jodal
9064fc02fd
Merge branch 'develop' into feature/mpd-search-by-albumartist
...
Conflicts:
mopidy/frontends/mpd/protocol/music_db.py
mopidy/frontends/mpd/translator.py
2013-10-27 21:30:58 +01:00
Stein Magnus Jodal
be6e6c9a93
local: Readd lost test assertion
2013-10-27 21:26:26 +01:00
Stein Magnus Jodal
c42dd1bf1d
mpd: Add 'find track ""' test to match search tests
2013-10-27 21:23:45 +01:00
Stein Magnus Jodal
d13d9958b0
mpd: Formatting
2013-10-27 21:22:57 +01:00
Stein Magnus Jodal
f7e85b1f12
Merge branch 'develop' into feature/track_and_count
2013-10-27 21:04:09 +01:00
Stein Magnus Jodal
f9c09a8990
Merge pull request #548 from adamcik/feature/write-config
...
Prep work for adding a `mopidy config --set ...` type command.
2013-10-27 12:52:46 -07:00
Stein Magnus Jodal
24a2b08fc5
mpd: Don't return fake artists when searching by albumartist
2013-10-27 20:24:07 +01:00
Stein Magnus Jodal
dabddd81fd
mpd: Accept 'albumartist' type to 'find' and 'search' commands
2013-10-27 20:22:45 +01:00
Thomas Adamcik
ecc0bae344
local: Delete uris in library refresh ( fixes #500 )
...
Makes sure we remove uri's that can no longer be found in the tag cache.
2013-10-27 14:10:56 +01:00
Thomas Adamcik
73f91710e1
config: Add postprocessor for converting config back.
...
Idea forward from here is that once we have a config sub command that we expose
a setting config values which will:
1. Run the preprocessor on the file to edit.
2. Load it into config parser.
3. Modify the value.
4. Write it to a io.ByteString
5. Run the postprocessor
6. Save the file with comments etc intact.
2013-10-27 12:30:02 +01:00
Thomas Adamcik
d5cb4282d9
config: Add preprocessor for preserving comments when editing configs.
...
Adds markers to configs files that ensures configparser won't mangle comments
in the files. Will be combined with a postprocessor that undoes these changes.
2013-10-27 11:38:01 +01:00
Stein Magnus Jodal
b0ae7d3c6f
local: Fix crash on non-ASCII chars in URIs
2013-10-24 23:22:01 +02:00
Stein Magnus Jodal
e448d77eb7
mpd: Fix flipped mute logic
2013-10-24 22:20:07 +02:00
Lasse Bigum
457c39fc78
Remove duplicate test group, merge it into existing
2013-10-22 23:40:38 +02:00
Lasse Bigum
95046b4852
Fix small bug and fix test
2013-10-22 00:12:32 +02:00
Lasse Bigum
1975694d08
Changed track to track_no, fix code, add tests
...
Added testcases for track and count
2013-10-20 23:04:48 +02:00
Thomas Adamcik
84c373d7ea
Merge branch 'develop' into fix/bug-496-handle-single
...
Conflicts:
mopidy/core/tracklist.py
2013-10-20 22:46:35 +02:00
Thomas Adamcik
f1f223bba8
local: Fix handling of single in eot_track ( fixes #496 )
...
- Adds test cases for code paths that caused bug
- Short circuits EOT next track handling when in single mode.
2013-10-20 21:43:19 +02:00
Thomas Adamcik
7fc753d167
core/local: Update playback test with review comments.
...
- Fixes typo.
- Adds assert to better test intermediate state.
2013-10-20 21:16:18 +02:00
Thomas Adamcik
d978005008
core: flake8 fixes
2013-10-20 20:33:48 +02:00
Thomas Adamcik
40754bb2e0
core: Fix handling of shuffle ( fixes #453 )
...
- Shuffle internal list when random is enabled
- Use presence of tl_track to determine if this is first run to trigger
subsequent shuffles.
2013-10-20 19:28:13 +02:00