Commit Graph

447 Commits

Author SHA1 Message Date
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
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
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
ccbae310c6 local: Add albumartist support to search/find_exact 2013-10-12 00:16:20 +02:00
Stein Magnus Jodal
3c53c1ddcd tests: Merge BaseBackend and LocalBackend tests 2013-10-11 22:17:27 +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
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
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
855d03c81e local: start reading mtime from tag caches 2013-05-20 00:58:43 +02:00
Stein Magnus Jodal
52ee456692 tests: Import unittest directly from the stdlib 2013-04-29 19:45:25 +02:00
Thomas Adamcik
160a70e6df path: Only accept bytes as paths 2013-04-25 21:08:33 +02:00
Stein Magnus Jodal
41d7ae9a2c Replace 'folder' with 'dir' 2013-04-08 21:13:59 +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
775b276169 local: Use new config system 2013-04-05 16:59:18 +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
74788a2ccb Remove the BACKENDS setting 2013-04-01 20:14:20 +02:00
Stein Magnus Jodal
6345022cfc Move frontend/backend import into methods 2013-04-01 19:47:24 +02: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
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
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
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
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
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
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
f302949ea9 tests: Use empty tag cache in all local backend tests 2012-12-12 13:43:41 +01:00
Stein Magnus Jodal
ac6cecd2f8 backends: Add BackendListener.on_event() 2012-12-01 11:21:06 +01:00