Commit Graph

59 Commits

Author SHA1 Message Date
Stein Magnus Jodal
f88b7115d9 Give the backends an audio proxy on construction 2012-09-26 10:40:58 +02:00
Stein Magnus Jodal
402e3043f6 Steps before log setup should be outside try-except
If the steps before the log setup are inside the try-except and they fail, the
error will not be visible since the log system hasn't been set up yet. It is
better to not catch the exception so that the error will be visible.
2012-09-19 23:51:31 +02:00
Stein Magnus Jodal
aab37302a1 Rename mopidy.gstreamer to mopidy.audio 2012-09-14 01:05:42 +02:00
Thomas Adamcik
fd3bbc899f Merge branch 'develop' into feature/switch-to-gst-mixers
Conflicts:
	mopidy/core.py
2012-09-05 22:32:22 +02:00
Stein Magnus Jodal
4352eccdb0 Merge mopidy.core into mopidy.__main__ 2012-09-03 23:39:54 +02:00
Stein Magnus Jodal
9fc7e013ff Move main() into mopidy.core 2011-03-07 20:11:34 +01:00
Stein Magnus Jodal
19c4f1c09f Readd main() method, to not break bin/mopidy 2010-08-20 16:21:07 +02:00
Stein Magnus Jodal
976086ae65 Move options parsing, logging setup and settings validation into CoreProcess 2010-08-20 16:17:22 +02:00
Stein Magnus Jodal
79729e653b Make CoreProcess.setup() more functional to show dependencies explicitly 2010-08-20 12:54:18 +02:00
Stein Magnus Jodal
aba0cc3ef3 Remove redundant error handling, as all these cases are handled in BaseProcess 2010-08-20 12:34:13 +02:00
Stein Magnus Jodal
7f95a3b0ba Move initialization from main to core 2010-08-20 03:27:20 +02:00
Stein Magnus Jodal
60bca18b46 Run CoreProcess in the main process 2010-08-20 01:52:20 +02:00
Stein Magnus Jodal
f73800f8e4 Validate settings a tad later 2010-08-20 01:41:54 +02:00
Stein Magnus Jodal
560b8be86f Move log setup to mopidy.utils.log 2010-08-20 01:31:56 +02:00
Stein Magnus Jodal
88a4d64a59 Move MPD server into its own process 2010-08-20 01:24:56 +02:00
Stein Magnus Jodal
aede9762f8 Split BaseProcess snd CoreProcess into two files 2010-08-20 01:07:23 +02:00
Stein Magnus Jodal
5e10ad0e05 Replace SERVER and FRONTEND with a new FRONTENDS setting 2010-08-20 00:38:36 +02:00
Stein Magnus Jodal
da184ac896 Add '--list-settings' option 2010-08-17 02:34:10 +02:00
Stein Magnus Jodal
a8c736110f Move settings validation from module import to program start 2010-08-17 01:49:54 +02:00
Stein Magnus Jodal
e021863fd8 Fix broken import 2010-08-17 01:20:17 +02:00
Thomas Adamcik
a05212251b Pass output, backend and frontend classes into coreprocess to so that import errors are handeled better 2010-08-13 22:52:53 +02:00
Stein Magnus Jodal
11b8ab89c9 Fix support for IPv4 addresses in SERVER_HOSTNAME which was broken by new IPv6 support 2010-06-20 23:00:52 +02:00
Stein Magnus Jodal
a9923fcb23 Merge remote branch 'adamcik/gstreamer'
Conflicts:
	mopidy/mpd/frontend.py
	tests/mpd/frontend_test.py

GstreamerBackend now raises LookupError where the other backends just
returns None. We'll probably move in the direction of using LookupError
all over, but the changes to DummyBackend and generic tests was reverted
until BaseBackend, the backend API docs and the other backends are
updated to all raise LookupError.
2010-06-06 22:15:25 +02:00
Thomas Adamcik
feb0b3f5f3 Add logging marker 2010-05-05 23:54:53 +02:00
Stein Magnus Jodal
db20c86c80 Split logging setup into two functions 2010-05-05 22:52:09 +02:00
Stein Magnus Jodal
1660cccbea Fix missing options.debug 2010-05-05 19:42:16 +02:00
Thomas Adamcik
8361b137cc Rename debug option to dump 2010-05-05 19:21:47 +02:00
Thomas Adamcik
fc8b932723 Add file based debug logger 2010-05-05 18:33:05 +02:00
Thomas Adamcik
3c9ff6b13f Rename get_or_create_dotdir to get_or_create_folder and add tests 2010-05-01 21:03:11 +02:00
Stein Magnus Jodal
cf1fbda387 Fix more pylint violations 2010-05-01 11:46:59 +02:00
Stein Magnus Jodal
f16a70d2e4 Create ~/.mopidy in main and not when importing settings 2010-03-23 01:01:48 +01:00
Stein Magnus Jodal
3235d2a1ea Add --version option support 2010-03-22 23:42:02 +01:00
Stein Magnus Jodal
7a5850d3b1 Fail before second thread is started if MPD server cant start 2010-03-20 12:24:13 +01:00
Stein Magnus Jodal
7749de7045 Log SystemExit exceptions as errors 2010-03-20 12:22:21 +01:00
Stein Magnus Jodal
55cc5b681d Formatting 2010-03-20 12:05:17 +01:00
Stein Magnus Jodal
f8c440d849 Add -v and -q options for more or less output 2010-03-20 11:48:39 +01:00
Stein Magnus Jodal
2819d21bf9 Rename mopidy.core to mopidy.process 2010-03-20 11:31:09 +01:00
Stein Magnus Jodal
b4bc81e19e Move utility functions to mopidy.utils 2010-03-20 03:22:44 +01:00
Stein Magnus Jodal
e5be3ea640 Remove plan for server in own process. Remove redundant blocking of server until CoreProcess is ready. 2010-03-20 01:06:22 +01:00
Stein Magnus Jodal
0e0a9e67dd Move MpdHandler usage from MpdSession to CoreProcess 2010-03-20 00:36:43 +01:00
Stein Magnus Jodal
feda5db67f Move backend init into new CoreProcess 2010-03-19 22:52:49 +01:00
Stein Magnus Jodal
194f0e543e Move mixer initialization from main() into backend 2010-03-19 22:05:43 +01:00
Stein Magnus Jodal
be9614da32 Add todo list for multiprocessing branch 2010-03-19 21:55:41 +01:00
Stein Magnus Jodal
34b7f679f5 Move mopidy.__main__._get_class to mopidy.get_class 2010-03-19 21:55:17 +01:00
Stein Magnus Jodal
b1ece22032 Move mopidy.exceptions.SettingError to mopidy.SettingsError 2010-03-08 20:34:57 +01:00
Stein Magnus Jodal
523216d0fd Add mixer API and rewrite ALSA mixer hack 2010-03-07 23:48:50 +01:00
Stein Magnus Jodal
5fa21d237d Get rid of mopidy.config 2010-02-23 00:11:53 +01:00
Stein Magnus Jodal
b45fe37a0f docs: Document settings 2010-02-21 16:15:46 +01:00
Thomas Adamcik
135664da4d Add logging of which backend is loaded 2010-02-06 02:35:57 +01:00
Stein Magnus Jodal
a0988d4733 Remove unused import 2010-02-06 02:32:00 +01:00