Commit Graph

6110 Commits

Author SHA1 Message Date
Thomas Adamcik
fdab423a49 Setup flake8 exclude in setup.cfg 2015-03-02 00:29:46 +01:00
Stein Magnus Jodal
0634de6e28 Merge pull request #1020 from adamcik/feature/fix-ws-disconnect-race
Fix WS disconnect race
2015-03-02 00:16:09 +01:00
Thomas Adamcik
6c5970ffc3 http: Make sure to decode exceptions for logging 2015-03-02 00:06:02 +01:00
Thomas Adamcik
0fb6c620df docs: Add changelog entry for broadcast race 2015-03-02 00:05:58 +01:00
Thomas Adamcik
4ee7dd73bd http: Make WS broadcast more robust against disconnect race
Adds some WebSocketHandler tests that actually connect using a WS client and
plugs a potential race condition.

Any call to write_message could fail, either due to WebSocketClosedError like
in the log below, or simply due to socket errors. To play it safe we catch all
errors and debug log that a broadcast failed.

2015-02-26 21:24:02,266 ERROR    [HttpServer] /home/adamcik/dev/mopidy/mopidy/http/handlers.py:116
  mopidy.http.handlers WebSocket request error: deque index out of range
2015-02-26 21:24:10,098 ERROR    [HttpFrontend-11] build/bdist.linux-x86_64/egg/pykka/actor.py:268
  pykka Unhandled exception in HttpFrontend (urn:uuid:e376bd95-c32e-4e17-ad20-7d0b3c0cf2b2):
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/pykka/actor.py", line 200, in _actor_loop
    response = self._handle_receive(message)
  File "build/bdist.linux-x86_64/egg/pykka/actor.py", line 294, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File ".../dev/mopidy/mopidy/http/actor.py", line 77, in on_event
    on_event(name, **data)
  File ".../dev/mopidy/mopidy/http/actor.py", line 84, in on_event
    handlers.WebSocketHandler.broadcast(message)
  File ".../dev/mopidy/mopidy/http/handlers.py", line 78, in broadcast
    client.write_message(msg)
  File ".../dev/mopidy-virtualenv/local/lib/python2.7/site-packages/tornado/websocket.py", line 183, in write_message
    raise WebSocketClosedError()
