Commit Graph

3587 Commits

Author SHA1 Message Date
Stein Magnus Jodal
77128e4b68 flake8: Fix new warnings after flake8 upgrade
(cherry picked from commit a693993905)

Conflicts:
	mopidy/audio/actor.py
	mopidy/audio/playlists.py
2015-02-12 23:14:17 +01:00
Stein Magnus Jodal
6af624a369 Bump version to 0.19.5 2014-12-24 00:37:33 +01:00
Stein Magnus Jodal
c6ff9eee86 playback: Remove skipped track on next in consume mode
Also adds core level tests of consume behavior on next/prev/eot.

Fixes #902
2014-12-24 00:04:41 +01:00
Stein Magnus Jodal
302bb7c221 ext: Fix unpacking of VersionConflict exception
Fixes #911
2014-12-23 22:58:19 +01:00
Stein Magnus Jodal
fcf39833ca config: Support UTF-8 in default config
Fixes issue reported at https://discuss.mopidy.com/t/428.

Mopidy-HTTP-Kuechenradio includes a non-ASCII UTF-8 character in its
default config. If Mopidy didn't already have a config file, it crashed
when trying to create the initial config file based on the default
config of all available extensions.
2014-12-23 22:21:10 +01:00
Stein Magnus Jodal
aa3b8ab5f8 path: Support unicode content when creating file 2014-12-23 22:21:10 +01:00
Thomas Adamcik
94bdb88b9c http: Log errors instead of dying for HTTP startup.
(cherry picked from commit 9a2f8a3e4f)

Conflicts:
	docs/changelog.rst
2014-12-21 23:46:35 +01:00
Thomas Amland
d2bf3f6d83 [local] fix modified files not being updated
(cherry picked from commit dfd897832a)
2014-12-16 23:31:00 +01:00
Thomas Adamcik
b365d2494b mpd: Remove "Comment" tag type from translator output.
Newer versions of the protocol have removed this tag, so we should as well.
This also works around the issue of #881 which was breaking things with
newlines in comment fields.

The readcomments command seems to replace this, but it seems to only care about
specific extra tagtypes, not the general comment tag we normally collect when
scanning things.

(cherry picked from commit 08a8d5c43b)
2014-12-16 23:30:38 +01:00
Stein Magnus Jodal
6e55435aa9 mpd: Enable browsing of empty dirs
This was disabled together with a bunch of other changes without any
explanation in commit f24ca36e5a. I'm
guessing that this wasn't intentional, and no test covered the case.

(cherry picked from commit 4e508cd017)
2014-12-16 23:25:31 +01:00
Stein Magnus Jodal
4a6e7d292c docs: Don't refer to the tracklist as a playlist 2014-11-25 21:37:55 +01:00
Stein Magnus Jodal
680dbffc0c models: Make all fields default to None or empty collection
(cherry picked from commit abed15b9e4)
2014-11-04 21:27:29 +01:00
Stein Magnus Jodal
a4b17a9aa8 models: Fix equality for fields set to the default
Fixes #837

(cherry picked from commit bdd1fb983b)
2014-11-04 20:17:20 +01:00
Stein Magnus Jodal
88d64044de models: Hide empty lists from repr()
(cherry picked from commit 305a76486d)

Conflicts:
	docs/changelog.rst
2014-11-04 20:17:13 +01:00
Stein Magnus Jodal
c9b0101e76 docs: Make extensiondev example and API docs for validate_environment() match
(cherry picked from commit 31c874b3eb)
2014-10-13 23:19:30 +02:00
Stein Magnus Jodal
e1ab70e1e9 Bump version to 0.19.4 2014-09-01 23:08:59 +02:00
Stein Magnus Jodal
83e779eaaf http: Guard against double close of WebSocket 2014-08-30 00:25:43 +02:00
Stein Magnus Jodal
f1096d332c local: Move constant to Library class
Related to #833
2014-08-29 21:28:42 +02:00
Stein Magnus Jodal
69c3e107a2 local: Add ROOT_DIRECTORY_URI constant
Related to #833
2014-08-29 14:02:08 +02:00
Stein Magnus Jodal
0e60730704 backends: Update browse() signature and docs to match core implementation
Fixes #833
2014-08-29 13:50:12 +02:00
Stein Magnus Jodal
2830784703 Merge pull request #827 from trygveaa/fix/network-thread-issue
network: disable_recv before telling actor to close connection
2014-08-29 13:36:48 +02:00
Stein Magnus Jodal
1484514224 main: Log uncaught exceptions
(cherry picked from commit 027b7a53fe)
2014-08-16 23:20:43 +02:00
Trygve Aaberge
265951bf00 network: disable_recv before telling actor to close connection
As of d62ad96, when the connection can't receive more data from the
client, it tells the actor to stop the connection and calls
disable_recv(). The actor operates in it's own thread and when it stops
the connection, disable_recv is being called again from a different
thread. Since the actor is told to stop the connection before
disable_recv is called, the two calls to disable_recv may happen
simultaneously.

This causes a race condition issue where both threads can reach past the
check that recv_id is not None before either of them set it to None. If
one of them set it to None before the other one tries to use it, an
error is raised.

This commit calls disable_recv before telling the actor to stop the
connection. Since disable_recv is a blocking call, this ensures that
recv_id is being set to None before the actor thread begins to stop the
connection.

