From c972ecd1f26431adfa01a4ac32d77223d01fed52 Mon Sep 17 00:00:00 2001 From: SeeSpotRun Date: Wed, 16 Mar 2016 08:42:34 +1000 Subject: [PATCH] scanner: fix newby logic error --- mopidy/audio/scan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/audio/scan.py b/mopidy/audio/scan.py index 99b14c82..ff96b641 100644 --- a/mopidy/audio/scan.py +++ b/mopidy/audio/scan.py @@ -192,7 +192,7 @@ def _process(pipeline, timeout_ms): duration = duration // Gst.MSECOND else: duration = None - if (tags and duration + if (tags and duration is not None # workaround for # https://bugzilla.gnome.org/show_bug.cgi?id=763553: # try to start pipeline playing; if it doesn't then @@ -213,7 +213,7 @@ def _process(pipeline, timeout_ms): # 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) - if tags and duration: + if tags and duration is not None: pipeline.set_state(Gst.State.PAUSED) raise exceptions.ScannerError('Timeout after %dms' % timeout_ms)