Commit Graph

1402 Commits

Author SHA1 Message Date
Stein Magnus Jodal
68a671414c Update MpdServer's docstrings 2011-06-04 17:38:03 +02:00
Stein Magnus Jodal
939a8f40d6 No need for splitting init and start of MpdSession 2011-06-04 17:18:46 +02:00
Stein Magnus Jodal
6d1bac0d72 Reorder methods and add comments to divide sections 2011-06-04 17:06:17 +02:00
Stein Magnus Jodal
08f085fd8d Refactor MpdDispatcher to use a filter model, like Java Servlets. Password authentication handling becomes much cleaner. 2011-06-04 02:21:14 +02:00
Stein Magnus Jodal
3fe276f32a Refactor MpdSession 2011-06-04 00:54:02 +02:00
Stein Magnus Jodal
a68bdae751 Move MPD authentication check from MpdSession to MpdDispatcher 2011-06-04 00:42:51 +02:00
Stein Magnus Jodal
1db84dccca Refactor MpdDispatcher.handle_request 2011-06-04 00:33:57 +02:00
Stein Magnus Jodal
c9506ca7e1 List 'kill' MPD command in 'notcommands' instead of 'commands' 2011-06-03 23:32:19 +02:00
Stein Magnus Jodal
7f7d79b21f Return permission error on use of MPD command 'kill' 2011-06-03 23:31:52 +02:00
Stein Magnus Jodal
c84639b197 Add MpdPermissionError exception 2011-06-03 23:25:00 +02:00
Stein Magnus Jodal
9545da4b4e Refactor MPD dispatcher 2011-06-03 22:37:05 +02:00
Stein Magnus Jodal
52ee117153 Merge branch 'feature/clean-shutdown' into feature/mpd-improvements 2011-06-03 22:35:48 +02:00
Stein Magnus Jodal
4db9c0139b Update TODO for MPD command 'kill' 2011-06-03 17:34:19 +02:00
Stein Magnus Jodal
30d6d6f29e Close client connection on MPD command 'close' 2011-06-03 17:18:38 +02:00
Stein Magnus Jodal
82381720e5 Add the current MpdSession to the MpdContext 2011-06-03 17:12:41 +02:00
Stein Magnus Jodal
acde68159a Use @property and memoization to delay backend/mixer proxy creation until it is needed 2011-06-03 17:06:32 +02:00
Stein Magnus Jodal
d4ab666b21 Update outdated docstrings in MpdSession 2011-06-03 16:57:48 +02:00
Stein Magnus Jodal
d57727282e Create new MpdContext object which is passed to command handlers 2011-06-03 16:34:47 +02:00
Stein Magnus Jodal
76d0314eff Replace 'frontend' with 'context' in MPD protocol impl 2011-06-03 16:08:53 +02:00
Stein Magnus Jodal
0e098e9b60 Replace not decodable characters returned from Spotify instead of crashing 2011-06-02 18:38:11 +02:00
Stein Magnus Jodal
3b27ba4746 Catch and log ActorDeadError in BaseThread 2011-05-25 23:06:15 +02:00
Stein Magnus Jodal
55bc7b19fb Remove dead code in BaseThread 2011-05-25 23:05:54 +02:00
Stein Magnus Jodal
fc9875bf3d Spotify albums may be None 2011-05-25 21:58:34 +02:00
Stein Magnus Jodal
63918ac3f3 Log a warning if MPD tries to communicate with dead actors. 2011-05-25 21:58:34 +02:00
Stein Magnus Jodal
86e90f14c6 Add MpdSystemError exception 2011-05-25 21:58:34 +02:00
Stein Magnus Jodal
1aa494c372 Merge pull request #100 from adamcik/feature/remove-taginject 2011-05-22 15:08:45 -07:00
Thomas Adamcik
94cae3be42 Lookup new source via property instead of name 2011-05-20 23:20:01 +02:00
Thomas Adamcik
35a169b8e7 Remove null output as it turns out we can run fine without any outputs 2011-05-20 22:30:59 +02:00
Thomas Adamcik
3ce42b2f6b Remove logging of taglist 2011-05-20 22:08:12 +02:00
Thomas Adamcik
6640e2da17 Use tag event to set tags instead of taginject which is a debug feature (fixes #93) 2011-05-20 22:02:14 +02:00
Stein Magnus Jodal
7d7fb8d906 Compare default passwords with the unmasked current password 2011-05-19 22:44:31 +02:00
Stein Magnus Jodal
6778718837 Remove 'Settings:' label and indentation of all settings 2011-05-19 22:38:16 +02:00
Stein Magnus Jodal
0b2b0c5c3c Show current setting value on same line as setting name 2011-05-19 22:37:09 +02:00
Stein Magnus Jodal
a760a7fdb4 Use pprint to format long setting values 2011-05-19 22:31:04 +02:00
Stein Magnus Jodal
7074b4928c Add some tests for --list-settings formatting 2011-05-19 22:30:09 +02:00
Stein Magnus Jodal
e53e0aa78f Update BaseOutput docs. Make build_bin() private. 2011-05-19 20:51:30 +02:00
Stein Magnus Jodal
31aaec8830 Update docs on GStreamer module. Some refactoring of (mostly internal) methods. 2011-05-19 20:13:29 +02:00
Thomas Adamcik
d57bb281c3 Fixed docs based on comments on pull request 2011-05-18 21:16:58 +02:00
Thomas Adamcik
eb5facd4b6 Add docstrings 2011-05-17 16:10:28 +02:00
Thomas Adamcik
801b3d1155 Switch to event probe based solution to removing outputs.
Based on http://lists.freedesktop.org/archives/gstreamer-devel/2009-August/023708.html
2011-05-17 01:21:50 +02:00
Thomas Adamcik
82bd77e24b Fixed use of callbacks to prevent removeall of broken output from stopping playback 2011-05-16 23:14:53 +02:00
Thomas Adamcik
2ef550eb7b Add error handling code for shoutcast errors 2011-05-16 22:01:30 +02:00
Thomas Adamcik
a4b03aa292 Cleanup some of output code api 2011-05-16 21:57:23 +02:00
Thomas Adamcik
94efb083ee Fixed list outputs method in GStreamer class 2011-05-16 21:55:00 +02:00
Thomas Adamcik
2174723620 Add conditional to message handler so that attached handlers can take over 2011-05-16 21:53:53 +02:00
Thomas Adamcik
943645aecf Add methods to register and register message handlers to GStreamer 2011-05-16 21:53:01 +02:00
Thomas Adamcik
fae784b71e Add on_remove and on_connect hooks to BaseOutput 2011-05-16 21:51:38 +02:00
Thomas Adamcik
64a6202ea1 Add gst MESSAGE_* constansts to BaseOutput 2011-05-16 21:50:02 +02:00
Thomas Adamcik
f7f26403af Move stop playback in error handler to after the error is logged to make cause and effect more obvious 2011-05-16 21:49:19 +02:00
Thomas Adamcik
09a1d646f2 Refactor BaseOutput to prepare for better error handling 2011-05-16 21:08:01 +02:00