From 2d6f00b9124adb8a38ea32f3d3e8669bb9c4ecf6 Mon Sep 17 00:00:00 2001 From: SeeSpotRun Date: Tue, 15 Mar 2016 18:59:06 +1000 Subject: [PATCH] scanner: formatting to make travis / tox / flake8 happy --- mopidy/audio/scan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy/audio/scan.py b/mopidy/audio/scan.py index 162d1916..99b14c82 100644 --- a/mopidy/audio/scan.py +++ b/mopidy/audio/scan.py @@ -197,8 +197,8 @@ def _process(pipeline, timeout_ms): # https://bugzilla.gnome.org/show_bug.cgi?id=763553: # try to start pipeline playing; if it doesn't then # give up: - ) or ( pipeline.set_state(Gst.State.PLAYING) - == Gst.StateChangeReturn.FAILURE): + ) or (pipeline.set_state(Gst.State.PLAYING) == + Gst.StateChangeReturn.FAILURE): return tags, mime, have_audio, duration elif message.type == Gst.MessageType.DURATION_CHANGED: # duration will be read after ASYNC_DONE received; for now @@ -209,7 +209,7 @@ def _process(pipeline, timeout_ms): # Note that this will only keep the last tag. tags.update(tags_lib.convert_taglist(taglist)) - timeout = timeout_ms - ( int(time.time() * 1000) - start ) + timeout = timeout_ms - (int(time.time() * 1000) - start) # workaround for https://bugzilla.gnome.org/show_bug.cgi?id=763553: # if we got what we want then stop playing (and wait for ASYNC_DONE)