From 1822f8b75fff9018febff8597ed0a64c3c9657ef Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 21 May 2011 10:43:15 +0000 Subject: [PATCH] Fix signal emission in the di script --- scripts/digitallyimported-radio/servicebase.py | 6 +++--- scripts/digitallyimported-radio/skyservice.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/digitallyimported-radio/servicebase.py b/scripts/digitallyimported-radio/servicebase.py index 14fb802bc..4cb6693f0 100644 --- a/scripts/digitallyimported-radio/servicebase.py +++ b/scripts/digitallyimported-radio/servicebase.py @@ -29,7 +29,7 @@ class DigitallyImportedUrlHandler(clementine.UrlHandler): return result if self.service.PLAYLISTS[self.service.audio_type]["premium"] and \ (len(self.service.username) == 0 or len(self.service.password) == 0): - self.service.StreamError.emit(self.tr("You have selected a Premium-only audio type but do not have any account details entered")) + self.service.StreamError(self.tr("You have selected a Premium-only audio type but do not have any account details entered")) return result key = original_url.host() @@ -61,7 +61,7 @@ class DigitallyImportedUrlHandler(clementine.UrlHandler): # Failed to get the playlist? if len(songs) == 0: - self.service.StreamError.emit("Error loading playlist '%s'" % reply.url().toString()) + self.service.StreamError("Error loading playlist '%s'" % reply.url().toString()) return result = clementine.UrlHandler_LoadResult() @@ -71,7 +71,7 @@ class DigitallyImportedUrlHandler(clementine.UrlHandler): result.type_ = clementine.UrlHandler_LoadResult.TrackAvailable result.media_url_ = songs[0].url() - self.AsyncLoadComplete.emit(result) + self.AsyncLoadComplete(result) class DigitallyImportedServiceBase(clementine.RadioService): diff --git a/scripts/digitallyimported-radio/skyservice.py b/scripts/digitallyimported-radio/skyservice.py index 838a23b38..e81de7e04 100644 --- a/scripts/digitallyimported-radio/skyservice.py +++ b/scripts/digitallyimported-radio/skyservice.py @@ -66,7 +66,7 @@ class SkyFmService(DigitallyImportedServiceBase): else: clementine.task_manager.SetTaskFinished(self.task_id) self.task_id = None - self.StreamError.emit(self.tr("Invalid SKY.fm username or password")) + self.StreamError(self.tr("Invalid SKY.fm username or password")) return # Now we can load the playlist