Commit Graph

1934 Commits

Author SHA1 Message Date
Stein Magnus Jodal
5a628a4150 MPRIS: Rename self.backend to self.core 2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
2fb878df2e MPD: Rename context.backend to context.core 2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
2fdeec9f5a Move controllers to a new core actor
The frontends use the new core actor, while the core actor uses the backend.

This is a step towards supporting multiple backends, where the core actor will
coordinate the backends.
2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
c5ef8431c3 Remove unused imports 2012-09-27 20:09:31 +02:00
Stein Magnus Jodal
5dd67fa7a7 Remove reverse dependency on the stored playlists controller 2012-09-27 02:10:03 +02:00
Stein Magnus Jodal
061c155f1e Remove reverse dependency on the library controller 2012-09-27 02:03:48 +02:00
Stein Magnus Jodal
f80979517d Refactor Spotify track position tracking
- Moved to its own class, so it can easily be removed in the future if we get
  GStreamer based track position working for appsrc.
- Now tracks playback state itself, to not depend on the playback controller.
2012-09-26 22:13:46 +02:00
Stein Magnus Jodal
5265609610 MPRIS: New BackendListener.seeked() signature 2012-09-26 22:12:38 +02:00
Stein Magnus Jodal
4ba5395cc0 Remove unused imports 2012-09-26 14:39:22 +02:00
Stein Magnus Jodal
53d6156227 Give SpotifySessionManager audio and backend proxies on construction 2012-09-26 10:40:58 +02:00
Stein Magnus Jodal
f88b7115d9 Give the backends an audio proxy on construction 2012-09-26 10:40:58 +02:00
Stein Magnus Jodal
66f476e85a Fix typo 2012-09-26 10:08:59 +02:00
Stein Magnus Jodal
90a538c595 Move wall clock-based time position into Spotify backend 2012-09-25 15:43:08 +02:00
Stein Magnus Jodal
2237e4f5a1 Move optional wall clock-based position tracking down to the playback provider 2012-09-25 12:10:25 +02:00
Stein Magnus Jodal
ef17e36a1a Remove LocalPlaybackController 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
81fca7d686 Switch to time position from provider 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
f061375316 Override get_time_position() in the dummy backend 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
b60e6806ce Add get_time_position() to playback provider interface 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
12d6ce53dd Send new time position to 'seeked' listeners 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
28e5ed8b2e Send old and new state to playback_state_changed listeners 2012-09-25 11:18:26 +02:00
Stein Magnus Jodal
7d4b605ee5 Update version number to 0.8.0 2012-09-20 01:01:38 +02:00
Stein Magnus Jodal
7fda9dc198 MPD: Fix copy-paste error in docs 2012-09-20 00:28:46 +02:00
Stein Magnus Jodal
6451519d2a MPD: Support 'playid 0' without quotes around id 2012-09-20 00:28:30 +02:00
Stein Magnus Jodal
49201def74 Fix NameError caused by change to module imports 2012-09-19 23:54:41 +02:00
Stein Magnus Jodal
402e3043f6 Steps before log setup should be outside try-except
If the steps before the log setup are inside the try-except and they fail, the
error will not be visible since the log system hasn't been set up yet. It is
better to not catch the exception so that the error will be visible.
2012-09-19 23:51:31 +02:00
Stein Magnus Jodal
0c9966197b Make log output consistent with --list-deps output 2012-09-19 13:34:18 +02:00
Stein Magnus Jodal
772185ddc9 Make first log line prettier 2012-09-19 02:40:51 +02:00
Stein Magnus Jodal
36698d1ae6 Hack to fix random test failure
With Pykka 0.16, test_status_method_when_playing_contains_time_with_length
fails now and then because play_time_started is not initialized before it is
used as an int.

I'm allowing myself to fix this in the simplest way possible instead of
tracking the issue down, since I'm already working on a refactor of the time
position code.
2012-09-19 02:03:51 +02:00
Stein Magnus Jodal
d1d5a084a2 Log Spotify playlist loading completion on INFO level 2012-09-19 01:05:02 +02:00
Thomas Adamcik
8f045b6d6b Update documentaion and changelog with respect to software mixing and playbin2 switch. 2012-09-18 23:56:58 +02:00
Thomas Adamcik
9866d78c65 Re-add software mixing, fixes #203. 2012-09-18 23:49:29 +02:00
Thomas Adamcik
413c22e117 Move mixer track out to it's own attribute. 2012-09-18 23:41:39 +02:00
Thomas Adamcik
71682d3d9f Switched over to playbin2 for audio playback.
Covers first half of #171 which is simply an port of the functionality we used
to have. Second half is actually taking advantage of playbin2 with respect to EOT
handling etc.
2012-09-18 22:50:57 +02:00
Stein Magnus Jodal
6b01e612a3 Merge pull request #200 from adamcik/feature/local-scanner-fixes
Fix for #189 and other cleanups
2012-09-16 14:04:06 -07:00
Thomas Adamcik
a707daf458 Add tests for expand_path and fix ordering.
Expansions need to happen before abspath is called or else result is wrong.
2012-09-16 22:26:44 +02:00
Thomas Adamcik
dda5e5261a Move and rename expand_path to mopidy.utils.path
Also switches a bit move of mopidy.utils.settings over to module imports and
double spaces between functions.
2012-09-16 22:07:59 +02:00
Stein Magnus Jodal
0c674c5341 Remove dead code 2012-09-16 21:30:02 +02:00
Stein Magnus Jodal
f9a9d264dc Log and exit if output setup causes LinkError 2012-09-16 20:28:01 +02:00
Thomas Adamcik
6cc57701f9 Update parse_m3u to allow caller to decide what location playlist is relative to. 2012-09-16 19:28:15 +02:00
Thomas Adamcik
c2e1b0d672 Use find_files() as an iterator in scanner. 2012-09-16 18:17:28 +02:00
Thomas Adamcik
7ceb530064 Updated find files to ignore hidden files and folders. 2012-09-16 18:14:11 +02:00
Thomas Adamcik
355ff811af Add $XDG_name_DIR substitution to _FILE and _PATH settings.
This change removes the practice of hardcoding fallbacks to these paths outside
of the base settings file. We can probably get rid of some of the location
CONSTANTS that are currently in use in mopidy/__init__.py
2012-09-16 18:03:07 +02:00
Thomas Adamcik
3cf1b13d49 Cleanup mopidy.utils.settings.
- Move to module import for stdlib
- Extract path manipulation code to a method
- Avoid uneeded copying of settings dict by binding current localy.
2012-09-16 17:47:51 +02:00
Thomas Adamcik
e3bc0e79b9 Fix bug in local playlist handling. 2012-09-15 15:18:50 +02:00
Thomas Adamcik
e6485e4abe Add basic docs for Audio API, fixes #177. 2012-09-15 14:01:05 +02:00
Stein Magnus Jodal
fd60d42be6 Make LocalPlaybackProvider the default implementation of BasePlaybackProvider 2012-09-14 02:08:23 +02:00
Stein Magnus Jodal
2321a77e37 docs: Fix Sphinx warning 2012-09-14 01:45:27 +02:00
Stein Magnus Jodal
2ba05f9405 Add PlaybackState enum 2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
4dd95804f2 Rename mopidy.mixers to mopidy.audio.mixers 2012-09-14 01:05:42 +02:00
Stein Magnus Jodal
aab37302a1 Rename mopidy.gstreamer to mopidy.audio 2012-09-14 01:05:42 +02:00