Commit Graph

146 Commits

Author SHA1 Message Date
Stein Magnus Jodal
aaa3b2e93c core.tracklist: Remove redundant if stmt in index() 2013-10-19 20:53:02 +02:00
Stein Magnus Jodal
9c2f6c2f25 core.tracklist: Tweak docstrings 2013-10-19 20:53:01 +02:00
Stein Magnus Jodal
ff89fc58a9 core.tracklist: Remove pylint comment 2013-10-19 20:53:01 +02:00
Stein Magnus Jodal
e5e1b5fa63 core.playback: Formatting 2013-10-19 20:41:48 +02:00
Stein Magnus Jodal
ce55e0eca5 core.playback: Refactor play() logic 2013-10-19 20:41:47 +02:00
Stein Magnus Jodal
d636f0d228 core.playback: Simplify if stmt
tracklist.tl_tracks is always a list
2013-10-19 20:41:47 +02:00
Stein Magnus Jodal
b6346f1c86 core.playback: Rename next_{ => tl_}track
To make the type of the variable obvious
2013-10-19 20:41:36 +02:00
Javier Domingo Cansino
a14a19447b Updating tidy-up-core to jodal specs and changing one name. Still need to update docs 2013-10-11 12:41:11 +02:00
Javier Domingo Cansino
686dd5981d Merging branch develop into tidy-up-core 2013-10-11 10:43:50 +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
6a3e322845 core: Tweak mute docs, add simple test case 2013-10-09 23:24:17 +02:00
Javier Domingo Cansino
390194afc3 Adding the possibility to mute at app level mopidy 2013-09-17 12:37:45 +02:00
Javier Domingo Cansino
157556a001 docs: Documenting further the TracklistController functions 2013-08-13 09:17:50 +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
Javier Domingo Cansino
fac2c8af7d format: Correcting flake8 messages 2013-08-09 08:32:01 +02:00
Stein Magnus Jodal
404fb00235 Remove pylint remnants 2013-08-08 21:12:42 +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
cb4130c2a7 core: Moving the trigger activation from one playback to tracklist 2013-08-08 13:45:36 +02:00
Javier Domingo Cansino
694db515e4 Merge branch 'develop' into tidy-up-core 2013-08-08 13:19:01 +02:00
Javier Domingo Cansino
2cb64b365d docs: Documenting changed and created functions 2013-08-08 13:13:52 +02:00
Javier Domingo Cansino
ab85dd9d62 Changed mark_consumed to a flexible mark() function that currently allows to mark songs as consumed (that have been played full time), played (that have been played for some time) and unplayable 2013-08-08 12:12:37 +02:00
Javier Domingo Cansino
2c83225a1e Created a TracklistController to let it control wether if a track must be consumed or not 2013-08-08 11:56:35 +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
ec716fba82 Converting tl_track_at_eot property in function with the track having to be
given as an argument
2013-08-07 19:44:00 +02:00
Javier Domingo Cansino
5a87d219ff Correcting some self-arounds that were innecesary. 2013-08-07 18:00:33 +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
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
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
dffea519a7 core: Warn if track isn't playable 2013-03-23 23:48:18 +01:00
Stein Magnus Jodal
eb459c81f0 docs: library.{find_exact,search}() returns all tracks if no query 2013-03-22 08:33:44 +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
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
fb8fba243a audio/core: Rework how we hook up end of track handling. 2013-01-05 23:16:42 +01:00
Thomas Adamcik
6b922066bb core: Trigger playback ended before switching tracks 2013-01-05 22:47:07 +01:00
Thomas Adamcik
39580e1948 Use blocking calls when changing tracks on EOT.
This ensures that we block about-to-finish and the pipeline until the next URI
is set, alowing for at least EOS free playback. If the uri is set quickly enough
this will also be gapless.
2013-01-05 16:46:16 +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
Thomas Adamcik
5dd7f4b07a core: Update BaseLibraryProvider to not require refresh, search or find_exact.
These methods may now return None, and the core code has been updated to filter
out missing SearchResults.
2013-01-01 17:30:51 +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
ea37cf1a44 core: Include the TlTrack in track_playback_* events 2012-12-19 17:06:04 +01:00
Stein Magnus Jodal
c5ac7aeb77 core: Include new volume level in volume_changed event 2012-12-19 16:31:58 +01:00
Trygve Aaberge
58389f31de core: Trigger volume changed after actual change 2012-12-18 18:08:00 +01:00