Commit Graph

95 Commits

Author SHA1 Message Date
Stein Magnus Jodal
f9ceb70a35 Rename get_mpd_version() to get_mpd_protocol_version() 2009-12-26 13:26:16 +01:00
Stein Magnus Jodal
09eb18e3e3 Add missing "-s to command patterns 2009-12-26 06:09:25 +01:00
Stein Magnus Jodal
06922b0036 Split some long command regexps into multiple patterns 2009-12-26 05:50:01 +01:00
Stein Magnus Jodal
01eb9ac61a Add bitrate to 'status' response 2009-12-26 05:26:42 +01:00
Stein Magnus Jodal
21b7f9221f Add instructions on how to add Spotify username and password to local_settings.py 2009-12-26 05:24:56 +01:00
Stein Magnus Jodal
077f13a5dd Add tracking of time position in track 2009-12-26 05:08:51 +01:00
Johannes Knutsen
4b13e4ad33 Don't return current song when state is stop 2009-12-26 04:16:29 +01:00
Stein Magnus Jodal
1f967b3213 Add 'play' command which starts the last played track 2009-12-26 04:02:59 +01:00
Johannes Knutsen
9cec5ef768 corrected tests to ensure OK is sent on search 2009-12-26 04:01:53 +01:00
Johannes Knutsen
30c4131841 Updated tests to assume implemented methods 2009-12-26 03:55:36 +01:00
Johannes Knutsen
d07300666b added search to spotify backend to satisfy sonata 2009-12-26 03:52:20 +01:00
Stein Magnus Jodal
c044ecb9d3 Catch MpdAckErrors in session too 2009-12-26 03:51:34 +01:00
Johannes Knutsen
c9ba7341fc added search to spotify backend to satisfy sonata 2009-12-26 03:51:26 +01:00
Stein Magnus Jodal
7a96672f0e Return 'ACK Not implemented' instead of 'OK' for unimplemented commands 2009-12-26 03:46:54 +01:00
Johannes Knutsen
148d3c55a2 added status time 2009-12-26 03:35:10 +01:00
Stein Magnus Jodal
46bc8798f8 Move most of handle_response from session to handler 2009-12-26 03:20:45 +01:00
Stein Magnus Jodal
814eb98b83 Add command_list_ok_begin support, ack exceptions 2009-12-26 02:44:32 +01:00
Johannes Knutsen
8bd6d5092e added song and songid to status and handling of prev/next commands 2009-12-26 02:21:47 +01:00
Johannes Knutsen
0606d82e69 added next, previous and current songpos to backends 2009-12-26 02:15:49 +01:00
Stein Magnus Jodal
c22fd44760 Add support for returning lists of two-tuples since we dont have ordered dicts 2009-12-25 22:45:51 +01:00
Stein Magnus Jodal
c4aef48915 Return dict from _update() 2009-12-25 22:23:20 +01:00
Stein Magnus Jodal
13f0cea299 Test that playback commands change the play state 2009-12-25 21:46:59 +01:00
Stein Magnus Jodal
08a095530f Add 'pause' support to Spotify backend 2009-12-25 21:38:25 +01:00
Stein Magnus Jodal
dc69494866 Reorder methods 2009-12-25 21:21:49 +01:00
Stein Magnus Jodal
690897d6e7 Format playlists with correct songpos 2009-12-25 21:21:17 +01:00
Stein Magnus Jodal
a4975f008d Merge branch 'master' of git@github.com:jodal/mopidy 2009-12-25 21:07:04 +01:00
Stein Magnus Jodal
837ef248d9 Move play state from SpotifyBackend to BaseBackend 2009-12-25 21:06:55 +01:00
Stein Magnus Jodal
18f2f01236 Implement SpotifyBackend.playlist_info() correctly 2009-12-25 21:05:15 +01:00
Johannes Knutsen
da8c48837f Merge branch 'master' of git@github.com:jodal/mopidy 2009-12-25 21:01:19 +01:00
Johannes Knutsen
73dae615a4 added command list tests 2009-12-25 21:01:03 +01:00
Stein Magnus Jodal
1c6b4f0950 Add currentsong support to Spotify backend. Got to keep track of current mode (play/pause/stop) ourselves. 2009-12-25 20:39:32 +01:00
Johannes Knutsen
7a6ea8736c added command_list_begin and command_list_end support by buffering responses 2009-12-25 20:30:33 +01:00
Stein Magnus Jodal
f9c156014d Split out track formatting to own method. Fix display of tracks with multiple artists. 2009-12-25 20:08:32 +01:00
Stein Magnus Jodal
71d935cbee Fix search command pattern 2009-12-25 20:02:20 +01:00
Stein Magnus Jodal
fb4215a292 Rename all internal methods in SptifyBackend 2009-12-25 18:40:39 +01:00
Stein Magnus Jodal
9f3a5a2307 Pass terminator to asynchat in same encoding as the data it is applied to 2009-12-25 18:24:24 +01:00
Stein Magnus Jodal
e1305bd3c4 Refactor SpotifyBackend to use properties on self which encapsulates logic and caching instead of working directly on the Spotify session 2009-12-25 18:10:40 +01:00
Stein Magnus Jodal
81f7c4969b Move backend initialization from MpdServer to main() 2009-12-25 17:21:17 +01:00
Stein Magnus Jodal
c5f6c4c2a6 Add test for 'lsinfo' command 2009-12-25 17:20:42 +01:00
Johannes Knutsen
b022a7d4b7 changed from encode to decode spytify strings 2009-12-25 16:42:35 +01:00
Johannes Knutsen
e6b7c3dc30 encode spotify track data to utf-8 2009-12-25 16:38:34 +01:00
Johannes Knutsen
258f6c62e9 Merge branch 'master' of git@github.com:jodal/mopidy 2009-12-25 16:19:43 +01:00
Johannes Knutsen
daaa35052f Added double quoting in arguments to tests 2009-12-25 16:19:20 +01:00
Johannes Knutsen
e691bcafa5 added play_id to base backend 2009-12-25 16:18:53 +01:00
Stein Magnus Jodal
5fbf5c5530 Remove 'global' statements 2009-12-25 16:16:28 +01:00
Johannes Knutsen
73c26903d1 resolved conflict 2009-12-25 16:15:08 +01:00
Johannes Knutsen
be7a3de9af loads spotify playlists and plays songs 2009-12-25 16:08:50 +01:00
Stein Magnus Jodal
671ccd8e82 Exit if SPOTIFY_{USERNAME,PASSWORD} is not set 2009-12-25 16:00:41 +01:00
Stein Magnus Jodal
256e5e685a Move instantiation of backend from handler to server as the same backend should be used for multiple (simultaneous) sessions 2009-12-25 15:54:44 +01:00
Stein Magnus Jodal
3f41fc8df7 Add 'urlhandler' command 2009-12-25 15:37:25 +01:00