Commit Graph

3403 Commits

Author SHA1 Message Date
Thomas Adamcik
1f544038b0 Setup about to finish handling for proper EOT support.
With this change we ask the core.playback system to set the next tracks uri and
otherwise update state as needed. With this change we should be able to support
streaming oggs and gapless playback to mention a few of items this fixes.

On the down side, this change breaks test_end_of_track_skips_to_next_track_on_failure
as there is no clean way to handle this with the async nature of this EOT
handling.
2012-12-12 23:02:59 +01:00
Thomas Adamcik
2a391f23e1 Use source's factory name to determine type.
Checking the URI inside the new-source handler turned out to tickle some issue
that gave us deadlocks. Getting the source and checking which factory created
it is much safer.
2012-12-12 22:58:49 +01:00
Thomas Adamcik
3a9ce05b7c Add change track to playback providers.
This method is intended to make implementing EOT handling much more streamlined
by adding a way to easily just change the URI and any other state without
messing with gstreamer pipe states

Naming of this is a bit unfortunate as it is not the same as the
core.playback's concept of change_track. At least not yet
2012-12-12 22:57:19 +01:00
Thomas Adamcik
e00b590ae9 Detangle EOT and EOS.
This commit tries to detangle EOS from EOT which we have incorrectly
intermingled. EOS events should only be happening at the end of the playlist
when we are about to stop. EOT handling has been removed / broken in this
change, and will need to be re-added with proper tests.
2012-12-12 22:57:19 +01:00
Stein Magnus Jodal
ac4411ec83 spotify: Make session manager work with pyspotify 1.9 _and_ 1.10 2012-12-12 16:08:16 +01:00
Stein Magnus Jodal
d537b875c1 Merge pull request #271 from mattjbray/fix-session-initialisation
Fix to work with pyspotify develop/1.10
2012-12-12 07:02:02 -08:00
Stein Magnus Jodal
f5dc5aba83 docs: Add HTTP clients page 2012-12-12 14:03:43 +01:00
Stein Magnus Jodal
f302949ea9 tests: Use empty tag cache in all local backend tests 2012-12-12 13:43:41 +01:00
Stein Magnus Jodal
3d86610dfe scanner: Better info logging 2012-12-12 12:22:53 +01:00
Stein Magnus Jodal
40aa6db3c4 docs: Fix Sphinx syntax 2012-12-11 11:31:36 +01:00
Stein Magnus Jodal
cdda3bc5dd scanner: Add -q and -v options for controlling log output 2012-12-11 11:00:42 +01:00
Stein Magnus Jodal
beac2e80ed mpd: Use file:// URIs in tag_cache
file:// URIs are uriencoded, and will thus conserve the encoding of the file
paths. We cannot just convert file paths in other encodings to UTF-8, because
then we won't find the files we point to.
2012-12-11 10:29:43 +01:00
Matt Bray
30a5fd06c2 Fix for updates to pyspotify
Pyspotify now creates the session in
`pyspotify.SpotifySessionManager.__init__` (rather than in `.connect`) -
see [here][1].  Therefore it seems best not to set `self.session = None`
in `mopidy.SpotifySessionManager.__init__` or `self.session = session`
in `logged_in`.

