Commit Graph

26 Commits

Author SHA1 Message Date
Jens Luetjen
606e87b1bb Make export/restore state internal
- drop filename parameter
- make save_state/load_state internal
- remove save_state/load_state from docu and RPC.
- remove models load/save from docu
- build the config path
- folder for 'core' state files
- move restore_state-to-coverage-translation into a method
2016-01-14 19:56:38 +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
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
Thomas Kemmer
ef1468d8d6 core: Add PlaylistsController.get_uri_schemes(). 2015-12-13 19:02:33 +01:00
Nick Steel
8234d38a5d docs: deprecated section headings were mixed up 2015-11-07 15:28:13 +00:00
Thomas Adamcik
edd7afb174 docs: Add some notes about validation that are performed 2015-07-22 19:31:02 +02:00
Stein Magnus Jodal
ae07603da0 docs: Add module name to API docs headers
In the same way the Python stdlib docs does.
2015-05-07 21:02:25 +02:00
Thomas Adamcik
461061f1be docs: Refresh of remaining parts of core API docs 2015-04-24 00:30:40 +02:00
Thomas Adamcik
830a19ca70 core: Refresh PlaylistsController documentation 2015-04-24 00:24:19 +02:00
Thomas Adamcik
88f2905133 core: Refresh LibraryController documentation 2015-04-24 00:18:53 +02:00
Thomas Adamcik
996af72af7 docs: Refresh PlaybackController documentation 2015-04-24 00:14:22 +02:00
Thomas Adamcik
b6b1bb2489 docs: Add warning above deprecated section in core 2015-04-24 00:14:01 +02:00
Thomas Adamcik
907f920f18 docs: Make it more clear what each part of core does right away 2015-04-24 00:13:30 +02:00
Thomas Adamcik
0afe8ef54c docs: Improve core actor docs 2015-04-23 23:42:30 +02:00
Thomas Adamcik
c897877a71 docs: Manually split tracklist class documentation 2015-04-23 21:48:07 +02:00
Stein Magnus Jodal
42115c56f7 core: Add mixer controller (fixes: #962)
Deprecate volume and mute methods on playback controller.
2015-02-12 10:31:16 +01:00
Stein Magnus Jodal
39bee603fa docs: Add HistoryController to core API 2014-09-23 18:55:37 +02:00
Stein Magnus Jodal
1ee534126e mpd: Move mopidy.{frontends => }.mpd 2013-12-31 14:11:16 +01:00
Stein Magnus Jodal
b0b2e37950 docs: Include API docs for the Core class 2013-12-15 21:41:00 +01:00
Stein Magnus Jodal
3a24deaec3 Rename 'stored playlists' to 'playlists' 2012-11-14 09:23:19 +01:00
Stein Magnus Jodal
bba9548b27 Rename 'current playlist' to 'tracklist' 2012-11-13 10:59:48 +01:00
Stein Magnus Jodal
f0602b4e3b docs: Fix lots of broken module documentation 2012-10-29 00:25:25 +01:00
Stein Magnus Jodal
e7f08a7a20 Rename mopidy.{listeners.BackendListener => core.CoreListener} 2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
2ba05f9405 Add PlaybackState enum 2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
f3cb3036d4 docs: Update a couple of references and titles 2012-09-13 23:57:07 +02:00
Stein Magnus Jodal
e0b26fcb81 docs: Move controllers out of the Backend API 2012-09-13 23:50:09 +02:00