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
Thomas Adamcik
66ae1b8eee
local/core: Add and fix more random related tests.
...
- Adds tests for eot_track vs next_track as we were only testing the one code
path.
- Makes test_random_until_end_of_playlist_and_play_from_start actually test
random and not repeat.
- Adds test_play_track_then_enable_random which is the underlying bug covered
by the regression test for issue #17 .
2013-10-20 18:39:07 +02:00
Thomas Adamcik
025bafc114
local/core: Update random tests to be more predictable
...
- Replace setting the random seed with mocking out shuffle with reverse. This
makes tests easier to reason about while still being able to test correct
behaviour.
- Increases number of tracks to four to avoid test passing due to symetry in
plain and reversed lists.
- Made test_eot_track_with_random_after_append_playlist actually test eot and
not next.
- Found a test failure in handling of test_random_until_end_of_playlist, fix in
next commit.
2013-10-20 18:39:07 +02:00
Stein Magnus Jodal
96008ca826
Merge pull request #539 from adamcik/fix/bug-527-temp-workaround
...
local: Temporary workaround for issue #527
2013-10-20 07:31:55 -07:00
Thomas Adamcik
fcd3e5d5cf
local: Add test for fallback handling of unknown track uris in playlists
...
- Checks that adding a non local:track:... uri to a playlist and reading it
back works.
- Also fixes mistake in API usage where we assumed lookup still raised
LookupError.
2013-10-20 16:18:03 +02:00
Stein Magnus Jodal
c8886dec49
tests: Sort imports
2013-10-20 16:04:09 +02:00
Thomas Adamcik
2f01fc4e46
scanner: Review comments and flake fixes
...
- Move ScannerError to exceptions module.
- Subclass ScannerError from MopidyException.
- Fix import sorting.
2013-10-20 15:51:39 +02:00
Thomas Adamcik
a5a55952fb
scanner: Switch to gst.pbutils.Discoverer and refactor API
...
- New API wraps gst.pbutils.Discoverer for mopidy use.
- Custom scanner code removed.
- Callback based async API switched with simpler synchronous API
- Scanner is feed one and one URI and returns the result or raises an error.
- Adds new ScannerError exception for error handling in scanner
- Limits local/scan_timeout to 1000-3600000 i.e. 1s to 1h
- Files with zero duration are now excluded.
- Mtime handling moved out of scanner so we can use it for streams etc.
2013-10-20 13:22:00 +02:00
Thomas Adamcik
e0bfe144f8
Merge pull request #532 from jodal/feature/search-by-albumartist
...
Search filtering by albumartist
2013-10-19 13:46:58 -07:00
Thomas Adamcik
c8f5c1aacf
Merge pull request #537 from jodal/tidy-up-core
...
Core playback and tracklist modularity improvement v2
2013-10-19 13:24:21 -07:00
Stein Magnus Jodal
27a63b1688
local: Remove redundant test asserts
2013-10-19 22:17:08 +02:00
Stein Magnus Jodal
c850ed2698
Merge branch 'develop' into feature/search-by-albumartist
...
Conflicts:
tests/backends/local/library_test.py
2013-10-19 22:15:50 +02:00
Stein Magnus Jodal
7d874873bd
local: Include albumartist in 'any' searches
2013-10-19 22:14:53 +02:00
Stein Magnus Jodal
033e3ab813
jsonrpc: Test application error responses again
...
The test was modified to not fail after a refactoring, making it not test what
it was intended to test at all. This reverts the changes and updates the test
in another way, keeping the original intention.
2013-10-19 20:53:02 +02:00
Stein Magnus Jodal
d7552b2fe2
tests: Formatting
2013-10-19 20:53:02 +02:00
Stein Magnus Jodal
d9921d9127
core.tracklist: Test changed index() behavior
2013-10-19 20:53:01 +02:00
Javier Domingo Cansino
677c61f398
tests: Rename local tests to describe that they are testing local providers and not core controllers
2013-10-18 16:12:38 +02:00
Javier Domingo Cansino
e9c20d2e59
Correcting flake error on unused import
2013-10-15 12:11:01 +02:00
Javier Domingo Cansino
1d4ff4c9c6
Merging upstream changes in tidy-up-core
2013-10-15 09:37:54 +02:00
Stein Magnus Jodal
76b70aa0c5
mpd: Make 'list' support 'albumartist' key
2013-10-12 00:16:20 +02:00
Stein Magnus Jodal
ccbae310c6
local: Add albumartist support to search/find_exact
2013-10-12 00:16:20 +02:00
Thomas Adamcik
adecba40e5
Merge pull request #531 from jodal/feature/merge-base-backend-and-local-tests
...
tests: Merge BaseBackend and LocalBackend tests
2013-10-11 14:56:18 -07:00
Stein Magnus Jodal
3c53c1ddcd
tests: Merge BaseBackend and LocalBackend tests
2013-10-11 22:17:27 +02:00
Javier Domingo Cansino
686dd5981d
Merging branch develop into tidy-up-core
2013-10-11 10:43:50 +02:00
Stein Magnus Jodal
b539a9c094
mpd: Handle unknown outputid
2013-10-10 10:02:37 +02:00
Stein Magnus Jodal
db892e6974
mpd: Rename muting output to 'Mute'
2013-10-10 09:49:15 +02:00
Stein Magnus Jodal
863f7e0430
mpd: Trigger 'output' idle event on mute_changed()
...
This is required for e.g. ncmpcpp to detect that an enableoutput/disableoutput
command worked, making it possible to toggle the output back without restarting
ncmpcpp.
2013-10-09 23:52:59 +02:00
Stein Magnus Jodal
447864774e
core: Add volume arg to volume_changed() event
...
It was already called with the argument, and both the MPD and HTTP frontends
handled it/expected it. It was just the default implementation in CoreListener
that lacked the argument.
2013-10-09 23:51:01 +02:00
Stein Magnus Jodal
158b2344ff
audio: Add test TODO
2013-10-09 23:29:43 +02:00
Stein Magnus Jodal
c3e8899396
mpd: Test that output enabling/disabling unmutes/mutes audio
2013-10-09 23:28:01 +02:00
Stein Magnus Jodal
6a3e322845
core: Tweak mute docs, add simple test case
2013-10-09 23:24:17 +02:00
Stein Magnus Jodal
56b1d6390c
Merge branch 'develop' into feature/audio-mute
2013-10-09 22:57:16 +02:00
Stein Magnus Jodal
f9a6fa525a
Bump version number for compat with extracted extensions
2013-10-08 08:51:33 +02:00
Stein Magnus Jodal
c589583b74
mpris: Move to external extension
2013-10-07 23:42:07 +02:00
Javier Domingo Cansino
5b5bd342b6
Updating tests to be compliant with the new response (ok)
2013-10-07 13:11:13 +02:00
Thomas Adamcik
2e1971af89
audio: Handle min=max when scaling volumes ( fixes : #525 )
...
Also add gobject.threads_init() so we can run the audio actor test on its own.
2013-10-06 22:24:36 +02:00
Thomas Adamcik
a5e26f9b54
audio: flake8 fixes
2013-10-06 16:57:32 +02:00
Thomas Adamcik
b1b522694e
audio: Fix lots of playlist issues and add tests.
2013-10-06 15:22:17 +02:00
Javier Domingo Cansino
2ac13d9b44
Merge branch 'develop' into tidy-up-core
2013-10-03 09:20:08 +02:00
Stein Magnus Jodal
ba361add4c
Bump version to 0.15.0
2013-09-19 19:30:36 +02:00
Javier Domingo Cansino
8b13270f67
Merge branch 'develop' into tidy-up-core
2013-09-17 12:42:42 +02:00
Stein Magnus Jodal
1a02b4d17f
Remove support for running Python on the mopidy/ dir
...
It doesn't make sense to run Mopidy without extensions registered, thus you'll
need to use setuptools and to run `python setup.py develop` anyway. Doing so
makes running `mopidy` from anywhere in the development virtualenv work,
removing any need for running `python mopidy/`.
2013-09-16 22:13:36 +02:00
Stein Magnus Jodal
e830f31480
Fix too broad truthness test ( fix #501 )
...
This caused TlTracks with tlid=0 to be sent to HTTP clients without the tlid
field.
2013-09-16 21:58:23 +02:00
Stein Magnus Jodal
05d4fa846f
config: Deserialize Secret to unicode ( fix #473 )
...
MPD, Scrobbler, and Spotify extensions have been reviewed for need for changes
due to this, without anything being found.
2013-09-15 23:51:41 +02:00
Javier Domingo Cansino
7ae4adddeb
Merge branch 'develop' into tidy-up-core
2013-09-12 11:41:01 +02:00
Stein Magnus Jodal
9af4290f45
mpd: Accept listall and listallinfo without the URI argument
2013-09-01 23:14:30 +02:00
Javier Domingo Cansino
268c3b7879
tests: correcting indentation
2013-08-13 10:05:01 +02:00
Javier Domingo Cansino
b70cd9e787
tests: moving more tests from playback to tracklist
2013-08-13 09:58:10 +02:00
Javier Domingo Cansino
a7d8af544d
tests: tracklist tests renaming the TracklistController holder from controller to tracklist for test uniformity
2013-08-13 09:41:15 +02:00
Javier Domingo Cansino
7af86d65ac
Merge branch 'develop' into tidy-up-core
...
Git was not correctly identifying the merge and threw a conflict
2013-08-12 13:41:15 +02:00
Javier Domingo Cansino
cd83d7a0d9
tests: Removing accidental print statement in testcase
2013-08-09 10:08:52 +02:00
Javier Domingo Cansino
11d82056a9
core: Merged tracklist_position to index inside TracklistController
...
docs: Updated changelog.rst
2013-08-09 09:15:54 +02:00
Stein Magnus Jodal
5c7a496dc2
Fix flake8 warnings
2013-08-08 21:09:01 +02:00
Javier Domingo Cansino
782a6a7d1f
Renamed tl_track_at_* to more readable names
2013-08-08 17:01:24 +02:00
Javier Domingo Cansino
694db515e4
Merge branch 'develop' into tidy-up-core
2013-08-08 13:19:01 +02:00
Javier Domingo Cansino
6e61f2ef85
Refactoring code to convert tl_track_at_previous() in a function, also recoded
...
tests.
2013-08-07 21:53:46 +02:00
Javier Domingo Cansino
6abcad3e55
Converting tl_track_at_next into a function that takes the track argument.
...
Rewrote tests too.
2013-08-07 21:38:16 +02:00
Javier Domingo Cansino
68ea483c7b
Converted tracklist_position() to be called with the track one wants to have information of,
...
/mopidy/frontends/mpd/protocol/status.py@189 should be checked for gathering a value before
the rest.
2013-08-07 17:50:22 +02:00
Javier Domingo Cansino
4db3999371
Cleanup of PlaybackController to be more specific on the current track and
...
moved those functions to TracklistController, which may control all related
to the tracks. Updated tests too.
2013-08-07 10:44:22 +02:00
Tobias Sauerwein
0a32d89bab
Add test case for scanning empty wav files.
2013-08-06 17:32:53 +02:00
Stein Magnus Jodal
091f8ffdf0
Merge pull request #486 from alzeih/develop
...
Strip invalid characters from playlist names sent through MPD frontend
Fix #474
Fix #480
2013-08-06 03:52:21 -07:00
alzeih
333f1c0dbf
Move tests to *protocol*/stored_playlists_test.py
2013-08-06 22:22:18 +12:00
alzeih
7182f98843
cleanup tests and code
...
- move tests to tests/frontends/mpd/stored_playlists_test.py
stored_playlists_test.py:
- rename test methods names to remove _config
- remove unnecessary imports, setup, teardown, variables
- sort remaining imports
mopidy/frontends/mpd/dispatcher.py:
- remove regex comment
2013-08-06 21:14:23 +12:00
Stein Magnus Jodal
80d122ff92
Merge branch 'develop' of github.com:mopidy/mopidy into develop
...
Conflicts:
docs/changelog.rst
2013-08-05 23:33:08 +02:00
Stein Magnus Jodal
7973acf076
Merge branch 'feature/scanner_fix_deadlock' into develop
...
Fixes #476 , #483
2013-08-05 23:31:27 +02:00
Thomas Adamcik
0ce791f215
Merge branch 'develop' into feature/local-uris
2013-08-05 22:41:37 +02:00
Stein Magnus Jodal
f0b69c3394
Merge remote-tracking branch 'adamcik/feature/visualization' into develop
...
Conflicts:
docs/changelog.rst
2013-08-05 22:41:09 +02:00
alzeih
3f1192e95b
Match MPD implementation and add tests
2013-08-02 13:38:52 +12:00
AlexandreP2101
da86015a2b
Correct typo
2013-08-01 08:47:22 +02:00
Thomas Adamcik
a4d2f28ade
audio: Fix tests with respect to visualizer support
2013-08-01 01:09:01 +02:00
Tobias Sauerwein
3c6a0543f5
Scanner: Fix deadlock on incorrectly identified files
2013-07-31 23:52:24 +02:00
Alexandre Petitjean
c66e2a5b0f
add some tests about optionnal integer and optionnal+choices string
2013-07-31 23:11:29 +02:00
Thomas Adamcik
6ac62c6869
local: Review fixes.
2013-07-30 22:59:22 +02:00
Thomas Adamcik
18ed7c6279
local: Convert mopidy-local extension to local: uris.
...
- Use local:playlist:<name>, local:track:<path> and local:search uris
- Adds LocalPlaybackProvider which translates to file uris.
- Switches to storing actual uris in playlists - so local: urls and not
file:// or plain paths.
- Moved file:// to streaming plugin
- Cleaned up tests and imports for these changes.
2013-07-30 00:40:12 +02:00
Thomas Adamcik
6818e20218
utils: Convert path_to_uri to single argument
2013-07-30 00:23:23 +02:00
Thomas Adamcik
af707dfdbb
utils: Switch to urlparse for file-uri/path handling
2013-07-30 00:23:23 +02:00
Tobias Sauerwein
d1051e4f18
Removed unnecessary whitespaces.
2013-07-26 12:30:02 +02:00
Tobias Sauerwein
a372df8333
Scanner: Add disc number to album and track models ( fixes #318 )
2013-07-26 12:20:29 +02:00
Stein Magnus Jodal
579a93437f
mpd: Allow full MPD queries to 'count'
...
Fix hechtus/mopidy-gmusic#1
2013-07-09 11:48:11 +02:00
Stein Magnus Jodal
99eed0e6b8
mpd: Allow 'count' without quotes around the 'tag' param
...
Fix hechtus/mopidy-gmusic#1
2013-07-09 11:22:45 +02:00
Stein Magnus Jodal
0a61b4642e
Merge branch 'master' into develop
...
Conflicts:
docs/changelog.rst
2013-07-01 11:53:45 +02:00
Stein Magnus Jodal
cb561519db
Bump version number to 0.14.2
2013-07-01 11:50:06 +02:00
Stein Magnus Jodal
d6a1e13ed6
tests: Use utf-8 when encoding our test data paths to bytes
2013-06-27 00:25:25 +02:00
Stein Magnus Jodal
2ad1bb8bb3
config: Raise ValueError if Path is asked to serialize unicode
...
If we accept unicode and try to encode using sys.getfilesystemencoding() then
it may work most of the time, but will fail if we get non-ASCII chars in the
unicode string and the file system encoding is e.g. ANSI-something because the
locale is C. Thus, I figure it is better to always fail if we try to serialize
Path from unicode strings. Paths should be maintained as bytes all the time.
2013-06-27 00:08:05 +02:00
Thomas Adamcik
71618f840f
scanner: Fixing review comments.
2013-05-22 20:36:39 +02:00
Thomas Adamcik
351589c6c8
path: Add find_uris version of find_files
2013-05-20 22:42:31 +02:00
Thomas Adamcik
c59f488b11
scanner: Pass in files to scan
2013-05-20 01:42:48 +02:00
Thomas Adamcik
802e6ad5ed
scanner: Add last_modified to scanner data
2013-05-20 01:10:11 +02:00
Thomas Adamcik
855d03c81e
local: start reading mtime from tag caches
2013-05-20 00:58:43 +02:00
Stein Magnus Jodal
94ab12b13c
commands: Update override parsing tests
2013-04-30 23:42:53 +02:00
Stein Magnus Jodal
de84fdfef4
Remove hacks required by #302 to run on older Python 2.6.x
2013-04-29 19:52:29 +02:00
Stein Magnus Jodal
52ee456692
tests: Import unittest directly from the stdlib
2013-04-29 19:45:25 +02:00
Stein Magnus Jodal
2d80621b70
tests: Remove unittest2
2013-04-29 19:26:07 +02:00
Stein Magnus Jodal
a401ecb769
Bump version number to 0.14.1
2013-04-28 23:45:29 +02:00
Thomas Adamcik
64465d318d
config: Ensure that overrides are bytes
2013-04-28 23:31:41 +02:00
Thomas Adamcik
9974f77f1b
config: Serialize unicode to bytes using sys.getfilesystemencoding()
2013-04-28 23:31:41 +02:00
Stein Magnus Jodal
33378b81f6
Bump version number to 0.14
2013-04-28 01:33:35 +02:00
Thomas Adacmik
9fab339941
config: Add preliminary handling of parse errors
2013-04-28 00:25:28 +02:00
Thomas Adacmik
c5b036f988
config: Add test config with non-ascii
2013-04-28 00:05:36 +02:00
Thomas Adacmik
085b44e52f
path: Update with respect to review comments in #427
2013-04-27 02:21:27 +02:00
Thomas Adamcik
a7b6ff7b18
path: Disallow unknown substitutions in expand_path
2013-04-25 22:39:07 +02:00
Thomas Adamcik
ac7edad86d
config/path: Pass in expanded value in expanded path type
2013-04-25 22:39:06 +02:00
Thomas Adamcik
160a70e6df
path: Only accept bytes as paths
2013-04-25 21:08:33 +02:00
Thomas Adamcik
2f8bc32c14
config: Remove ExtensionConfigSchema
2013-04-24 23:39:14 +02:00
Thomas Adamcik
b7232797ea
config/ext: Accept unicode defaults
2013-04-24 23:31:39 +02:00
Stein Magnus Jodal
004fe6dbf8
path: Handle XDG paths as bytes, not unicode
2013-04-23 23:18:16 +02:00
Stein Magnus Jodal
48dfcf6fd1
deps: Survive exceptions from pkg_resources
2013-04-18 18:05:55 +02:00
Nick Steel
28b00dbea1
Merge branch 'develop' into fix/mpd-disambiguated-playlist-not-found
2013-04-17 21:00:58 +01:00
Thomas Adamcik
c84cb95c3f
Merge pull request #418 from jodal/feature/show-deps
...
Update --show-deps to list deps of extensions
2013-04-16 14:33:11 -07:00
Stein Magnus Jodal
07e6d11850
deps: Remove old manual deps checkers
2013-04-16 22:48:30 +02:00
Stein Magnus Jodal
609b6ace85
deps: Look up deps in pkg_resources
2013-04-16 22:48:29 +02:00
Stein Magnus Jodal
5de80228ea
deps: Output one dep per line
2013-04-16 22:48:29 +02:00
Thomas Adamcik
cde84748f7
config: Create config.format and switch to just serialize on schemas
2013-04-16 22:36:58 +02:00
Thomas Adamcik
d8f6886311
config: Set missing/invalid keys to none
2013-04-16 22:19:34 +02:00
Thomas Adamcik
f0131fdc93
config: Fix serialization of none
2013-04-16 21:37:55 +02:00
Thomas Adamcik
ee40f0385a
config: Remove format from types API
2013-04-16 21:37:54 +02:00
Thomas Adamcik
211379a01c
config: Unknown loglevels should serialize to blank string
2013-04-16 00:13:57 +02:00
Thomas Adamcik
78d3888dd1
config: Remove ConfigErrors expception
2013-04-15 23:09:19 +02:00
Thomas Adamcik
51f89017fe
config: Fix handling of None in Secret
2013-04-15 21:16:19 +02:00
Thomas Adamcik
f5cd806dc5
config: Rename convert to deserialize
2013-04-15 21:16:19 +02:00
Thomas Adamcik
e4873c4516
config: Return convereted values and errors
2013-04-15 21:16:18 +02:00
Nick Steel
cecc0f621f
Extra MPD stored_playlist tests for duplicate names
2013-04-14 23:18:53 +01:00
Thomas Adamcik
ee57eb58a3
config: Strict config value init kwargs, also adds Secret
2013-04-15 00:07:31 +02:00
Thomas Adamcik
4826dc7cac
config: Support lists in required validator
2013-04-15 00:07:07 +02:00
Nick Steel
3d5894fa3b
Define a uri for all playlists used in the MPD stored_playlists tests.
2013-04-14 23:03:19 +01:00
Thomas Adamcik
805733a2aa
config: Make tests discoverable and fix broken ones
2013-04-14 23:52:39 +02:00
Thomas Adamcik
d5b8f2ab02
config: Make List use proper encode/decode helpers
2013-04-14 17:50:16 +02:00
Thomas Adamcik
7ed9b8adab
config: Extract encode and decode helpers from String
2013-04-14 17:34:54 +02:00
Thomas Adamcik
9f18d50ab0
config: Fix escapes in string handling
2013-04-14 17:16:17 +02:00
Thomas Adamcik
6b89051b5e
config: Add encoding support to strings
2013-04-14 16:15:58 +02:00
Stein Magnus Jodal
65f14a9cc4
exc: Remove OptionalDependencyError
...
It is no longer needed as the extension loading mechanisms verifies the
environment and presence of dependencies before it tries to import modules that
would cause ImportErrors if optional dependencies are missing.
2013-04-14 11:26:16 +02:00
Stein Magnus Jodal
809b165966
exc: Remove unused SettingsError
2013-04-14 11:06:45 +02:00
Stein Magnus Jodal
f38b806133
utils: Remove unused importing utils
2013-04-14 10:54:26 +02:00
Thomas Adamcik
943a3097a9
config: Update validate to use schema.name
2013-04-13 22:37:22 +02:00
Thomas Adamcik
6e42a381cd
config: Add name to schemas
2013-04-13 21:46:15 +02:00
Thomas Adamcik
63003abb2e
config: Flake8 fixes
2013-04-13 20:40:13 +02:00
Thomas Adamcik
1ebc265235
Merge branch 'develop' into feature/reshuffle-config
...
Conflicts:
mopidy/backends/local/__init__.py
mopidy/backends/spotify/__init__.py
mopidy/backends/stream/__init__.py
mopidy/config.py
mopidy/frontends/http/__init__.py
mopidy/frontends/mpd/__init__.py
mopidy/frontends/mpris/__init__.py
mopidy/frontends/scrobbler/__init__.py
mopidy/utils/config.py
tests/config/types_test.py
2013-04-13 01:25:38 +02:00
Thomas Adamcik
067cc4c112
config: Add basic validate tests
2013-04-13 01:18:26 +02:00
Thomas Adamcik
c5f8e1da19
config: Add parse_override test
2013-04-13 00:53:19 +02:00
Thomas Adamcik
51afbe19e1
config: Start adding basic data loading test
2013-04-13 00:47:50 +02:00
Stein Magnus Jodal
6076a0f117
Fix flake8 warnings
2013-04-13 00:28:45 +02:00
Thomas Adamcik
66be2dc551
config: Rename mopidy.config.values to types
2013-04-11 23:30:29 +02:00
Thomas Adamcik
a5f2dc924c
config: Review fixes
2013-04-11 22:26:22 +02:00
Thomas Adamcik
d90a977a3b
config: Move everything to mopidy.config sub-modules
2013-04-11 22:24:27 +02:00
Stein Magnus Jodal
3033b1db5f
Merge branch 'develop' into pr/396
...
Conflicts:
mopidy/frontends/mpd/dispatcher.py
2013-04-09 23:37:17 +02:00
Stein Magnus Jodal
016b2db69b
mpd: Start numbering of duplicate playlist names at 2
2013-04-09 23:35:00 +02:00
Stein Magnus Jodal
24271681c9
mpd: Fix flake8 warnings
2013-04-09 23:33:19 +02:00
Thomas Refis
5af26a226e
mpd: added a test to check playlists names uniqueness
2013-04-09 19:25:52 +02:00
Stein Magnus Jodal
02f9db4518
path: Let get_or_create_file() create missing dirs
2013-04-09 12:40:28 +02:00
Stein Magnus Jodal
40dd539d06
path: Test get_or_create_file()
2013-04-09 12:38:47 +02:00
Stein Magnus Jodal
41d7ae9a2c
Replace 'folder' with 'dir'
2013-04-08 21:13:59 +02:00
Stein Magnus Jodal
f9ed1ba4d3
mpd: Rename 'music_path' to 'music_dir'
2013-04-08 20:58:34 +02:00
Stein Magnus Jodal
3339b79c1e
local: Rename 'music_path' to 'music_dir', 'playlist_path' to 'playlists_dir'
2013-04-08 20:58:17 +02:00
Stein Magnus Jodal
638ea8cd27
Merge branch 'develop' into feature/use-new-config
2013-04-08 09:59:36 +02:00
Thomas Adamcik
28d3b265c2
Merge branch 'develop' into feature/config-path
...
Conflicts:
mopidy/backends/spotify/__init__.py
2013-04-07 22:02:32 +00:00
Thomas Adamcik
4f0e1e448c
config: Add path config value tests
2013-04-07 22:01:34 +00:00
Stein Magnus Jodal
63b7260c01
settings: Remove settings utils
2013-04-07 00:41:09 +02:00
Stein Magnus Jodal
e92a7628f2
settings: Remove SettingsProxy at mopidy.settings
2013-04-07 00:36:41 +02:00
Stein Magnus Jodal
42707f50df
audio: Use new config system
2013-04-07 00:08:40 +02:00
Stein Magnus Jodal
1ca6ffc6fb
mpd: Fix two test failures
2013-04-06 23:47:03 +02:00
Stein Magnus Jodal
81b1e10c1a
Merge branch 'develop' into feature/use-new-config
...
Conflicts:
mopidy/frontends/scrobbler/actor.py
2013-04-06 01:50:15 +02:00
Thomas Adamcik
5a79b65d47
settings: Remove did you mean.
2013-04-05 23:33:27 +02:00
Thomas Adamcik
bd3d8f6932
config: Steal did you mean code from settings.
2013-04-05 23:33:27 +02:00
Stein Magnus Jodal
c452f0115a
mpd: Use new config system
2013-04-05 17:18:12 +02:00
Stein Magnus Jodal
8a8a78e025
http: Use new config system
2013-04-05 16:59:18 +02:00
Stein Magnus Jodal
bcc7c3a890
mpris: Use new config system
2013-04-05 16:59:18 +02:00
Stein Magnus Jodal
775b276169
local: Use new config system
2013-04-05 16:59:18 +02:00
Thomas Adamcik
73fb143f45
config: String escape strings
2013-04-03 01:00:34 +02:00
Stein Magnus Jodal
f9fb30c76c
main/settings: Remove --interactive support
2013-04-03 00:16:37 +02:00
Stein Magnus Jodal
6c4ec7e0c2
main: Remove support for --gst-* and --help-gst
...
Use GStreamer's environment variables instead, e.g. GST_DEBUG=3.
2013-04-03 00:14:05 +02:00
Thomas Adamcik
0d30db7e5f
config: More review fixes and fixed help test.
2013-04-02 23:32:36 +02:00
Thomas Adamcik
e226ddd652
config/ext: Remove ext. prefix from configs.
2013-04-02 22:12:00 +02:00
Thomas Adamcik
3b8fe2fd9f
config: Remove old list settings and mask secret code.
2013-04-02 19:37:51 +02:00
Thomas Adamcik
77cdb5b065
config: Add config based list_settings_callback
2013-04-02 19:33:26 +02:00
Thomas Adamcik
29a4ff040e
config: Make list return tuples so we get imuttable data.
2013-04-02 19:19:24 +02:00
Thomas Adamcik
dcd0d7e813
ext: Rename ext_name to name and provide ext_name property that gives ext.$name
2013-04-02 19:16:49 +02:00
Thomas Adamcik
6f39bde566
config: Start passing dummy config explicitly to audio/backends/frontends.
2013-04-02 19:14:46 +02:00
Stein Magnus Jodal
7d78d02d59
ext: Add both dist_name and ext_name to Extension class
2013-04-02 12:04:03 +02:00
Stein Magnus Jodal
12ff51ceba
ext: Replace validate_config() with get_config_schema()
2013-04-02 11:34:33 +02:00
Thomas Adamcik
6c5ac28034
config: Update test names for consistency.
2013-04-01 23:40:05 +02:00
Thomas Adamcik
98269f4ed1
config: Add optional setting to config values and improve tests.
2013-04-01 23:24:42 +02:00
Thomas Adamcik
5283d1e2b2
main: Add ConfigError test.
2013-04-01 21:35:01 +02:00
Thomas Adamcik
50980723f8
Merge branch 'develop' into feature/config
2013-04-01 21:25:07 +02:00
Thomas Adamcik
3509ec4b37
config: Address review comments.
2013-04-01 21:21:59 +02:00
Thomas Adamcik
b4c553e201
config: Add LogLevelConfigSchema.
2013-04-01 20:33:22 +02:00
Thomas Adamcik
980792e527
config: Add ExtensionConfigSchema.
2013-04-01 20:23:34 +02:00
Stein Magnus Jodal
aa1f8199c2
Remove the FRONTENDS setting
2013-04-01 20:22:29 +02:00
Stein Magnus Jodal
74788a2ccb
Remove the BACKENDS setting
2013-04-01 20:14:20 +02:00
Thomas Adamcik
0535084162
config: Add config schema and tests.
...
Config schemas are used to group config values and check that each of them is
deserialized corretly, that none are missing and that there are no unkown keys
present.
2013-04-01 20:14:04 +02:00
Stein Magnus Jodal
6345022cfc
Move frontend/backend import into methods
2013-04-01 19:47:24 +02:00
Thomas Adamcik
66c067aa96
config: Add Hostname and Port ConfigValues and tests.
2013-04-01 14:21:44 +02:00
Thomas Adamcik
ab26072dff
config: Switch to non context manager version of assertRaises
2013-04-01 14:16:02 +02:00
Thomas Adamcik
6af8b4b090
config: Add LogLevel ConfigValue and tests.
2013-04-01 14:02:28 +02:00
Thomas Adamcik
d46f926f14
config: Add List ConfigValue and tests.
2013-04-01 13:46:13 +02:00
Thomas Adamcik
452cf839c4
config: Add Boolean ConfigValue and tests.
2013-04-01 13:38:59 +02:00
Thomas Adamcik
21d0a938f9
config: Add Integer ConfigValue and tests.
2013-04-01 13:31:15 +02:00
Thomas Adamcik
7cb68a41ac
config: Improve validate error messages and fix handling of non-string choices.
2013-04-01 13:29:32 +02:00
Thomas Adamcik
119644c186
config: Add String config value and tests.
2013-04-01 13:20:33 +02:00
Thomas Adamcik
c22f0f5f9d
config: Add ConfigValue base class and tests.
2013-04-01 13:07:05 +02:00
Thomas Adamcik
ba425d8ccb
config: Start adding basic validators + tests for new config values.
2013-04-01 13:07:05 +02:00
Stein Magnus Jodal
64b0cc7b98
ext: Support multiple frontends/backends in an extension
2013-04-01 11:30:07 +02:00
Stein Magnus Jodal
0ec989d2cb
ext: Add ExtensionError exception class
2013-04-01 11:11:37 +02:00
Stein Magnus Jodal
059147723b
tests: Test existing exception classes
2013-04-01 11:08:05 +02:00
Stein Magnus Jodal
f89f4151b0
ext: Add Extension base class
2013-04-01 11:02:02 +02:00
Stein Magnus Jodal
d0082111b1
Bump version number to 0.13.0
2013-03-31 16:52:37 +02:00
Thomas Adamcik
6283c6ee9b
Merge pull request #363 from jodal/feature/expose-uri-schemes-to-http-clients
...
Expose uri schemes to http clients
2013-03-31 03:55:59 -07:00
Stein Magnus Jodal
06c7d8ea46
Merge branch 'develop' into feature/limit-search-by-uri-root
...
Conflicts:
docs/changes.rst
2013-03-31 12:45:31 +02:00
Stein Magnus Jodal
bfd2010639
core: Let tracklist.add() lookup tracks by URI
2013-03-31 00:13:59 +01:00
Stein Magnus Jodal
2abce2af38
core: Limit search to backends matching URI roots
...
Fixes #337
2013-03-30 22:20:19 +01:00
Stein Magnus Jodal
1704828504
backends: Make search/find_exact take a query dict instead of kwargs
2013-03-30 22:14:33 +01:00
Stein Magnus Jodal
e6460b6945
jsonrpc: Handle Pykka's CallableProxy objects as regular methods
2013-03-30 21:01:01 +01:00
Zan Dobersek
b2657566f4
Update the song1.ogg file
...
Provide the Ogg file that matches the MP3 file (i.e. the file from which it was
converted) in duration, specifically 4680 milliseconds.
(cherry picked from commit e42c359821c410f10251ead492659a1f9563d2d7)
2013-03-30 01:55:53 +01:00
Zan Dobersek
7c115076b0
Add test coverage for scanning of Ogg files
...
Provide a song1.ogg audio file, converted from the tests/data/scanner/simple/song1.mp3
file, and perform the same test checks on its scanned data that are performed for
song1.mp3. The expected results are the same except for a small difference in the
reported duration.
(cherry picked from commit 61aa28f8a562f0b0722e2b3414677da82588fdb8)
2013-03-30 01:55:33 +01:00
Stein Magnus Jodal
49c8062ba6
mpris: Add discNumber support
2013-03-23 20:58:22 +01:00
Stein Magnus Jodal
50cce23d82
mpris: Add artUrl support
2013-03-23 20:46:43 +01:00
Stein Magnus Jodal
c45db5388a
tests: Use audio instancee, not module
2013-03-19 23:49:46 +01:00
Stein Magnus Jodal
02b845bd4b
Revert "Merge pull request #231 from adamcik/feature/end-of-track"
...
This reverts commit 1cf9826f87 , reversing
changes made to 711dbe8738 .
2013-03-19 23:23:14 +01:00
Stein Magnus Jodal
71e25e751d
Merge branch 'master' into develop
...
Conflicts:
docs/changes.rst
mopidy/audio/utils.py
mopidy/backends/stream/actor.py
tests/backends/base/events.py
2013-03-12 21:09:14 +01:00
Stein Magnus Jodal
0318e6e47c
Bump version number to 0.12.0
2013-03-12 21:03:48 +01:00
Thomas Adamcik
692bcae8e4
core: Update tests with cases for filtering out None results.
2013-03-12 20:23:39 +01:00
Thomas Adamcik
1abab8c907
tests: Pass audio actor proxy to backends not audio module
2013-03-12 20:23:08 +01:00
Stein Magnus Jodal
d3e41dc5e2
tests: Add better error message to debug test failure
2013-03-12 20:09:31 +01:00
Stein Magnus Jodal
a36c94fcba
Fix one more kwargs dict ( #302 )
2013-03-12 20:09:21 +01:00
Stein Magnus Jodal
e0f220921e
models: Support serialization of lists of strings
2013-03-12 20:09:05 +01:00
Stein Magnus Jodal
d2a51f7128
models: Add Album.num_discs ( #286 )
2013-03-12 20:08:52 +01:00
Stein Magnus Jodal
f3ccf871e5
models: Add Track.disc_no ( #286 )
2013-03-12 20:08:44 +01:00
Stein Magnus Jodal
bb9ef63a42
models: Add Album.images field ( #263 )
2013-03-12 20:08:24 +01:00
Stein Magnus Jodal
04b24b4a37
core: Add 'include_tracks' argument to 'get_playlists()'
...
Conflicts:
docs/changes.rst
2013-03-12 20:07:11 +01:00
Stein Magnus Jodal
9749f66972
Use bytestrings for the keys of **kwargs dicts
...
Python < 2.6.5rc1 does not work with unicode keys. Fixes #302 .
2013-03-12 20:01:27 +01:00
Stein Magnus Jodal
804a945e42
tests: Use DummyAudio instead of mocks
2013-02-24 22:29:04 +01:00
Thomas Adamcik
63df51ac73
tests: Pass audio actor proxy to backends not audio module
2013-01-08 23:20:41 +01:00
Stein Magnus Jodal
c0c67e4835
tests: Add better error message to debug test failure
2013-01-07 21:51:11 +01:00
Stein Magnus Jodal
19f4ea8889
Fix one more kwargs dict ( #302 )
2013-01-07 21:50:40 +01:00
Thomas Adamcik
30412e93b6
Merge pull request #315 from jodal/feature/num-discs-and-disc-no
...
Add Album.num_discs and Track.disc_no
2013-01-07 11:24:54 -08:00
Stein Magnus Jodal
af10e642f2
models: Support serialization of lists of strings
2013-01-06 22:37:37 +01:00
Stein Magnus Jodal
1a0842117f
models: Add Album.num_discs ( #286 )
2013-01-06 22:07:06 +01:00
Stein Magnus Jodal
99593fd357
models: Add Track.disc_no ( #286 )
2013-01-06 22:07:06 +01:00
Stein Magnus Jodal
6599094b1e
models: Add Album.images field ( #263 )
2013-01-06 21:43:52 +01:00
Stein Magnus Jodal
2eb9ad710a
core: Add 'include_tracks' argument to 'get_playlists()'
2013-01-06 21:04:27 +01:00
Thomas Adamcik
3857eaa840
core: Unbreak end of track related tests.
...
We should only be hooking up end of track when an audio instance is passed in.
Additionally the tracklist tests where wrongly sending in the audio module
instead of the mock audio.Audio instance.
2013-01-05 23:32:35 +01:00
Thomas Adamcik
0d7b7e29a3
audio: Remove test for error handling that no longer happens.
2013-01-05 21:35:41 +01:00
Thomas Adamcik
6d1f84ad3c
Merge branch 'develop' into feature/end-of-track
...
Conflicts:
mopidy/audio/actor.py
mopidy/backends/spotify/playback.py
2013-01-05 18:47:16 +01:00
Stein Magnus Jodal
928034222a
Merge branch 'master' into develop
...
Conflicts:
docs/changes.rst
2013-01-03 23:55:00 +01:00
Thomas Adamcik
b78d5eddac
Merge branch 'develop' into feature/end-of-track
...
Conflicts:
mopidy/audio/actor.py
mopidy/backends/spotify/playback.py
2013-01-03 16:12:09 +01:00
Stein Magnus Jodal
d34ba24cfe
Use bytestrings for the keys of **kwargs dicts
...
Python < 2.6.5rc1 does not work with unicode keys. Fixes #302 .
2013-01-03 10:04:05 +01:00
Thomas Adamcik
f1bd092e63
core: Update tests with cases for filtering out None results.
2013-01-01 17:31:06 +01:00
Thomas Adamcik
4f11ac77ae
settings: Update settings validator to support empty iterables.
2013-01-01 17:30:24 +01:00
Stein Magnus Jodal
c37ce8751e
Release v0.11.1
2012-12-24 20:23:51 +01:00
Stein Magnus Jodal
f0ba9dd31c
Bump version number to 0.11.0
2012-12-24 10:48:29 +01:00
Stein Magnus Jodal
a1cfc74d29
Merge branch 'develop' into feature/mpd-album-artist-search-results
...
Conflicts:
docs/changes.rst
2012-12-23 18:49:51 +01:00
Stein Magnus Jodal
58cbbe8cb3
Merge pull request #287 from jodal/feature/search-result-model
...
Add SearchResult model
2012-12-23 09:47:11 -08:00
Stein Magnus Jodal
5d707e3918
settings: Fail if BACKENDS/FRONTENDS setting isn't iterable ( fixes #278 )
2012-12-23 15:42:49 +01:00
Stein Magnus Jodal
ce318316a3
mpd: Don't restart current track before seek
2012-12-23 12:20:34 +01:00
Stein Magnus Jodal
54662479ef
mpd: Limit use of fake tracks in 'find` responses
...
If searching for exact artist, don't include fake artist tracks.
If searching for exact album, don't include fake album tracks.
This makes sure that ncmpcpp's media library doesn't include the magic
artist-track in an artist's album listing, and that it doesn't include the
magic album-track in an album's track listing.
2012-12-22 12:49:27 +01:00
Stein Magnus Jodal
04be75ed97
mpd: Add album date to 'fake' tracks
2012-12-22 02:12:07 +01:00
Stein Magnus Jodal
4f4754c573
mpd: Test 'list' response content
2012-12-22 01:40:51 +01:00
Stein Magnus Jodal
455f0145e7
mpd: Include artists and albums in search results
2012-12-21 23:10:20 +01:00
Stein Magnus Jodal
b0ba2040df
Return SearchResult objects from find_exact() and search()
...
This applies to both backends and core.
2012-12-21 22:05:20 +01:00
Stein Magnus Jodal
52b20b3297
models: Add SearchResult model
2012-12-21 00:30:20 +01:00
Stein Magnus Jodal
242df28114
mpd: Support search by date ( #272 )
2012-12-20 21:34:06 +01:00
Stein Magnus Jodal
02c8ea53d7
local: Add search-by-date support
2012-12-20 21:30:09 +01:00
Stein Magnus Jodal
53f3ef488c
local: Reorder search filters and tests
2012-12-20 21:30:08 +01:00
Stein Magnus Jodal
147bb5e983
local: Read track date from tag cache
2012-12-20 21:30:08 +01:00
Stein Magnus Jodal
f9dc3e3d81
mpd: Rename test file to match src file
2012-12-20 00:48:04 +01:00
Stein Magnus Jodal
6a5ceeec50
audio: Test setting of volume with mixer volume max below 100
2012-12-19 19:49:23 +01:00
Stein Magnus Jodal
ea37cf1a44
core: Include the TlTrack in track_playback_* events
2012-12-19 17:06:04 +01:00
Stein Magnus Jodal
e176425b91
core: Test that 'seeked' event includes 'time_position'
2012-12-19 16:35:52 +01:00
Stein Magnus Jodal
9602fff8bb
tests: Formatting
2012-12-19 16:33:59 +01:00
Stein Magnus Jodal
c5ac7aeb77
core: Include new volume level in volume_changed event
2012-12-19 16:31:58 +01:00
Stein Magnus Jodal
0d7b22b745
tests: Don't need audio actor for code event tests
2012-12-19 14:59:05 +01:00
Stein Magnus Jodal
478c8ea4d3
Merge pull request #281 from trygveaa/volume_changed
...
core: Trigger volume changed event in set_volume
2012-12-19 05:34:21 -08:00
Stein Magnus Jodal
12942631bf
mpd: Change name of output from 'None' to 'Default'
2012-12-18 23:18:51 +01:00
Trygve Aaberge
88b3bd4934
tests: Test that set volume triggers volume changed
2012-12-18 18:09:00 +01:00
Stein Magnus Jodal
6008a53027
tests: Update JSON-RPC introspection test to match changes core API
2012-12-17 15:42:12 +01:00
Stein Magnus Jodal
59ccc207ea
core: Make all methods callable without kwargs, e.g. from Mopidy.js
2012-12-17 15:38:32 +01:00
Stein Magnus Jodal
cc2510bd56
tests: Rename core.playlist tests so it is included in test runs
2012-12-17 15:19:52 +01:00
Stein Magnus Jodal
5122a254aa
models: Specify time zone of Playlist.last_modified as UTC
2012-12-16 20:22:42 +01:00
Thomas Adamcik
e00dd958b9
Merge pull request #277 from jodal/feature/mpd-0.17
...
Implement MPD protocol changes from MPD 0.17
2012-12-15 14:56:05 -08:00
Stein Magnus Jodal
a599362863
Remove unused yappi profiler
2012-12-15 23:46:52 +01:00
Stein Magnus Jodal
b43fc2ebe9
mpd: Stub channel commands
2012-12-15 01:44:20 +01:00
Stein Magnus Jodal
b95c8032de
mpd: Add 'searchaddpl' command
2012-12-15 01:18:13 +01:00
Stein Magnus Jodal
9b1dfa6978
mpd: Add 'searchadd' command
2012-12-15 00:40:33 +01:00
Stein Magnus Jodal
6ac2c249b5
mpd: Add 'findadd' command
2012-12-15 00:39:52 +01:00
Stein Magnus Jodal
50cbe5f384
mpd: Add range support to 'load' command
2012-12-14 22:13:08 +01:00
Stein Magnus Jodal
49d585a97c
mpd: Add 'config' command
2012-12-14 12:08:17 +01:00
Stein Magnus Jodal
ac537a63c7
mpd: Add 'seekcur' command
2012-12-14 11:53:44 +01:00
Stein Magnus Jodal
2b54837c64
Bump version number to 0.10.0
2012-12-13 00:16:33 +01:00
Stein Magnus Jodal
a221036e5a
tests: Fix error message
2012-12-12 23:05:12 +01:00
Thomas Adamcik
e00b590ae9
Detangle EOT and EOS.
...
This commit tries to detangle EOS from EOT which we have incorrectly
intermingled. EOS events should only be happening at the end of the playlist
when we are about to stop. EOT handling has been removed / broken in this
change, and will need to be re-added with proper tests.
2012-12-12 22:57:19 +01:00
Stein Magnus Jodal
b76e27a62b
mpd: Revert full URI in tag cache test as well
2012-12-12 15:54:04 +01:00
Stein Magnus Jodal
905ceeb72a
utils: find_files() returns bytestrings
2012-12-12 13:45:37 +01:00
Stein Magnus Jodal
b5d9dc10a7
utils: Handle paths with non-UTF-8 encodings
...
- path_to_uri() encodes unicode input as UTF-8 and leaves bytestring input
unchanged before it is converted to file:// URIs.
- uri_to_path() will now always return bytestrings, since we don't know if
there is any non-UTF-8 encoded chars in the file path, and converting it to
unicode would make such paths no longer match the dir or file it was
referring to.
- split_path() will now assume it gets a bytestring in.
2012-12-12 13:45:37 +01:00
Stein Magnus Jodal
f302949ea9
tests: Use empty tag cache in all local backend tests
2012-12-12 13:43:41 +01:00
Stein Magnus Jodal
beac2e80ed
mpd: Use file:// URIs in tag_cache
...
file:// URIs are uriencoded, and will thus conserve the encoding of the file
paths. We cannot just convert file paths in other encodings to UTF-8, because
then we won't find the files we point to.
2012-12-11 10:29:43 +01:00
Stein Magnus Jodal
7f2e2a8faa
scanner: Test invalid date
2012-12-02 15:48:02 +01:00
Stein Magnus Jodal
3473b9c902
scanner: Update test case
2012-12-02 15:45:54 +01:00
Stein Magnus Jodal
3f8b5affe0
tests: Ignore http tests if ws4py is missing
2012-12-01 17:24:34 +01:00
Stein Magnus Jodal
ac6cecd2f8
backends: Add BackendListener.on_event()
2012-12-01 11:21:06 +01:00
Stein Magnus Jodal
959bd6cd84
audio: Add AudioListener.on_event()
2012-12-01 11:20:44 +01:00
Stein Magnus Jodal
ec66cae784
tests: Ignore http tests if cherrypy is missing
2012-12-01 10:48:54 +01:00
Stein Magnus Jodal
5422d85f5b
utils: Include ws4py in --list-deps
2012-12-01 09:58:21 +01:00
Stein Magnus Jodal
9ec53bb3b7
utils: Include cherrypy in --list-deps
2012-12-01 09:56:28 +01:00
Thomas Adamcik
1ee2935867
Merge pull request #235 from jodal/feature/http-frontend
...
HTTP/WebSocket frontend
2012-11-30 19:02:08 -08:00
Stein Magnus Jodal
2edc884e76
http: Override CoreListener.on_event() instead of the specific event handlers
2012-11-30 22:41:13 +01:00
Stein Magnus Jodal
6238f55ae2
core: Add CoreListener.on_event()
...
The `on_event()` method is called on all events. By default, it forwards the
event to the specific event handler methods. It's also a convenient method to
override if you want to handle all events in one place.
2012-11-30 22:39:37 +01:00
Stein Magnus Jodal
37164c6b04
http: Remove empty test file for the WebSocket
...
All the logic has been moved into mopidy.utils.jsonrpc, and all that remains of
mopidy.frontends.http.ws is simple wiring that isn't worth testing.
2012-11-27 23:25:16 +01:00
Stein Magnus Jodal
69ede85959
tests: Exception messages on 2.6 and 2.7 differs
2012-11-25 23:24:04 +01:00
Stein Magnus Jodal
961fce13e5
tests: Make it work on Python 2.6 (try 2)
2012-11-25 23:04:09 +01:00
Stein Magnus Jodal
42981b94b6
tests: dict comp. is not supported in Python 2.6
2012-11-25 22:16:46 +01:00
Stein Magnus Jodal
7d047acc2e
Merge branch 'develop' into feature/http-frontend
2012-11-25 22:04:53 +01:00
Stein Magnus Jodal
160626b364
jsonrpc: Give explicit error if calling method without object path
2012-11-25 21:51:59 +01:00
Stein Magnus Jodal
8f604204da
jsonrpc: Don't allow objects at the root
2012-11-25 21:42:28 +01:00
Stein Magnus Jodal
50814d3929
jsonrpc: Explain why a method wasn't found
2012-11-25 21:23:55 +01:00
Stein Magnus Jodal
609fdc46ca
jsonrpc: Explain why call to private method failed
2012-11-25 21:13:55 +01:00
Stein Magnus Jodal
7f987cb1e2
jsonrpc: Lookup methods using the objects map directly
2012-11-25 20:36:04 +01:00
Stein Magnus Jodal
66d76d38b3
http: Unbreak tests
2012-11-25 09:12:22 +01:00
Stein Magnus Jodal
90663021a4
Merge branch 'feature/json-rpc' into feature/http-frontend
2012-11-25 08:39:20 +01:00
Stein Magnus Jodal
40f4a8181d
jsonrpc: Wrapper takes a mapping between mounts and objects
...
This is analogous to how the inspector takes a mapping between mounts and
classes.
2012-11-25 08:03:26 +01:00
Stein Magnus Jodal
569ee6c5f3
jsonrpc: Add inspector that describes the available API
2012-11-24 00:57:08 +01:00
Stein Magnus Jodal
61d6de2378
jsonrpc: Support methods on the root object
2012-11-22 15:30:34 +01:00
Stein Magnus Jodal
6e2ffb0820
jsonrpc: Make dict returns from plain objects work
2012-11-22 12:11:22 +01:00
Stein Magnus Jodal
b038c4c2db
Add generic JSON-RPC 2.0 object wrapper
...
This can wrap multiple objects, which can be both plain objects and Pykka
actors. To my knowledge, everything in the spec is supported.
2012-11-21 23:51:05 +01:00
Stein Magnus Jodal
db5c671bd4
http: Remove the REST API
2012-11-21 02:10:32 +01:00
Stein Magnus Jodal
532a915db8
Merge branch 'develop' into feature/http-frontend
2012-11-21 02:02:58 +01:00
Stein Magnus Jodal
88eef7de49
Bump version number to 0.9.0
2012-11-21 01:42:51 +01:00
Stein Magnus Jodal
3af3eb5127
mpd: Make 'decoders' return an empty response to please ncmpcpp
2012-11-21 01:29:14 +01:00
Stein Magnus Jodal
39b9429dfc
tests: Use track URIs matching the backend in use
2012-11-21 01:04:11 +01:00
Stein Magnus Jodal
dc24876f66
mpd: Allow bad 'search' requests
2012-11-21 00:49:11 +01:00
Stein Magnus Jodal
5fbb6328d6
mpd: list shouldn't return blank artist names, album names, or dates
2012-11-21 00:48:08 +01:00
Stein Magnus Jodal
72574c1ae0
mpd: listplaylists should not return playlists without a name
2012-11-21 00:32:46 +01:00
Stein Magnus Jodal
8f1b98b306
core: Don't fail when adding tracks after end of tracklist
2012-11-20 22:36:39 +01:00
Stein Magnus Jodal
ae9a257091
Make tracklist.add() only take and return lists
2012-11-20 22:12:09 +01:00
Stein Magnus Jodal
1ed56c9ed7
Use tracklist.add() instead of tracklist.append()
2012-11-20 21:55:51 +01:00
Stein Magnus Jodal
d107b13fcb
core: Remove playback.current_tlid
2012-11-20 21:48:19 +01:00
Stein Magnus Jodal
2f27167677
core: Remove playback.track_at_previous
2012-11-20 21:48:03 +01:00
Stein Magnus Jodal
70d4dba7aa
core: Remove playback.track_at_next
2012-11-20 21:47:44 +01:00
Stein Magnus Jodal
ee8c2ca589
tests: Rename populate_playlist() to populate_tracklist()
2012-11-20 09:24:37 +01:00
Stein Magnus Jodal
bec91284be
mpd: Allow bad 'find' requests
2012-11-20 00:38:53 +01:00
Stein Magnus Jodal
7da2058b65
mpd: Test response for bad 'list' requests
2012-11-20 00:31:41 +01:00
Stein Magnus Jodal
56c4892f46
Merge branch 'develop' into feature/http-frontend
2012-11-20 00:27:19 +01:00
Stein Magnus Jodal
f82d3fca39
Merge branch 'feature/model-serialization' into develop
2012-11-20 00:21:34 +01:00
Stein Magnus Jodal
8c6f04a408
models: Change serialized type marker from '__type__' to '__model__'
2012-11-20 00:21:26 +01:00
Stein Magnus Jodal
693a3d3ec6
models: Model creation with kwarg matching method name should fail
2012-11-19 23:58:16 +01:00
Stein Magnus Jodal
34d444e563
models: Don't allow model deserialization to override methods
2012-11-19 23:35:05 +01:00
Stein Magnus Jodal
eab399357f
Make library.lookup() return a list of tracks
2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
32639ea8de
Replace {tracklist,playlists}.get() with .filter() which always returns a list
2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
3bd9d2096f
tests: Formatting
2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
7df556c9b3
Return lists of tracks from search() and find_exact()
2012-11-19 18:13:14 +01:00
Stein Magnus Jodal
6f0919bda8
style: Fix flake8 warnings
2012-11-19 18:01:31 +01:00
Stein Magnus Jodal
968de84b93
http: Broadcast all events over the WebSocket
2012-11-18 19:02:36 +01:00
Stein Magnus Jodal
62530be8b4
Merge branch 'feature/model-serialization' into feature/http-frontend
2012-11-18 17:31:13 +01:00
Stein Magnus Jodal
3bc4126b45
models: Fix TlTrack deserialization
2012-11-18 17:28:37 +01:00
Stein Magnus Jodal
68e4b207cb
models: Support automatic serialization to and deserialization from JSON
2012-11-18 16:53:26 +01:00
Stein Magnus Jodal
f237736f87
models: Add '__type__' attribute to serialized models
2012-11-18 16:53:09 +01:00
Stein Magnus Jodal
74a6589668
tests: Fix typo in class name
2012-11-18 16:51:33 +01:00
Stein Magnus Jodal
7e3fba0155
Merge branch 'develop' into feature/http-frontend
2012-11-18 09:45:44 +01:00
Stein Magnus Jodal
59919b279c
Merge pull request #244 from jodal/feature/mpris-playlists
...
mpris: Implement the playlists interface (fixes #229 )
2012-11-17 13:37:06 -08:00
Stein Magnus Jodal
15cb291316
tests: Rename test file so that it's executed
2012-11-17 17:10:27 +01:00
Stein Magnus Jodal
5efce8ac76
local: Trigger playlists_loaded() event on playlist load/refresh
2012-11-17 17:09:27 +01:00
Stein Magnus Jodal
b8c7703c79
mpris: Implement the playlists interface ( fixes #229 )
2012-11-17 01:45:24 +01:00
Stein Magnus Jodal
330731a247
core: Forward playlists_loaded() event from backends to frontends
2012-11-17 01:22:25 +01:00
Stein Magnus Jodal
0f6c9a1673
backends: Add BackendListener interface with playlists_loaded() event
2012-11-17 01:22:25 +01:00
Stein Magnus Jodal
426d5aea16
core: Trigger playlists_loaded() after playlist refresh
2012-11-17 00:42:03 +01:00
Stein Magnus Jodal
5526ee5a95
core: Add CoreListener.playlists_loaded() event
2012-11-17 00:42:03 +01:00
Stein Magnus Jodal
4efff4a5a3
core: Trigger playlist_changed() event on create() and save()
2012-11-16 23:50:30 +01:00
Stein Magnus Jodal
fd86b7173c
core: Add playlist to playlist_changed() event
2012-11-16 23:50:01 +01:00
Stein Magnus Jodal
df4d7cd4c9
http: Update to use unicode literals and not cause warnings with flake8
2012-11-16 22:34:36 +01:00
Stein Magnus Jodal
87ba412942
models: Make TlTrack an ImmutableObject
2012-11-16 15:01:37 +01:00
Stein Magnus Jodal
cfac728def
tests: Don't use indexes into TlTracks
2012-11-16 14:57:25 +01:00
Stein Magnus Jodal
0e7f867d67
core: Test tracklist event trigging
2012-11-16 13:54:55 +01:00
Stein Magnus Jodal
d378fd7160
tests: Move events tests from tests/backends/ to tests/core
2012-11-16 11:53:48 +01:00
Stein Magnus Jodal
476df7a14d
core: Add tracklist_changed() event
2012-11-16 11:43:49 +01:00
Stein Magnus Jodal
fff70c46a6
core: Make tracklist.append() return the appended TlTracks
2012-11-16 10:26:45 +01:00
Stein Magnus Jodal
684586dd18
mpris: Update for MPRIS 2.2 compliance
2012-11-15 09:04:21 +01:00
Thomas Adamcik
4d4c560882
Merge pull request #240 from jodal/feature/audio-state-events
...
Audio state events
2012-11-14 15:00:09 -08:00
Stein Magnus Jodal
e1ef73f517
Merge branch 'develop' into feature/http-frontend
2012-11-14 09:35:19 +01:00
Stein Magnus Jodal
3a24deaec3
Rename 'stored playlists' to 'playlists'
2012-11-14 09:23:19 +01:00
Stein Magnus Jodal
87ce7bbe11
audio: Maintain state and trigger events based on GStreamer state changes
2012-11-14 01:49:17 +01:00
Stein Magnus Jodal
76b1fa8e1b
audio: Add state_changed(old_state, new_state) event
2012-11-13 20:31:38 +01:00
Stein Magnus Jodal
42fdaf3ff0
audio: Move tests to make room for more audio tests
2012-11-13 20:26:05 +01:00
Stein Magnus Jodal
dc356a81fd
Merge branch 'feature/rename-cp-to-tracklist' into develop
...
Conflicts:
docs/changes.rst
mopidy/frontends/mpd/protocol/current_playlist.py
2012-11-13 19:09:18 +01:00
Stein Magnus Jodal
cc39853638
mpd: Normalize file/filename filters to uri filters
2012-11-13 11:53:47 +01:00
Stein Magnus Jodal
4f0a708411
mpd: Allow 'file' key to 'search' and 'find'
2012-11-13 11:34:48 +01:00
Stein Magnus Jodal
bba9548b27
Rename 'current playlist' to 'tracklist'
2012-11-13 10:59:48 +01:00
Stein Magnus Jodal
344d5bd49d
Merge pull request #238 from jodal/feature/optional-backend-providers
...
Make all three backend provider types optional
2012-11-13 01:41:18 -08:00
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
92bd599ecf
Update stored playlists controller to support backends without playlists
2012-11-12 22:38:49 +01:00
Stein Magnus Jodal
d748c07daf
Update playback controller to support backends without playback support
2012-11-12 22:19:27 +01:00
Stein Magnus Jodal
6f32d72792
Update the library controller to support backends without a library
2012-11-12 21:41:48 +01:00
Stein Magnus Jodal
86e0eff21d
http: Extend player resource, add tracklist and playlists resources
2012-11-10 20:57:18 +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
f08fba954e
Update to work with current develop
2012-11-03 22:03:26 +01:00
Stein Magnus Jodal
938524e67e
Merge branch 'develop' into feature/stored-playlists-cleanup
2012-11-03 22:02:19 +01:00
Stein Magnus Jodal
d985b8be38
Fix plchanges so it returns nothing when nothing has changed
2012-11-01 23:28:19 +01:00
Stein Magnus Jodal
60112897d2
MPD: Support listplaylist{,info} without quotes around spaceless playlist name ( fixes #218 )
2012-11-01 22:29:11 +01:00
Stein Magnus Jodal
8c9a3d6df2
Slugify local playlist names to make them safe to use in paths ( #217 )
2012-11-01 12:46:29 +01:00
Fred Hatfull
a5b454acc0
Fixes support for MPD find/search by filename
...
Extends `find_exact` and `search` in mopidy.backends.local.library
to support the `filename` query field. This field can get passed in
from the MPD frontend and would break with a `LookupError` when used.
This patch fixes the issue and introduces two new tests to cover the
added functionality.
2012-10-31 23:45:13 -07:00
Stein Magnus Jodal
6c49a7fc52
Make core.stored_playlists.save() support multibackend ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
3d05f3c65f
Change stored_playlists.delete() to accepting an URI ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
f9f6f9394d
Remove stored_playlists.rename() ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
06bcad2db9
Make local.stored_playlists.save() capable of renaming playlists ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
51aab4f138
Make local stored playlists set and use URIs ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
d8378e9284
Set URI on local playlists when reading from disk ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
fd88b974e8
Make core.stored_playlists.refresh() support multibackend ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
8cc1896b9d
Make core.stored_playlists.lookup() support multibackend ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
e2474da1ef
Make core.stored_playlists.create() support multibackend ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
0ddbb4e28a
Make core.stored_playlists.playlists read-only ( #217 )
2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
a679a47212
Minor test updates
2012-10-31 15:27:04 +01:00
Stein Magnus Jodal
ae344e937b
Merge branch 'master' into develop
...
Conflicts:
docs/changes.rst
mopidy/__init__.py
mopidy/audio/__init__.py
mopidy/backends/dummy.py
mopidy/backends/local/__init__.py
mopidy/backends/spotify/__init__.py
mopidy/utils/__init__.py
mopidy/utils/network.py
tests/version_test.py
2012-10-30 18:13:28 +01:00
Stein Magnus Jodal
5d5f0cc6e3
Bump version number to v0.8.1
2012-10-30 17:57:25 +01:00
Stein Magnus Jodal
f1e2cff3e0
Update to work with Pykka 1.0
2012-10-30 16:28:20 +01:00
Stein Magnus Jodal
d60bb57f5f
Test new Album.date attribute
2012-10-30 10:18:40 +01:00
Stein Magnus Jodal
1014c6e373
Include both involved backends in the error message
2012-10-29 10:50:18 +01:00
Stein Magnus Jodal
4a79b559d5
Fail if two backends claims to handle the same URI schema
2012-10-29 10:31:35 +01:00
Stein Magnus Jodal
9a617b1803
Improvements after code review
2012-10-28 20:58:51 +01:00
Stein Magnus Jodal
0641d2d207
Make core.stored_playlists.playlists support multiple backends
2012-10-28 11:10:40 +01:00
Stein Magnus Jodal
a35deec050
Make core.library support multiple backends
2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
c47cec9e65
Make core.playback select backend based on track URI
2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
7b9c682e95
Make core.uri_schemes include URI schemes from all backends
2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
2d92a7a228
Start multiple backends
2012-10-27 14:55:09 +02:00
Stein Magnus Jodal
956655f742
Update tests to use tracks with valid URIs
2012-10-27 14:53:35 +02:00
Stein Magnus Jodal
d685fe554c
Simplify pykka imports
2012-10-26 22:57:41 +02:00
Stein Magnus Jodal
587dde287f
Update to work with Pykka 1.0
2012-10-26 22:32:06 +02:00
Stein Magnus Jodal
c915c197dd
Formatting
2012-10-25 22:49:47 +02:00
Stein Magnus Jodal
8683537816
Don't use command_list as both bool and list ( #211 )
2012-10-17 01:43:22 +02:00
Stein Magnus Jodal
afdc665ac0
Use deps.{platform_info,python_info} in log
2012-10-16 22:26:28 +02:00
Stein Magnus Jodal
5a0529b142
Empty utils/__init__.py
2012-10-16 21:36:51 +02:00
Stein Magnus Jodal
d4f5d02c72
Move MpdSession to a session module
2012-10-16 16:13:23 +02:00
Stein Magnus Jodal
d9d6a3d5b6
Move exceptions to mopidy.exceptions
2012-10-16 16:08:46 +02:00
Stein Magnus Jodal
ac60bcdf8e
Fix all flake8 warnings in tests ( #211 )
2012-10-16 14:43:31 +02:00
Stein Magnus Jodal
c115cf123f
MPD: Use core actor passed to frontend
2012-09-28 00:48:28 +02:00
Stein Magnus Jodal
9fd3e93cb6
MPRIS: Use core actor passed to frontend
2012-09-28 00:48:28 +02:00
Stein Magnus Jodal
706b6c6d3f
Pass core actor to frontends
2012-09-28 00:48:24 +02:00
Stein Magnus Jodal
63cd153b1b
Let NetworkServer pass protocol_kwargs on
2012-09-28 00:48:23 +02:00
Stein Magnus Jodal
e7f08a7a20
Rename mopidy.{listeners.BackendListener => core.CoreListener}
2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
2fdeec9f5a
Move controllers to a new core actor
...
The frontends use the new core actor, while the core actor uses the backend.
This is a step towards supporting multiple backends, where the core actor will
coordinate the backends.
2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
5265609610
MPRIS: New BackendListener.seeked() signature
2012-09-26 22:12:38 +02:00
Stein Magnus Jodal
66f476e85a
Fix typo
2012-09-26 10:08:59 +02:00
Stein Magnus Jodal
81fca7d686
Switch to time position from provider
2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
12d6ce53dd
Send new time position to 'seeked' listeners
2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
28e5ed8b2e
Send old and new state to playback_state_changed listeners
2012-09-25 11:18:26 +02:00
Stein Magnus Jodal
b3f3cfe2a0
Use assert{Less,Greater}[EEqual] in tests
2012-09-25 11:18:26 +02:00
Stein Magnus Jodal
7d4b605ee5
Update version number to 0.8.0
2012-09-20 01:01:38 +02:00
Stein Magnus Jodal
6451519d2a
MPD: Support 'playid 0' without quotes around id
2012-09-20 00:28:30 +02:00
Stein Magnus Jodal
52c7726de2
MPD command 'close' does not return 'OK'
...
Test broke when Pykka actors started processing the actor inbox before
stopping themselves.
2012-09-19 01:50:48 +02:00
Thomas Adamcik
5a47dfe159
Update import style in tests.utils.path
2012-09-16 22:44:15 +02:00
Thomas Adamcik
a707daf458
Add tests for expand_path and fix ordering.
...
Expansions need to happen before abspath is called or else result is wrong.
2012-09-16 22:26:44 +02:00
Thomas Adamcik
6cc57701f9
Update parse_m3u to allow caller to decide what location playlist is relative to.
2012-09-16 19:28:15 +02:00
Thomas Adamcik
7ceb530064
Updated find files to ignore hidden files and folders.
2012-09-16 18:14:11 +02:00
Stein Magnus Jodal
a8d1d41ab3
Use assertIn and assertNotIn in tests
2012-09-15 17:46:25 +02:00
Stein Magnus Jodal
2ba05f9405
Add PlaybackState enum
2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
aab37302a1
Rename mopidy.gstreamer to mopidy.audio
2012-09-14 01:05:42 +02:00
Stein Magnus Jodal
0559213da3
Move backend controllers to mopidy.core
2012-09-13 23:41:20 +02:00
Stein Magnus Jodal
7525cad94c
Let Track.date be an ISO-8601 string
...
This lets us have less precision than full dates. E.g. Spotify tracks only got
release year, not full release date.
The original MPD server regularly expose data like this as "Date: 1977", so we
don't need to fake more precision for MPD's sake.
2012-09-12 23:06:06 +02:00
Stein Magnus Jodal
dbf7030d5b
Fix crash in local backend when looking up unknown path
2012-09-11 23:23:36 +02:00
Stein Magnus Jodal
4bffea8b1f
Test the GStreamer class as an actor
...
The test should use the same interface and code paths as production code.
2012-09-10 00:34:12 +02:00