Fix podcast list sorting by title
This commit is contained in:
parent
ccd4a4dc17
commit
0fafc27145
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -129,8 +129,9 @@ class gPotherSide:
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_podcasts_sorted(self):
|
def _get_podcasts_sorted(self):
|
||||||
|
sort_key = self.core.model.podcast_sort_key
|
||||||
return sorted(self.core.model.get_podcasts(),
|
return sorted(self.core.model.get_podcasts(),
|
||||||
key=lambda podcast: (podcast.section, podcast.title))
|
key=lambda podcast: (podcast.section, sort_key(podcast)))
|
||||||
|
|
||||||
def load_podcasts(self):
|
def load_podcasts(self):
|
||||||
podcasts = self._get_podcasts_sorted()
|
podcasts = self._get_podcasts_sorted()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue