Commit Graph

4375 Commits

Author SHA1 Message Date
Stein Magnus Jodal
f62057a9ad flake8: Fix compat with pep8 1.7.0
(cherry picked from commit 18b609fa6e)
2016-01-20 08:21:10 +01:00
Thomas Kemmer
1715756b14 m3u: Update docs. 2016-01-10 19:45:00 +01:00
Thomas Kemmer
2bcf1a6b00 m3u: Change default_extension to m3u8. 2016-01-10 19:23:14 +01:00
Thomas Kemmer
2b8508d3c7 m3u: Implement write-replace context manager. 2016-01-09 07:00:57 +01:00
Thomas Kemmer
b2d1e1b4f7 m3u: Major refactoring, add default_encoding and default_extension settings. 2016-01-04 14:19:49 +01:00
Stein Magnus Jodal
811131f716 Merge pull request #1371 from jcass77/enhance/format_proxy
Handle missing or empty 'port' configuration parameter.
2015-12-29 14:41:58 +01:00
Stein Magnus Jodal
5462f0e319 Merge pull request #1369 from tkem/m3u-fix-1364
m3u: Derive track name from file name for non-extended M3U playlists.
2015-12-29 02:02:48 +01:00
Stein Magnus Jodal
2a04088544 Merge pull request #1362 from tkem/feature/playlists-schemes
core: Add PlaylistsController.get_uri_schemes().
2015-12-28 23:37:24 +01:00
jcass
3488e6442d Handle missing or empty 'port' configuration parameter. 2015-12-26 15:28:07 +02:00
Thomas Kemmer
22690ee5a9 m3u: Derive track name from file name for non-extended M3U playlists. 2015-12-23 18:14:19 +01:00
Bryan Bennett
d210f3223f Call dbus dependent code only if dbus imported
Addresses another symptom of mopidy/mopidy#1335
2015-12-23 11:32:54 -05:00
Bryan Bennett
128de6cd01 Set hostname/name to None
Works around mopidy/mopidy#1335
2015-12-23 11:31:22 -05:00
Thomas Kemmer
ef1468d8d6 core: Add PlaylistsController.get_uri_schemes(). 2015-12-13 19:02:33 +01: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
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
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
Thomas Adamcik
aa010e03e9 listener: Try and protect actors against "bad" events 2015-12-04 23:53:09 +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
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
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
01086a4cf4 core: Mark tracks as played via playback ended events 2015-11-21 00:34:27 +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
d0e4e8e35d versioning: Fix comparision of bytes and text 2015-10-29 22:57:25 +01:00
Stein Magnus Jodal
97c6b8812d xdg: Read .dirs file as text for py3 compat
Py3's configparser isn't able to work with bytes.
2015-10-29 22:57:21 +01:00
Stein Magnus Jodal
587f2ac3d9 compat: Make more urlparse usage py2+3 compatible 2015-10-29 22:57:18 +01:00
Stein Magnus Jodal
41c906c912 compat: Ignore some py2-only builtins when running flake8 on py3 2015-10-29 22:21:54 +01:00
Stein Magnus Jodal
ee555ff09d compat: Replace intern() with compat.intern() 2015-10-29 22:21:51 +01:00
Stein Magnus Jodal
0c059b85b1 compat: Replace (int, long) with compat.integer_types 2015-10-29 22:21:48 +01:00