Jens Luetjen
abe3d67bc1
Some smaller fixes.
...
- Limit config core.restore_state to a known set of values.
- Initialize new_state to None instead of ''
2016-01-09 12:07:49 +01:00
Jens Luetjen
6e99a95aae
Don't modify data in library function.
...
- storage.save: Don't modify data. mopidy.__version__ has to be added by caller.
- storage.load: Added a Todo. Postponed decision, if load() shall raise an exception in case of error. See PR #310 .
2016-01-09 12:05:14 +01:00
Jens Luetjen
a9327c559f
Don't use pykka callbacks on_start and on_stop.
...
Introduce setup() and teardown() for Core.
2016-01-09 12:00:35 +01:00
Jens Luetjen
46bb780a46
Rename TracklistState 'tracks' to 'tl_tracks'
...
Correct documentation.
2016-01-09 11:46:09 +01:00
Jens Luetjen
0b0cbc87d4
Merge branch 'develop' into fix/310-persist-mopidy-state-between-runs
...
Conflicts:
docs/changelog.rst
Fixed conflict in doc/changelog.rst
2016-01-05 08:16:51 +01:00
Jens Luetjen
d5a45516ef
Adujst test code for testing auto-play
2016-01-05 07:53:45 +01:00
Jens Luetjen
6746dd0196
More function for config value core.restore_state
...
- New values for core.restore_state : "volume", "last"
- Update changelog
- Adjust logger output
2016-01-05 07:41:02 +01:00
Jens Luetjen
e56c39ee78
Add unit tests for export/restore core state
...
Fix issues shown by test code
2016-01-03 18:29:35 +01:00
Jens Luetjen
a5a9178b06
Use model(s) to save/restore current play state
2016-01-02 15:28:41 +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
4fba994441
Merge pull request #1377 from jcass77/test/pr_1356_resume_unplayable_track
...
test: Test case for skipping unplayable tracks when paused.
2015-12-29 08:53:12 +01:00
jcass
07a0f8ff3e
test: Test case to ensure that unplayable tracks are skipped over in PAUSE state.
...
Ensures that pause->next->resume handles unplayable tracks just like stop->next->play does.
2015-12-29 07:54:49 +02: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
Stein Magnus Jodal
da43b8679f
Merge pull request #1368 from bbenne10/develop
...
Address mopidy/mopidy#1335
2015-12-28 23:16:00 +01:00
Thomas Adamcik
cee4290302
Merge pull request #1374 from jcass77/fix/1355-docs-submitting-for-bugfix-release
...
docs: Provide details on PR procedure for bug fix releases
2015-12-28 22:42:33 +01:00
Jens Luetjen
44841710e0
Use data_dir instead of config_dir.
...
Mopidy as service can not write to config_dir.
2015-12-27 21:03:00 +01:00
Jens Luetjen
e9625e9feb
core: Fix #310 : Persist mopidy state between runs.
...
Persist following properties:
mopidy.core.tracklist
_tl_tracks
_next_tlid
get_consume()
get_random()
get_repeat()
get_single()
mopidy.core.history
_history
mopidy.core.playlist
get_current_tl_track()
get_time_position()
mopidy.core.mixer
get_volume()
Details:
- moved json export/import write_library()/load_library() from mopidy/local to mopidy/models
- new core methods save_state(), load_state()
- save_state(), load_state() accessible via rpc
- save state to disk at stop
- load state from disk at start
- new config: core.restore_state ("off", "load", "play")
TODO:
- seek to play position does not work. Timing issue.
- use extra thread to load state from disk at start?
2015-12-27 19:28:41 +01:00
Nick Steel
02dd708ea4
Merge pull request #1373 from jcass77/docs/fix_typos
...
Fix documentation typos and inconsistencies.
2015-12-27 09:12:29 +00:00
jcass
8ca871cad9
docs: Provide details on procedure for submitting bug fixes for a minor release of Mopidy.
2015-12-27 08:04:32 +02:00
jcass
33a668c6c7
Fix documentation typos and inconsistencies.
2015-12-26 18:50:58 +02:00
Thomas Adamcik
dea07605b7
Merge pull request #1372 from jcass77/fix/typo_in_config_rst
...
docs: Fix typo in config.rst.
2015-12-26 14:49:08 +01:00
jcass
188bd11106
Fix typo.
2015-12-26 15:36:14 +02: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
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