Commit Graph

6260 Commits

Author SHA1 Message Date
Stein Magnus Jodal
15872ca02a travis: Don't build the debian branch 2015-03-22 20:26:11 +01:00
Stein Magnus Jodal
12649265b1 Bump version to 1.0.0
So that the development version of extensions can start depending on
1.0.0 and test that they work with the changed APIs.
2015-03-22 09:25:04 +01:00
Stein Magnus Jodal
f361109832 setup: Explicitly close file
Instead of relying on GC.
2015-03-22 09:23:12 +01: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
Stein Magnus Jodal
56dca0e931 Merge pull request #1064 from adamcik/fix/1052-break-backend-play
backend: Change playback API (breaking change!)
2015-03-22 09:19:39 +01:00
Thomas Adamcik
c620e3a00f docs: Add changelog for backend API breakage 2015-03-22 01:27:07 +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
29f8ee0da0 Merge pull request #1066 from jodal/feature/add-m3u-backend
m3u: Extract new M3U backend from local
2015-03-21 11:59:30 +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
Stein Magnus Jodal
b2f60bc338 m3u: Extract new M3U backend from local
Fixes #1054
2015-03-21 08:13:45 +01:00
Stein Magnus Jodal
8977f71411 docs: Fix syntax errors in changelog 2015-03-21 00:59:54 +01:00
Thomas Adamcik
31d12c7e1d Merge pull request #1065 from jodal/fix/1060-tracklist-add-uris
core: Add uris kwarg to tracklist.add()
2015-03-21 00:42:22 +01:00
Stein Magnus Jodal
2bc3db0d0e core: Add uris kwarg to tracklist.core()
Fixes #1060
2015-03-21 00:16:24 +01:00
Stein Magnus Jodal
f67e55618c core: Make lookup(uris=...) return dict with all uris
All uris given to lookup should be in the result even if there is no
backend to handle the uri, and the lookup result thus is an empty list.

As a side effect, future.get() is now called in the order of the URIs
in the `uris` list, making it easier to mock out
backend.library.lookup() in core layer tests.
2015-03-21 00:11:15 +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
Thomas Adamcik
a4c39f5bf9 Merge pull request #1063 from jodal/fix/1056-private-history-add
core: Make history.add() private
2015-03-20 23:19:54 +01:00
Stein Magnus Jodal
861f60e6f1 core: Make history.add() private
Instead of changing the signature to add(uri, name) I opted for
renaming it to _add_track(track).

Since it's internal we may change it whenever we like to. Since you need
different logic for extracting an interesting name from a track and from
a ref or a stream title, it makes sense to add another method for adding
refs/stream titles to the history when that time comes.

