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