Commit Graph

7045 Commits

Author SHA1 Message Date
Bryan Bennett
128de6cd01 Set hostname/name to None
Works around mopidy/mopidy#1335
2015-12-23 11:31:22 -05:00
Thomas Adamcik
ede5b8abff logging: Catch errors when loading logging/config_file 2015-12-05 22:44:39 +01:00
Stein Magnus Jodal
3e259f1c00 Merge pull request #1347 from adamcik/feature/mpd-idle-cleanup
MPD idle cleanup
2015-12-05 21:36:11 +01:00
Stein Magnus Jodal
23cdeb208b Merge pull request #1346 from adamcik/feature/eot-seek-handling
Gapless aware seek handling
2015-12-05 21:34:51 +01:00
Thomas Adamcik
c2fc313151 mpd: Update event handling to warn about unknown events 2015-12-05 21:26:43 +01:00
Thomas Adamcik
1c2850bc3e docs: Use :issue: instead of :pr: 2015-12-05 21:24:18 +01:00
Stein Magnus Jodal
23d83a833f Merge pull request #1349 from adamcik/feature/mpd-playlists-error-handling
MPD playlist editing error handling
2015-12-05 21:14:55 +01:00
Thomas Adamcik
00b52da6ab mpd: Make sure rename error handling is correct 2015-12-05 14:30:18 +01:00
Thomas Adamcik
9ac1760dd1 mpd: Update playlistmove to check names and indexes 2015-12-05 14:11:27 +01:00
Thomas Adamcik
5de9495eaa mpd: Update playlistdelete to handle unknown names and indexes 2015-12-05 14:01:43 +01:00
Thomas Adamcik
b21debf6ee mpd: Sanity check stored playlist names 2015-12-05 13:51:36 +01:00
Thomas Adamcik
c3393d3d85 mpd: Refresh mapping when name is not present (Fixes #1348) 2015-12-05 12:49:45 +01:00
Thomas Adamcik
98e19e803b mpd: Deleting unkown playlist should return not found 2015-12-05 12:48:14 +01:00
Thomas Adamcik
8c6bb63963 docs: Improve changelog PR#1346 per review comments 2015-12-05 11:34:15 +01:00
Thomas Adamcik
da84c0f59c docs: Update changelog for MPD idle fixes 2015-12-05 11:22:33 +01:00
Thomas Adamcik
07328e7dd2 mpd: Map playlists_loaded to idle event stored_playlist 2015-12-05 11:08:33 +01:00
Thomas Adamcik
435ca5064a listener: Log kwargs in failed send calls 2015-12-05 11:05:45 +01:00
Stein Magnus Jodal
28224cef8c audio: Fix tests not exiting normally 2015-12-05 00:34:33 +01:00
Thomas Adamcik
aa010e03e9 listener: Try and protect actors against "bad" events 2015-12-04 23:53:09 +01:00
Thomas Adamcik
438b4b7a35 docs: Update changelog with seek related changes 2015-12-04 23:09:48 +01:00
Thomas Adamcik
a086857dd7 docs: Update changelog with MPD idle fixes 2015-12-04 22:16:35 +01:00
Thomas Adamcik
19daa89e15 mpd: Add missing seeked event handling for idle 2015-12-04 22:11:55 +01:00
Thomas Adamcik
7d4da4ac8c mpd: Add integration test for core events and idle 2015-12-04 22:10:27 +01:00
Thomas Adamcik
49b0580c39 mpd: Fix call signature for core playlist_deleted event 2015-12-04 22:08:56 +01:00
Thomas Adamcik
7ab2665292 mpd: Switch MpdSession to using on_event and re-use listener helper. 2015-12-04 21:20:24 +01:00
Thomas Adamcik
9f23757cc3 core: Return pending position during active seek.
This covers over that audio will fail query position while a seek is in
progress. It also means that instead of returning zero we at least return
something which is much closer to the time that we will soon end up playing
from.
2015-12-04 21:10:48 +01:00
Thomas Adamcik
eeb1f91ed1 core: Actually perform delayed "eot-seek" on stream changed 2015-12-04 21:10:48 +01:00
Thomas Adamcik
454077afeb core: Make sure certain events are ignored when doing eot-seeks 2015-12-04 21:10:48 +01:00
Thomas Adamcik
aeb881896b core: Trigger position changed from audio events.
Makes sure to only fire when the position changed to our intended seek target.
Otherwise we would also be triggering this when playback starts.
2015-12-04 21:10:48 +01:00
Thomas Adamcik
e74eafb38a core: Switch back to correct track if seek happens before stream changed
Technically the seek still needs to be postponed for this to work right, but
it's a step closer.
2015-12-04 21:10:48 +01:00
Thomas Adamcik
593f4e295b Merge pull request #1341 from jodal/feature/travis-on-trusty
travis: Test on Ubuntu 14.04 infrastructure
2015-11-29 01:46:56 +01:00
Stein Magnus Jodal
3c24d2d782 travis: Test on Ubuntu 14.04 infrastructure
This change also minimizes the set of Python packages installed with APT
so that we're testing against the latest PyPI releases when possible.
2015-11-29 01:38:07 +01:00
Stein Magnus Jodal
02f3fc24bb travis: coveralls 1.0 has been released 2015-11-29 00:54:01 +01:00
Stein Magnus Jodal
e495e382e7 docs: Update changelog and authors 2015-11-28 23:54:44 +01:00
Stein Magnus Jodal
b3ec02d0af Merge pull request #1337 from blueyed/handle-exception-in-extensions 2015-11-28 23:52:31 +01:00
Daniel Hahler
ebb413b6b1 Handle exceptions in load_extensions
This will skip those extensions, instead of crashing mopidy, e.g. when
mopidy-mopify fails because of a missing HOME environment variable
during mopidy's tests.
Ref: https://github.com/dirkgroenen/mopidy-mopify/issues/119
2015-11-28 23:51:52 +01:00
Stein Magnus Jodal
22b18a46d1 Merge pull request #1338 from blueyed/immutable-typeerror-fix-wording
Fix wording with TypeError in ImmutableObject.replace
2015-11-28 23:01:15 +01:00
Daniel Hahler
fa817dee35 Fix wording with TypeError in ImmutableObject.replace 2015-11-28 23:00:28 +01:00
Stein Magnus Jodal
cc3ec5e218 Merge pull request #1330 from adamcik/feature/core-state-changed-between-tracks
Core state change events between tracks
2015-11-22 23:00:11 +01:00
Stein Magnus Jodal
fe759e4e44 Merge branch 'release-1.1' into develop 2015-11-22 21:06:25 +01:00
Stein Magnus Jodal
149fa15cab docs: Fix return value reference
Fixes #1332
2015-11-22 21:05:32 +01:00
Thomas Adamcik
3a57a5792b core: Make sure we always emit state_changed between tracks
Gapless broke this, so this change makes sure that next/prev/play and gapless
track changes all correctly emit events.

Note that this only ensures we get PLAYING -> PLAYING events. Not the old
STOPPED -> PLAYING and then PLAYING -> STOPPED.
2015-11-21 22:43:40 +01:00
Thomas Adamcik
e767cb3f41 tests: Convert local tracklist test to use core actor proxy. 2015-11-21 22:31:25 +01:00
Thomas Adamcik
216bd8e412 tests: Reorder listener_mock.send.mock_calls in assertEqual 2015-11-21 14:28:47 +01:00
Stein Magnus Jodal
6d37d462ac Merge pull request #1329 from adamcik/develop
core: Mark tracks as played via playback ended events
2015-11-21 10:37:37 +01:00
Thomas Adamcik
01086a4cf4 core: Mark tracks as played via playback ended events 2015-11-21 00:34:27 +01:00
Stein Magnus Jodal
e945985448 Merge pull request #1328 from adamcik/feature/core-trigger-track-stopped-cleanup
core: Cleanup track ended event handling
2015-11-20 23:17:39 +01:00
Thomas Adamcik
da7ec9b202 core: Cleanup track ended event handling
Trigger playback ended on:
- stream changed
- EOS
- stop via stream changed events

Old behavior was to manually trigger on:
- next
- prev
- play with other track and old state != STOPPED
- stop
2015-11-19 22:45:55 +01:00
Stein Magnus Jodal
e48ac186f0 models: Deprecate Album.images
Fixes #1325
2015-11-18 15:03:13 +01:00
Stein Magnus Jodal
cc9a382f77 docs: Fix two links in same page with identical text 2015-11-18 14:55:52 +01:00