From 2f63de31b0c5261665e8bc28010fa266e2a3d722 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 18 Mar 2014 21:08:01 +0100 Subject: [PATCH] Show episodes being added to podcast list --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index 89d0967..f690803 100644 --- a/main.py +++ b/main.py @@ -208,6 +208,15 @@ class gPotherSide: def subscribe(self, url): url = self.core.model.normalize_feed_url(url) # TODO: Check if subscription already exists + + # Kludge: After one second, update the podcast list, + # so that we see the podcast that is being updated + @run_in_background_thread + def show_loading(): + time.sleep(1) + pyotherside.send('podcast-list-changed') + show_loading() + self.core.model.load_podcast(url, create=True) self.core.save() pyotherside.send('podcast-list-changed')