Fixes #781
2014-08-14 01:58:48 +02:00
Trygve Aaberge
f0b66bdfcb main: Ensure that exit_status_code always is assigned
KeyboardInterrupts are not always catched in commands.py. As far as I
have seen, if I/O operations are ongoing, a KeyboardInterrupt may be
raised there instead of in commands.py. In some cases, this may cause
loop.run() to return, which previously resulted in exit_status_code
being referenced before assignment.
2014-08-13 01:21:03 +02:00
Trygve Aaberge
584484379a config: Only load .conf-files when loading directories 2014-08-11 16:21:34 +02:00
Trygve Aaberge
9e41eff187 config: Support passing directories to mopidy --config 2014-08-11 14:48:04 +02:00
Trygve Aaberge
0863a813fa main: Return status code 1 if {Backend,Frontend,Mixer}Error is raised 2014-08-11 13:43:18 +02:00
Trygve Aaberge
bac3bfb7a2 log: Don't disable loggers when loading fileConfig
The default when loading config for logging from a file is to disable
existing loggers. Since some loggers are created before logging is set
up, these loggers were disabled if logging/config_file is set.

(cherry picked from commit cb0387c46d)

Conflicts:
	docs/changelog.rst
2014-08-11 13:00:01 +02:00
Trygve Aaberge
210e1705e7 mpd: Fix list commands with 3 arguments (fixes #817)
List commands with 3 arguments should return albums, not artists.

(cherry picked from commit ec413126f1)
2014-08-05 23:52:46 +02:00
Stein Magnus Jodal
dc80f17296 Bump version to 0.19.3 2014-08-03 23:34:25 +02:00
Stein Magnus Jodal
837fb00fb7 Fail early if extension doesn't implement setup()
Fixes #813
2014-08-03 23:13:14 +02:00
Thomas Adamcik
8376286e7e zeroconf: Fix intermittent dbus/avahi exception
This fixes an issue where I sometimes would get an error from dbus
'Unable to guess signature from an empty list'. After some digging
and checking the avahi dbus specs I found they expect the text list
to have a signature of 'aay' (an array of arrays containing bytes).
So instead of using python lists we now use a 'typed' dbus array.

It is not clear to me why this is a heisenbug, but this fix does
seem to make it go away.

(cherry picked from commit 80f5c9158d)
2014-08-03 15:18:55 +02:00
Thomas Adamcik
1b8feefcdc audio: Link to context of why we demote jack sinks
(cherry picked from commit 29019d94af)
2014-07-30 00:30:13 +02:00
Arjun Naik
f4777e50c2 Fixed long line Flake8 warning. 2014-07-27 14:33:34 +00:00
Arjun Naik
4d5f60fd06 Workaround for RasPi selecting jack server. 2014-07-27 11:41:27 +00:00
Stein Magnus Jodal
c3011c132d Merge pull request #796 from ifosch/gh662
Fix negative track lengths on radio streams. Fixes #662.
2014-07-26 16:50:48 +02:00
Ignasi Fosch
b13505ea45 Fix the Line too long lint error 2014-07-26 16:42:42 +02:00
Ignasi Fosch
8459464f34 Fix mopidy/audio/scan.py to avoid negative values in track lengths
The fix is the most elegant I found, but it might pass undetected.
2014-07-26 16:31:37 +02:00
dz0ny
711caa9417 avahi: Service hostname must contain, resolvable fqdn with .local appended to it. 2014-07-26 14:54:21 +02:00
Nick Steel
a2128864e7 Fixed typo in comment 2014-07-26 13:38:28 +01:00
Stein Magnus Jodal
3bc82f82ac Bump version to 0.19.2 2014-07-26 14:18:50 +02:00
Stein Magnus Jodal
93bf3ea918 mpd: Fix crash on wrong number of command args
Fixes #789
2014-07-26 13:56:26 +02:00
Stein Magnus Jodal
e4b54426b4 audio: Set initial volume on software mixer
This must be set after the audio actor has injected itself into the software
mixer, else it will have no effect on the GStreamer software mixer.

Fixes #791
2014-07-25 12:35:01 +02:00
Stein Magnus Jodal
6ed8132f76 http: Allow WebSocket requests from other hosts
This makes Tornado 4.0 behavior consistent with previous Tornado versions.

Fixes #788
2014-07-25 10:52:39 +02:00
Stein Magnus Jodal
c48103f1d2 deps: Remove GStreamer mixers from element list 2014-07-24 14:17:06 +02:00
Stein Magnus Jodal
6ab2ef85d4 deps: Add flump3dec (and mpg123audiodec) to Gst element list 2014-07-24 14:16:16 +02:00
Stein Magnus Jodal
0463b14a6a Revert "Remove 'mad' from 'mopidy deps' listing"
This reverts commit cb6e19c039.

The "mad" element is the only way to decode MP3 with GStreamer 0.10 on OS X.
2014-07-24 14:11:17 +02:00
Stein Magnus Jodal
19dae10575 Bump version to 0.19.1 2014-07-23 18:14:00 +02:00
Stein Magnus Jodal
ae49c4d113 http: Add missing string interpolation placeholder 2014-07-23 17:35:55 +02:00
Stein Magnus Jodal
292cf8f32d Fix Mopidy version when run from another Git repo (related to #706) 2014-07-22 16:26:39 +02:00