Update stats as proper signal, only return values from backend

This commit is contained in:
Thomas Perl 2014-02-10 21:13:49 +01:00
parent 0ff355737c
commit ccd4a4dc17
4 changed files with 26 additions and 13 deletions

12
main.py
View file

@ -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)