WebSocketClosedError
2015-03-02 00:05:21 +01:00
Thomas Adamcik
aeb4815fb6 Update lint task and gitignore to exlude tmp/ 2015-03-01 23:58:11 +01:00
Thomas Adamcik
ffeb78c2cb Only lint mopidy and tests dir 2015-03-01 22:29:22 +01:00
Thomas Adamcik
1de032be07 Merge pull request #1018 from ZenithDK/fix/no_resume_on_seek
core: Don't change to playing state when seeking in paused state
2015-03-01 21:09:22 +01:00
Thomas Adamcik
ec65a2ee8e Merge pull request #1010 from RonaldZ/feature/scan_force_arg
local: Add --force flag to 'mopidy local scan' command
2015-03-01 21:05:42 +01:00
ronaldz
713c55321f Updated the changelog 2015-03-01 14:56:38 -05:00
ronaldz
b2976dccb6 Trailing white space and expected blank line fix 2015-03-01 14:40:08 -05:00
Lasse Bigum
fbd534efbf Don't change to playing state when seeking in paused state
Do not switch state from paused to playing when seeking
2015-03-01 15:50:17 +01:00
Thomas Adamcik
47911f24ea Merge pull request #1013 from tkem/fix/get_images
backend: Improve default get_images() implementation with album/artist URIs.
2015-02-28 12:35:16 +01:00
Thomas Kemmer
f65195a676 More pythonic implementation. 2015-02-27 22:39:25 +01:00
Thomas Kemmer
301f732047 Improve default get_images() implementation with album/artist URIs. 2015-02-27 22:22:28 +01:00
ronaldz
87ea3c9745 Added a --force argument. Related to issue #910 2015-02-26 21:32:31 -05:00
ronaldz
961aafff45 Maximum was miss-spelled in the local Scan command's help text 2015-02-25 21:19:47 -05:00
Stein Magnus Jodal
635ee6e4eb Merge pull request #1002 from adamcik/fix/694
config: Debug log ignored sections (fixes: #694)
2015-02-25 23:36:13 +01:00
Thomas Adamcik
4a3dfdd415 docs: Update changelog 2015-02-25 23:28:56 +01:00
Stein Magnus Jodal
5536c79be5 Merge pull request #1005 from adamcik/fix/808
Add per logger colors
2015-02-25 23:18:08 +01:00
Thomas Adamcik
57012670b7 config: Fixing review comments 2015-02-25 22:58:46 +01:00
Thomas Adamcik
3b41b26880 config: Fix review comments 2015-02-25 22:57:49 +01:00
Thomas Adamcik
5c833e106b logging: Add support for per logger colors (fixes: #808) 2015-02-25 22:16:30 +01:00
Thomas Adamcik
b11d89d72f config: Convert the loglevel schema to a generic map schema 2015-02-25 21:36:59 +01:00
Thomas Adamcik
0829f34a90 Merge pull request #999 from tkem/fix/998
Fix #998: Remove event already sent by PlaylistsController.
2015-02-25 21:05:53 +01:00
Thomas Adamcik
84334760e1 Merge pull request #1000 from tkem/fix/937
Fix #937: Local playlists refactoring.
2015-02-25 21:04:01 +01:00
Thomas Adamcik
0ea3969427 config: Debug log ignored sections (fixes: #694) 2015-02-25 21:02:57 +01:00
Thomas Kemmer
dd54fdb086 Fix #937: Local playlists refactoring. 2015-02-25 18:50:29 +01:00
Thomas Kemmer
96a3cb6ef5 Remove obsolete unit test. 2015-02-25 17:48:41 +01:00
Thomas Kemmer
2ae68d971a Fix #998: Remove event already sent by PlaylistsController. 2015-02-25 17:35:06 +01:00
Thomas Adamcik
7520b13aa1 mpd: Update listall/info docs 2015-02-18 22:35:49 +01:00
Stein Magnus Jodal
255d92f21f Merge pull request #992 from adamcik/feature/default-get-images-fallback
backend: Add a default get_images impl.
2015-02-18 22:13:10 +01:00
Thomas Adamcik
2ff2a3719e backend: Add test for get_images fallback 2015-02-18 21:55:39 +01:00
Stein Magnus Jodal
b7d46d3247 Merge pull request #990 from adamcik/feature/mpd-blacklist-commands
mpd: Support blacklisting MPD commands in the server.
2015-02-18 21:25:50 +01:00
Thomas Adamcik
19b7daed32 mpd: Fix typos in previous commit. 2015-02-18 21:14:24 +01:00
Thomas Adamcik
88c978bdca backend: Add a default get_images impl. 2015-02-18 21:13:25 +01:00
Thomas Adamcik
52814715b4 mpd: Fix review comments for commands blacklist 2015-02-18 20:57:22 +01:00
Thomas Adamcik
e4ba4b3e5f mpd: Support blacklisting MPD commands in the server.
Default blacklist set to listall and listallinfo.

This change has been done to avoid clients being able to call "bad" MPD
commands which are often misused to try and keep a client db. Note that
this change will break some MPD clients, but the blacklist can be controlled
via config to allow opting out for now.
2015-02-18 00:13:24 +01:00
Trygve Aaberge
b6110de186 Merge pull request #989 from jaksi/patch-1
Change yaourt command to update packages from AUR.
2015-02-17 00:28:55 +01:00
Jakab Kristóf
305d88c920 Update arch.rst
yaourt only syncs AUR packages if the -a flag is given
2015-02-17 00:01:01 +01:00
Stein Magnus Jodal
f5e63c4063 flake8: Fix warnings after flake8 upgrade 2015-02-16 10:34:27 +01:00
Stein Magnus Jodal
6d92e97c7c Merge pull request #986 from ali/fix/flake8
Fix flake8 tests
2015-02-16 10:33:21 +01:00
Ali Ukani
92910e4362 Fix flake8 tests
Fixes "W503 line break before binary operator"
2015-02-16 02:02:14 -05:00
Thomas Adamcik
4a38d1722c Merge pull request #984 from jodal/feature/move-dummies
Move dummies into the test package where they belong
2015-02-13 20:22:31 +01:00
Stein Magnus Jodal
d60c037fdc docs: Update number of times -v is accepted 2015-02-13 12:24:33 +01:00
Stein Magnus Jodal
2d958d21b5 docs: Fix references and typos 2015-02-13 12:16:49 +01:00
Stein Magnus Jodal
5270aa65e2 audio: Move DummyAudio into tests package 2015-02-13 10:40:21 +01:00
Stein Magnus Jodal
a3b7c8d44f audio: Fix AttributeError on shutdown (fix #985)
Given the right timings, there was possible to get a stack trace at
shutdown if the audio actor was teared down first and a music delivery
from libspotify/pyspotify called audio.push() after the teardown.
2015-02-13 09:36:51 +01:00
Stein Magnus Jodal
9f199b12ce docs: Update authors 2015-02-13 01:51:08 +01:00
Stein Magnus Jodal
82b94693f9 docs: Add Image to model relation graph 2015-02-13 01:39:57 +01:00