Commit Graph

64 Commits

Author SHA1 Message Date
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
Johannes Knutsen
df2381815c moved instantiation of DummyBackend 2009-12-24 00:11:41 +01:00
Johannes Knutsen
51c7769488 Removed unused import 2009-12-24 00:04:09 +01:00
Johannes Knutsen
4815a82c79 Added backend as constructor parameter to MpdHandler with dummy as default 2009-12-24 00:03:37 +01:00
Johannes Knutsen
605838fca9 Added dummy backend 2009-12-23 23:58:13 +01:00
Johannes Knutsen
e523bec7f9 Added initial backend methods and updated handler to call the backend 2009-12-23 23:53:00 +01:00
johannes
18eaeb0d64 Merge branch 'master' of git@github.com:jodal/mopidy 2009-12-23 23:26:58 +01:00
johannes
68dcb24ee9 added backend module and dummy base backend class 2009-12-23 23:26:44 +01:00
Stein Magnus Jodal
f0afb45394 Add support for returning dicts from handlers 2009-12-23 23:24:00 +01:00
Stein Magnus Jodal
80f900134b Test mopidy.handler 2009-12-23 23:06:16 +01:00
Stein Magnus Jodal
7fa3d5a509 Update how to install test dependencies 2009-12-23 22:51:07 +01:00
Stein Magnus Jodal
47d0949666 Add framework for testing 2009-12-23 22:15:53 +01:00