Commit Graph

7391 Commits

Author SHA1 Message Date
Jens Luetjen
6ee36752bd Test whole save/load state. 2016-04-01 22:16:05 +02:00
Jens Luetjen
6e33bbcadd Replace restore/export with load/save
Rename _restore_state to _load_state
Rename _export_state to _save_state
2016-04-01 19:50:37 +02:00
Jens Luetjen
e9db19a352 Handle all path- and file-names as bytestings 2016-04-01 19:39:48 +02:00
Jens Luetjen
cf5dfccee2 Rename PlaybackState.position to time_position. 2016-04-01 19:13:26 +02:00
Jens Luetjen
eb930a1679 Catch exception when deleting persistent file. 2016-03-31 23:34:57 +02:00
Jens Luetjen
e9e9646d61 Removed unnecessary docstrings. 2016-03-31 23:24:25 +02:00
Jens Luetjen
44b7974f79 Restore mixer.volume/mute before starting playback 2016-03-31 23:20:26 +02:00
Jens Luetjen
01201d142c Renamed member in HistoryController
- add 'play-always' and 'play-last' to docstring for _load_state.
- renamed _start_at_pos to _start_at_position
- changed 'if const == value:' to 'if value == const:'
- changed info text to 'Limiting history'
2016-03-31 23:17:29 +02:00
Jens Luetjen
67044cecab Remove 'TODO: check if playable'
We don't need to as each backend a title is still playable.
The backend must be able to handle unplayable title.

