Commit Graph

16 Commits

Author SHA1 Message Date
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 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
85871fb33d docs: Improve fields documentation 2015-05-05 00:00:22 +02:00
Thomas Adamcik
05244f7e60 models: Deprecate copy and add replace method
Changed as with the memoization copy was lying, so replace is a better name.
2015-04-08 01:41:50 +02:00
Thomas Adamcik
9b442e1563 review: Address review comments 2015-04-06 23:27:46 +02:00
Stein Magnus Jodal
5be2849547 docs: Add missing models to graph, reorder model docs 2015-03-14 21:51:37 +01:00
Stein Magnus Jodal
82b94693f9 docs: Add Image to model relation graph 2015-02-13 01:39:57 +01:00
Stein Magnus Jodal
7e85a0cc37 docs: Add ImmutableObject.copy() example 2013-04-26 21:08:19 +02:00
Stein Magnus Jodal
ea029de503 docs: Add SearchResult to models diagram 2013-03-22 09:20:11 +01:00
Stein Magnus Jodal
9244087bfd Do not include undoced members in the docs 2011-06-27 19:38:10 +03:00
Stein Magnus Jodal
5886dbb0f0 docs: Cleanup API reference headers 2010-11-02 00:31:38 +01:00
Stein Magnus Jodal
cca1c0e234 docs: Freshen up the API docs 2010-08-09 23:22:39 +02:00
Stein Magnus Jodal
65bce46983 docs: Add intro to model API 2010-03-13 20:50:51 +01:00
Stein Magnus Jodal
d240fcc783 docs: Add model relations graph 2010-03-13 18:26:59 +01:00
Stein Magnus Jodal
ea45b4d5e7 Add API doc of mopidy.models 2010-02-06 13:59:50 +01:00