Commit Graph

7474 Commits

Author SHA1 Message Date
Thomas Adamcik
fcab27b5da Merge pull request #938 from AlexandrePTJ/feature/frontend_audioevents
Propagate stream metadata
2015-02-10 21:07:22 +01:00
Stein Magnus Jodal
4c7ad57e73 mpd: Capitalize abbrevations in docstrings 2015-02-09 13:31:27 +01:00
Stein Magnus Jodal
52457df525 Merge pull request #968 from kingosticks/fix/session-playlist-uri-mapping
Share MPD playlist uri mapping between sessions
2015-02-09 13:26:40 +01:00
Stein Magnus Jodal
888af61773 docs: Update authors 2015-02-09 13:19:05 +01:00
Stein Magnus Jodal
75955822b7 docs: Remove ext steps from source install docs
Maintaining multiple copies of instructions for how to install specific
extensions doesn't scale well.
2015-02-09 13:16:18 +01:00
Stein Magnus Jodal
0ec9212146 docs: Break lines and tweak changes from PR#959 2015-02-09 13:13:51 +01:00
kingosticks
0de13994c2 Moved MPDUriMapper to own file and updated changelog 2015-02-09 12:07:17 +00:00
Stein Magnus Jodal
adb3df97db Merge branch Lixxia/docs/install_from_source 2015-02-09 13:05:37 +01:00
Stein Magnus Jodal
efd48d864f flake8: Fix new warnings after flake8 upgrade
(cherry picked from commit a693993905)

Conflicts:
	mopidy/audio/actor.py
	mopidy/audio/playlists.py
2015-02-09 00:56:47 +01:00
kingosticks
037a88aece First playlist mapping refresh deferred until needed 2015-02-08 23:47:28 +00:00
kingosticks
317d02de3e Pass MPDUrimapper into mpd test setup 2015-02-08 23:43:22 +00:00
kingosticks
f77b73a260 Share a global MPDUriMappper between all MPD sessions 2015-02-08 23:42:12 +00:00
Stein Magnus Jodal
faa5e01e0a docs: Update changelog 2015-02-09 00:37:41 +01:00
Stein Magnus Jodal
d14d64cb7d listener: Speed up event emitting and improve error reporting
(cherry picked from commit 655b7badf4)
2015-02-09 00:35:49 +01:00
Stein Magnus Jodal
dfe27a0918 audio: Fix event handler's argument name
Every emit of this event caused an invisible exception in every audio
listener (e.g. core). The exception was made visible by the change in
the previous commit.
2015-02-09 00:10:33 +01:00
Stein Magnus Jodal
655b7badf4 listener: Speed up event emitting and improve error reporting 2015-02-09 00:10:33 +01:00
kingosticks
3dde71ed5e Extract uri mapping from MpdContext 2015-02-08 23:05:56 +00:00
Lasse Bigum
4bf7a568d1 Check that config is readable
Implement a check on file permissions for the config files that are loaded
and print debug if mopidy fails to load it due to missing file file permissions
2015-02-07 17:47:20 +01:00
Stein Magnus Jodal
a693993905 flake8: Fix new warnings after flake8 upgrade 2015-02-07 17:11:36 +01:00
jcass
090518b96d Add comment for Mac OS X volume reset workaround. 2015-02-04 07:46:31 +02:00
Lixxia
c698e07931 changed documentation to make installing from source clearer. 2015-02-03 20:56:37 -05:00
jcass
9d931adf4a Re-set volume explicitly to the current level whenever changing tracks.
Workaround for issue #886.
2015-02-03 18:30:56 +02:00
Stein Magnus Jodal
c6ec143060 Merge branch 'release/v0.19.x' into develop 2015-02-02 23:00:53 +01:00
Stein Magnus Jodal
193799a57a Merge branch 'master' into release/v0.19.x 2015-02-02 23:00:16 +01:00
Dirk Groenen
7fd0603e16 docs: Update Mopidy-Mopify entry 2015-02-02 22:59:40 +01:00
Stein Magnus Jodal
071d0e0639 docs: Docs site has HTTPS now
(cherry picked from commit 78b39390e3)
2015-02-02 22:59:40 +01:00
Stein Magnus Jodal
bec7d0d4ac docs: New year
(cherry picked from commit edcad494da)
2015-02-02 22:59:38 +01:00
Stein Magnus Jodal
5b614e95d6 Update to Mopidy.js 0.5.0 2015-01-31 22:15:40 +01:00
Thomas Adamcik
41d48dc0ec audio: Stop mocking in audio event tests 2015-01-24 00:49:02 +01:00
Thomas Adamcik
b0aebaf993 core: Make sure current_tl_track changes on stream change
- Adds stream changed handler to core
- Moves playback started trigger to stream changed
- Made about to finish store next track in _pending_tl_track
- Set the pending track as current in stream changed
- Adds tests for all of this and fixes existing tests
2015-01-23 00:14:30 +01:00
Thomas Adamcik
49f16704d8 core: Remove on_end_of_track from playback
This has been replaced by on_about_to_finish and on_end_of_stream.
Tests have been updated to reflect these changes.
2015-01-22 23:16:51 +01:00
Thomas Adamcik
edae29d769 core: Enable gapless playback
There is still quite a bit to be done is this area:

- We need to start tracking pending tracks as there is time window when we are
  decoding a new track but still playing the old one
  - Currently this breaks seek, next, prev during this time window
- The old on_end_of_track code needs to die.
- Stream changes need to trigger playing events and switch the pending track to
  current.
2015-01-21 23:42:34 +01:00
Thomas Adamcik
ccd91c0b72 core: Pass audio in to playback 2015-01-21 23:28:57 +01:00
Thomas Adamcik
7595778d30 core: Consolidate playback tracking of played tracks 2015-01-21 23:19:20 +01:00
Thomas Adamcik
d42bede203 core: Remove core.playback.change_track 2015-01-21 23:17:22 +01:00
Thomas Adamcik
82bf1c0eb9 core: Move core.playback.on_end_of_track off change_track helper
Only handles the playing case, unlike the previous and next changes. It should
also be noted that this is just a temporary state on the road to making this
method handle gapless.
2015-01-21 23:15:42 +01:00
Thomas Adamcik
4a39671ee7 core: Move core.playback.previous off change_track helper
Same fix as for core.playback.next and mostly the same caveats.
2015-01-21 23:07:47 +01:00
Stein Magnus Jodal
b46844fbe2 docs: Fix copy-paste error 2015-01-21 23:03:35 +01:00
Thomas Adamcik
bbb3301a98 core: Move core.playback.next off change_track helper
Note that since this doesn't use play via change_track we have to copy over the
tracking code and make sure it is only run for the playing case
2015-01-21 23:02:06 +01:00
Thomas Adamcik
9fc319055c 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.
2015-01-21 22:13:41 +01:00
Thomas Adamcik
3a3098dbe2 core: Update _get_backend to take tl_track 2015-01-21 19:19:59 +01:00
Alexandre Petitjean
735d1662dc Makes mpd 'currentsong' send song with metadata 2015-01-20 22:05:14 +01:00
Alexandre Petitjean
64cab9ae95 Rename current_md_track to current_metadata_track 2015-01-20 21:50:02 +01:00
Alexandre Petitjean
ef950a5e15 Adds audio in Core 2015-01-20 20:01:54 +01:00
Alexandre Petitjean
eeed2973f1 Fix metadata refresh with more than one pl in tracklist 2015-01-17 14:30:40 +01:00
Alexandre Petitjean
7ee1935315 MPD gets metadata's updates from stream 2015-01-16 23:45:07 +01:00
Alexandre Petitjean
e4dd04cfb7 One step beyond 2015-01-16 21:41:55 +01:00
Alexandre Petitjean
ec94449a63 Handle tags_changed in Core and send event to CoreListener 2015-01-15 22:25:34 +01:00
Thomas Adamcik
bd7ddcf7ea Merge pull request #931 from ali/fix/local-search-with-album-query
local: Fix exact search to handle tracks where album is None (fixes #930)
2015-01-06 10:44:11 +01:00
Ali Ukani
20751a5ad7 Fix album filter: Should work when track's album is an Album or None 2015-01-05 23:55:16 -05:00