Replace for loop with arrar.extend()
2016-03-31 22:07:53 +02:00
Jens Luetjen
3251722a28 Rename storage.save() to storage.dump().
The name matches the load/dump in the json library.
Import olny storage from mopidy.internal (not all of mopidy.internal).
2016-03-31 21:55:32 +02:00
Jens Luetjen
7928caeb71 Persist mixer mute state.
Restore mixer.mute state at start.
Update mopidy.models docstrings.
2016-03-31 21:30:48 +02:00
Jens Luetjen
b581d5a574 Update documentation.
Update persistent feature in changelog and config description.
2016-03-31 20:41:47 +02:00
Jens Luetjen
d4d2ad80dc Changed name persistant file to 'state.json.gz'
Changed filename from persistent.state to state.json.gz. Now the
file extension matches the content.
2016-03-31 20:24:31 +02:00
Jens Luetjen
2bb9e39ba6 Merge branch 'develop' of https://github.com/mopidy/mopidy into fix/310-persist-mopidy-state-between-runs 2016-03-31 19:04:45 +02:00
Stein Magnus Jodal
d51b283c26 Merge branch 'release-2.0' into develop 2016-03-26 20:28:09 +01:00
Stein Magnus Jodal
227a660ecf Merge branch 'fix/1345-file-crashes-on-non-ascii-media-dir' into release-2.0 2016-03-26 20:27:42 +01:00
Thomas Adamcik
5e640979f4 Merge pull request #1493 from jodal/fix/1345-file-crashes-on-non-ascii-media-dir
file: Fix crash when media_dirs contains non-ASCII chars
2016-03-26 20:24:22 +01:00
Stein Magnus Jodal
095329ce82 docs: PR #1472 fixes #1469 2016-03-26 11:55:25 +01:00
Stein Magnus Jodal
8820a88e0c file: Fix crash when media_dirs contains non-ASCII chars
Fixes #1345
2016-03-26 11:30:35 +01:00
Stein Magnus Jodal
3e196a88cb Merge branch 'release-2.0' into develop 2016-03-26 09:59:27 +01:00
Stein Magnus Jodal
5a371b8ed0 Merge PR #1454 from dublok/fix/1454-endless-loop-if-no-playable-track 2016-03-26 09:51:30 +01:00
Stein Magnus Jodal
aafcf8559d docs: Add PR #1455 to changelog 2016-03-26 09:51:14 +01:00
Jens Luetjen
bf4da7a627 Add tests to ensure that play, next will not busy-loop
Test PlaybackController functions play(), next(), previous()
and _on_about_to_finish() that they will not loop forever
if all tracks are unplayable.
2016-03-26 09:43:38 +01:00
Jens Luetjen
6116705c1b Avoid endless loop in 'next' and 'previous'. 2016-03-26 09:43:38 +01:00
Jens Luetjen
a2f0d6960f Avoid endless loop if all tracks are unplayable.
Limit the number of tries for changing to the nest track.
The limit is 2 * tracklist length get all tracks in a shuffled playlist.
2016-03-26 09:43:38 +01:00
Thomas Adamcik
accd6bd1a9 docs: Add duration fix to changelog. 2016-03-25 15:18:13 +01:00
Thomas Adamcik
e9137e132a audio: Try and simplify logic for going to playing in scanner 2016-03-25 15:17:02 +01:00
SeeSpotRun
c972ecd1f2 scanner: fix newby logic error 2016-03-25 15:00:35 +01:00
SeeSpotRun
2d6f00b912 scanner: formatting to make travis / tox / flake8 happy 2016-03-25 15:00:35 +01:00
SeeSpotRun
6379f76889 scanner: minor simplification of timeout calculations 2016-03-25 15:00:35 +01:00
SeeSpotRun
57518861ea scanner: move _query_duration() into _process() 2016-03-25 15:00:35 +01:00
SeeSpotRun
3183f43b18 scanner: workaround for gstreamer not pushing tags before PREROLL
refer https://bugzilla.gnome.org/show_bug.cgi?id=763553
2016-03-25 15:00:35 +01:00
Thomas Adamcik
3c535409ad docs: Add buffer fix to changelog 2016-03-25 14:34:15 +01:00
Thomas Adamcik
793e425314 audio: Make buffer conversion work on older GStreamer installs 2016-03-25 13:11:07 +01:00
Thomas Adamcik
64a58e0662 audio: Move sample to data conversion to a helper.
Also add check for None buffer being returned.
2016-03-25 13:09:44 +01:00
Jens Luetjen
6faa19dbf3 Always unmap mapped buffer.
Always unmap the mapped memory, even in case of exception.
2016-03-25 12:55:00 +01:00
Jens Luetjen
f0788515cd Find images in audio files
Handle Gst.Sample as image in audio file tags (scaned with Gst1.0).
2016-03-25 12:54:44 +01:00
Thomas Adamcik
77358806de github: Fix typo 2016-03-25 12:44:39 +01:00
Stein Magnus Jodal
a1057eca54 github: Remove Markdown link 2016-03-23 19:47:37 +01:00
Stein Magnus Jodal
86b0327369 github: Tweak issues template 2016-03-23 19:45:59 +01:00
Thomas Adamcik
a372793cbe meta: Create placeholder ISSUE_TEMPLATE
We probably want more here, but it's a start.
2016-03-23 08:57:43 +01:00
Thomas Adamcik
20ba1fd90e Merge pull request #1481 from delftswa2016/develop
docs: Modify a mistake in annotations
2016-03-11 15:58:59 +01:00
Lina He
7fd989ac9b Modify a mistake in annotations
I found this mistake when reading the documentation of Mopidy. Just add
a "to"  to the annotation.
2016-03-11 15:19:18 +01:00
Jens Luetjen
58db550bd6 Register mopidy models for deserialization.
All from ValidatedImmutableObject derived classes are registered
for automatically deserialization by model_json_decoder().
2016-03-06 12:42:13 +01:00
Jens Luetjen
3eac589557 Try to restore state only one time.
Delete the persistant file after read. If something
goes wrong during restore, the next start is clean.
2016-02-29 20:47:11 +01:00
Stein Magnus Jodal
9c05cc8d05 Merge branch 'release-2.0' into develop 2016-02-22 12:43:13 +01:00
Stein Magnus Jodal
1e8bef25d3 audio: Set soft-volume flag on playbin 2016-02-22 12:42:56 +01:00
Jens Luetjen
854357a295 Merge branch 'develop' of https://github.com/mopidy/mopidy into fix/310-persist-mopidy-state-between-runs
Conflicts:
	mopidy/core/playback.py
	tests/core/test_playback.py

revert _backend_error_handling
revert endless loop prevention
2016-02-17 22:18:50 +01:00
Stein Magnus Jodal
75a365ea0d Merge branch 'release-2.0' into develop 2016-02-15 23:45:37 +01:00
Stein Magnus Jodal
6107254cb0 Merge branch 'master' into release-2.0 2016-02-15 23:45:02 +01:00