Fixes #1056
2015-03-20 22:41:56 +01:00
Stein Magnus Jodal
35a8fecd5d docs: Add PR#1062 to changelog 2015-03-20 22:39:56 +01:00
Thomas Adamcik
18b8af8f38 Merge pull request #1062 from jodal/fix/1058-private-tracklist-mark-methods
core: Make tracklist.mark_*() private
2015-03-20 22:37:25 +01:00
Stein Magnus Jodal
c57f3ec9b2 core: Make tracklist.mark_*() private
Fixes #1058
2015-03-20 22:28:40 +01:00
Stein Magnus Jodal
233766e69d Merge pull request #1061 from tkem/docs/mopidy-local-images
docs: Add Mopidy-Local-Images.
2015-03-20 09:10:29 +01:00
Thomas Kemmer
b287579793 docs: Add Mopidy-Local-Images. 2015-03-20 08:11:14 +01:00
Thomas Adamcik
13880c9d59 Merge pull request #1055 from jodal/docs/add-semver-section
docs: Add section on semantic versioning
2015-03-19 07:49:13 +01:00
Stein Magnus Jodal
c93dd34c93 pypi: Up dev status to '5 - Production/Stable' 2015-03-19 00:02:03 +01:00
Stein Magnus Jodal
4692e73054 docs: Add section on semantic versioning
Fixes #1050
2015-03-18 23:44:31 +01:00
Stein Magnus Jodal
dc982cd880 Merge pull request #1047 from adamcik/fix/1008-add-uris-to-lookup
core: Add uris argument to library.lookup (Fixes #1008)
2015-03-18 23:24:29 +01:00
Thomas Adamcik
71e2b21b52 review: Minor fixes and updates 2015-03-18 23:09:09 +01:00
Stein Magnus Jodal
26d07b2cfe docs: Remove API stability disclaimers
Not as if we've had the freedom to break anything for ages anyway.

Fixes #1049
2015-03-18 22:10:48 +01:00
Stein Magnus Jodal
a05c097106 docs: Change deprecated-in from 0.20 to 1.0
Fixes #1051
2015-03-18 22:00:00 +01:00
Stein Magnus Jodal
93afea50a2 docs: Change next release from 0.20 to 1.0 2015-03-18 21:58:58 +01:00
Thomas Adamcik
63db14d291 Merge pull request #1046 from jodal/fix/backend-playlists-default-impl
backend: Remove default impl of PlaylistProvider.playlists
2015-03-18 10:30:31 +01:00
Stein Magnus Jodal
accc1e7249 docs: Update changelog for PR#1046 2015-03-18 00:25:26 +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
08bdf5c14b core: Update library.lookup() docstring 2015-03-18 00:10:45 +01:00
Thomas Adamcik
fdc84c3905 core: Add uris argument to library.lookup (Fixes #1008)
For now this doesn't add any corresponding APIs to backends, or for that matter
tracklist.add(uris). This is just to get the API in for clients in 0.20.
2015-03-17 23:49:21 +01:00
Thomas Adamcik
6273247c6e Merge pull request #1044 from jodal/fix/971-decode-strerror
Decode all strerror-based exception messages
2015-03-17 22:29:34 +01:00
Stein Magnus Jodal
aae545f2fe docs: Update changelog for PR#1044 2015-03-17 22:07:55 +01:00
Stein Magnus Jodal
4972d1da57 Decode all strerror-based exception messages
I reviewed all instances of:

- EnvironmentError
- OSError
- IOError
- socket.error

In most cases, we already used encoding.locale_decode().

The case fixed in mopidy/utils/network.py fixes #971.

The case fixed in mopidy/utils/path.py might be triggered during a
local library scan.
2015-03-17 22:02:34 +01:00
Stein Magnus Jodal
3559e61d75 docs: Don't require Sphinx 1.3 to build 2015-03-17 21:34:20 +01:00
Thomas Adamcik
1005848d94 Merge pull request #1042 from jodal/docs/new-contrib-and-devenv-guide
docs: New contribution page and development environment guide
2015-03-17 21:29:04 +01:00
Stein Magnus Jodal
9b278c3188 Merge pull request #1043 from adamcik/feature/audio-buffering-cleanups
Audio buffering cleanups
2015-03-17 21:25:38 +01:00
Stein Magnus Jodal
bdee947889 docs: Fix review comments 2015-03-17 21:24:32 +01:00
Thomas Adamcik
b1448f584f audio: Remove download flag from audio (fixes #1041)
This should resolve the issue where Mopidy tries and download way to much of a
remote track before playing it.
2015-03-17 21:10:02 +01:00
Thomas Adamcik
8983608992 audio: Never buffer live sources as they would stall 2015-03-17 20:56:58 +01:00
Thomas Adamcik
b90d18c8ac audio: Reduce most buffering message to trace level 2015-03-17 20:56:16 +01:00
Stein Magnus Jodal
8a0bf3c25f docs: Include commit message tips in the guidelines 2015-03-17 13:16:39 +01:00
Stein Magnus Jodal
b6b872b9c2 docs: Fix typos from review
Co-Authored-By: Nick Steel <kingosticks@gmail.com>
2015-03-17 12:23:12 +01:00
Stein Magnus Jodal
c90f08d8ea docs: Show another level of the about section in the ToC 2015-03-17 01:16:05 +01:00
Stein Magnus Jodal
b2b7b87081 docs: Make devtools a pure release procedure page 2015-03-17 01:16:05 +01:00