Sort entry list before cutting it off (bug 1186)
commit2ccd3f5d4fb5a4916a6326f3ec7dcc53228478b4
authorThomas Perl <m@thp.io>
Fri, 29 Oct 2010 23:06:48 +0000 (30 01:06 +0200)
committerThomas Perl <m@thp.io>
Fri, 29 Oct 2010 23:06:48 +0000 (30 01:06 +0200)
treee4c13a70a55ef0a63f296ecb11420e639c0a6e81
parentff8129d6311ced5bd62a8e75a5f70fcefe779477
Sort entry list before cutting it off (bug 1186)

The max_episodes_per_feed setting should prevent too many episodes in a
single podcast (which slows down processing and loading of the episode
list). In cases where the feed lists all episodes in chronological order
(oldest first), the feed will at some point (episodes in the feed >=
max_episodes_per_feed) stop showing new episodes.

This patch fixes this by (trying to) sort the entries by update time,
descending and only then cutting of the entry list.
src/gpodder/model.py