Commit Graph

26 Commits

Author SHA1 Message Date
Stein Magnus Jodal
23e73d962b core: Define playlists.delete() return type 2018-09-19 22:27:18 +02:00
Thomas Kemmer
1715756b14 m3u: Update docs. 2016-01-10 19:45:00 +01:00
Thomas Adamcik
d8e8d2d16b listener: Kill off mopidy.listener.send_async
This is no longer needed as the plain send method makes sure to use tell to
queue actor message. Which has better performance, and avoids deadlocks.

A side effect of this is that assuming you have a core actor running and a
dummy audio in use audio events just work.
2015-09-03 22:50:40 +02:00
Stein Magnus Jodal
fcb61e3551 backend: Log translated URIs 2015-07-26 00:09:58 +02:00
Stein Magnus Jodal
749c8baceb Merge branch 'v1.0.x' into develop
Conflicts:
	mopidy/core/library.py
	tests/core/test_playback.py
2015-06-25 23:15:35 +02:00
Thomas Adamcik
31509ea568 core/mpd/local: Add title to get_distinct field types 2015-05-19 22:37:35 +02:00
Thomas Adamcik
399124bf46 startup: Handle frontend and backend failures 2015-05-12 23:55:09 +02:00
Stein Magnus Jodal
97c336200b Merge branch 'v1.0.x' into develop 2015-04-28 00:02:26 +02:00
Stein Magnus Jodal
f5a7381324 docs: Fix copy-paste error 2015-04-27 23:25:24 +02:00
Stein Magnus Jodal
c4940cbea2 autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
Thomas Adamcik
24fe242d56 core/backend: Remove find_exact from backends
Functionality has been replaced with an `exact` param in the search method.
Backends that still implement find_exact will continue being called via
the old method for now.
2015-03-23 23:55:03 +01:00
Stein Magnus Jodal
d37bd62bb1 backend: Remove playlists.playlists property 2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
55b1eb7383 backend: Add playlists.as_list() and playlists.get_items(uri) 2015-03-23 00:44:39 +01:00
Nick Steel
08f729de76 docs: fix translate_uri method reference 2015-03-22 21:30:50 +00:00
Stein Magnus Jodal
9129955592 backend: Minor docstring adjustments
Did it myself rather than holding off PR #1064 any longer.
2015-03-22 09:21:12 +01:00
Thomas Adamcik
ebba3a3d14 backend: Allow None as return from translate_uri() 2015-03-21 23:17:40 +01:00
Thomas Adamcik
87ba52f124 review: Docstring updates 2015-03-21 23:12:44 +01:00
Thomas Adamcik
a6ef1bb8d9 backend: Add translate_uri for simpler API for the simple case.
change_track(track) simply calls translate_uri(uri) by default now so that 90%
of clients with custom URIs should be able to just implement this one method on
the backend any ignore everything else.
2015-03-21 11:43:46 +01:00
Thomas Adamcik
bbf52eede9 backend: Change playback API (breaking change!)
While trying to remove traces of stop calls in core to get gapless working I
found we had no way to switch to switch tracks without triggering a play. This
change fixes this by changing the backends playback provider API.

- play() now _only_ starts playback and does not take any arguments.
- prepare_change() has been added, this could have been avoided with a kwarg to
  change_track(track), but that would break more backends.
- core has been updated to call prepare_change+change_track+play as needed.
- tests have been updated to handle this change.

Longer term I hope to completely rework the playback API in backends, as 99% of
our backends only use change_track(track) to translate URIs. So we should make
simple case simple, and handle mopidy-spotify / appsrc in some other way.

Cherry picked from the WIP gapless branch.
2015-03-21 00:05:00 +01:00
Stein Magnus Jodal
65c5242b14 backend: Remove default impl of PlaylistProvider.playlists
The default was insane. For one, because overriding e.g. just the
getter would make the property have a pair of working getter and
setter that are entirely disconnected.
2015-03-18 00:25:26 +01:00
Thomas Adamcik
8cc9c9bbc0 core: Rename list_distinct to get_distinct 2015-03-02 22:41:09 +01:00
Thomas Adamcik
00b2b9538e core: Add library.list_distinct for getting distinct field values 2015-03-02 00:26:06 +01:00
Thomas Kemmer
f65195a676 More pythonic implementation. 2015-02-27 22:39:25 +01:00
Thomas Kemmer
301f732047 Improve default get_images() implementation with album/artist URIs. 2015-02-27 22:22:28 +01:00
Thomas Adamcik
88c978bdca backend: Add a default get_images impl. 2015-02-18 21:13:25 +01:00
Stein Magnus Jodal
016024a081 backend: Convert from package to module 2015-02-13 01:37:07 +01:00