Show episodes being added to podcast list
This commit is contained in:
parent
da5174aecc
commit
2f63de31b0
1 changed files with 9 additions and 0 deletions
9
main.py
9
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue