Commit Graph

75 Commits

Author SHA1 Message Date
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
Stein Magnus Jodal
5c64a39ad4 Add empty handlers for music database commands 2009-12-25 15:24:47 +01:00
Johannes Knutsen
f15967bcf3 added double-quotes on playlistinfo argument 2009-12-25 14:43:52 +01:00
Stein Magnus Jodal
3a4956cf43 Fix missing test coverage 2009-12-25 13:58:27 +01:00
Stein Magnus Jodal
f42c253d14 Unicode dammit 2009-12-24 14:28:57 +01:00
Stein Magnus Jodal
88a9a30162 Update spytify instructions 2009-12-24 13:25:18 +01:00
Stein Magnus Jodal
e22194284d Rename some backend methods 2009-12-24 04:11:09 +01:00
Stein Magnus Jodal
8b29170c9b Unbreak tests. Update some message formats to match Sonata. 2009-12-24 03:40:33 +01:00
Johannes Knutsen
b434fe3551 Merge branch 'master' of git@github.com:jodal/mopidy 2009-12-24 03:18:46 +01:00
Johannes Knutsen
455b920f93 added some more spotify commands and merged session and handler code 2009-12-24 03:18:38 +01:00
Stein Magnus Jodal
6ee09cb7b7 Handle empty requests like old MPD 2009-12-24 03:15:39 +01:00
Stein Magnus Jodal
9dcb2dcbfa Implement 'kill' 2009-12-24 03:10:32 +01:00
Stein Magnus Jodal
d4399b43de Fix broken test 2009-12-24 02:57:44 +01:00
Johannes Knutsen
97cd65ca33 added local_settings.py to gitignore 2009-12-24 02:57:37 +01:00
Johannes Knutsen
349246b961 Added initial spotify backend which lists playlists 2009-12-24 02:57:16 +01:00
Stein Magnus Jodal
2d33a191d5 Implement 'close' 2009-12-24 02:56:21 +01:00
Stein Magnus Jodal
4f438a0738 Add empty handlers for connection handling 2009-12-24 02:43:13 +01:00
Stein Magnus Jodal
8ddb3554ba Add empty handlers for handling of the saved playlists 2009-12-24 02:33:15 +01:00
Stein Magnus Jodal
ec048bdd99 Add empty handlers for handling of the current playlist 2009-12-24 02:13:13 +01:00
Stein Magnus Jodal
9e46ab48da Add empty handlers for the majority of the MPD protocol 2009-12-24 01:13:40 +01:00
Johannes Knutsen
a00f9d9834 Split statuses in to separate methods in the backend 2009-12-24 00:26:46 +01:00