[1]: 483f757430 (L1R39)
2012-12-10 00:07:27 +00:00
Stein Magnus Jodal
4e4df2adf2 js: Make library inclusion order stable 2012-12-04 13:23:57 +01:00
Stein Magnus Jodal
b14c89dbf1 js: Make connect() public, and document autoConnect/connect() 2012-12-04 13:23:43 +01:00
Stein Magnus Jodal
74cbb91cfb docs: Add Mopidy.js to changelog 2012-12-04 13:02:14 +01:00
Thomas Adamcik
4cf1e5ffb8 Merge pull request #262 from jodal/feature/mopidy.js
Mopidy.js: Mopidy's core API in JavaScript
2012-12-04 01:52:49 -08:00
Stein Magnus Jodal
68a6f2f8aa js: Doc how to clean up after Mopidy.js 2012-12-04 09:23:32 +01:00
Stein Magnus Jodal
8d3fd46808 js: Add close() method to close WebSocket without reconnecting 2012-12-04 09:18:34 +01:00
Stein Magnus Jodal
43316babcd js: Remove trailing whitespace 2012-12-04 09:05:52 +01:00
Stein Magnus Jodal
b807c38b01 js: Upgrade BANE to 0.4 2012-12-04 09:04:16 +01:00
Stein Magnus Jodal
126b7815d0 js: Document parameter handling 2012-12-03 23:08:40 +01:00
Stein Magnus Jodal
ddd3d6ba98 js: 'params' and 'description' is from the Python API 2012-12-03 23:05:25 +01:00
Stein Magnus Jodal
d860ab0ae0 js: Document behavior on calls when we're offline 2012-12-03 23:02:24 +01:00
Stein Magnus Jodal
b5c5bcd645 js: Fix grammatical error 2012-12-03 22:59:01 +01:00
Stein Magnus Jodal
510b821db8 docs: Formatting 2012-12-03 00:30:26 +01:00
Stein Magnus Jodal
006e411cd8 docs: Update changelog 2012-12-03 00:28:54 +01:00
Stein Magnus Jodal
dd9f0497ea js: Document Mopidy.js usage 2012-12-03 00:06:44 +01:00
Stein Magnus Jodal
accf018ae8 js: Add concatenated and minified versions of mopidy.js 2012-12-03 00:06:34 +01:00
Stein Magnus Jodal
7f2e2a8faa scanner: Test invalid date 2012-12-02 15:48:02 +01:00
Stein Magnus Jodal
3473b9c902 scanner: Update test case 2012-12-02 15:45:54 +01:00
Stein Magnus Jodal
4889d2a928 scanner: Ignore invalid dates 2012-12-02 15:44:09 +01:00
Stein Magnus Jodal
c54a9c3260 docs: Add HTTP frontend to changelog 2012-12-01 17:31:27 +01:00
Stein Magnus Jodal
3f8b5affe0 tests: Ignore http tests if ws4py is missing 2012-12-01 17:24:34 +01:00
Stein Magnus Jodal
7f570de239 js: Polyfill console inside our own namespace 2012-12-01 17:18:06 +01:00
Stein Magnus Jodal
b62d4d5374 js: Add console polyfill 2012-12-01 15:06:20 +01:00
Stein Magnus Jodal
e51fbd19fd Merge branch 'develop' into feature/mopidy.js 2012-12-01 11:36:19 +01:00
Stein Magnus Jodal
ac6cecd2f8 backends: Add BackendListener.on_event() 2012-12-01 11:21:06 +01:00
Stein Magnus Jodal
959bd6cd84 audio: Add AudioListener.on_event() 2012-12-01 11:20:44 +01:00
Stein Magnus Jodal
ec66cae784 tests: Ignore http tests if cherrypy is missing 2012-12-01 10:48:54 +01:00
Stein Magnus Jodal
5422d85f5b utils: Include ws4py in --list-deps 2012-12-01 09:58:21 +01:00
Stein Magnus Jodal
9ec53bb3b7 utils: Include cherrypy in --list-deps 2012-12-01 09:56:28 +01:00
Thomas Adamcik
1ee2935867 Merge pull request #235 from jodal/feature/http-frontend
HTTP/WebSocket frontend
2012-11-30 19:02:08 -08:00
Stein Magnus Jodal
430d604509 http: Revised the HTTP frontend docs 2012-11-30 23:50:55 +01:00
Stein Magnus Jodal
d6a906a723 http: No need to copy dict 2012-11-30 23:15:13 +01:00
Stein Magnus Jodal
2edc884e76 http: Override CoreListener.on_event() instead of the specific event handlers 2012-11-30 22:41:13 +01:00
Stein Magnus Jodal
6238f55ae2 core: Add CoreListener.on_event()
The `on_event()` method is called on all events. By default, it forwards the
event to the specific event handler methods. It's also a convenient method to
override if you want to handle all events in one place.
2012-11-30 22:39:37 +01:00
Stein Magnus Jodal
90859c903b http: Add favicon 2012-11-30 21:57:35 +01:00
Stein Magnus Jodal
0423d5289b http: Mark security and API stability sections as warnings 2012-11-30 18:26:25 +01:00
Stein Magnus Jodal
3c56f6cbce js: Use and all over 2012-11-30 12:04:47 +01:00