Update stats as proper signal, only return values from backend
This commit is contained in:
parent
0ff355737c
commit
ccd4a4dc17
4 changed files with 26 additions and 13 deletions
12
main.py
12
main.py
|
@ -96,12 +96,12 @@ class gPotherSide:
|
|||
downloaded += do
|
||||
unplayed += un
|
||||
|
||||
return '\n'.join([
|
||||
'%d podcasts' % len(podcasts),
|
||||
'%d episodes' % total,
|
||||
'%d new episodes' % new,
|
||||
'%d downloads' % downloaded,
|
||||
])
|
||||
return {
|
||||
'podcasts': len(podcasts),
|
||||
'episodes': total,
|
||||
'newEpisodes': new,
|
||||
'downloaded': downloaded,
|
||||
}
|
||||
|
||||
def _get_cover(self, podcast):
|
||||
filename = self.core.cover_downloader.get_cover(podcast)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue