Don't mark old episodes as new on update (bug 340)
commit2b3a2aa74393af3d170e387e6f5a93ecddf942f1
authorThomas Perl <thp@thpinfo.com>
Thu, 11 Mar 2010 18:41:29 +0000 (11 19:41 +0100)
committerThomas Perl <thp@thpinfo.com>
Thu, 11 Mar 2010 18:41:29 +0000 (11 19:41 +0100)
tree33b4636248dbd0f2c0556539367bd039085702ca
parent3d3fcd256bdb35049ad42edc0ab0ce2997d3df51
Don't mark old episodes as new on update (bug 340)

Another attempt at finally fixing bug 340, but this time I'm pretty sure
that it works, because we are more selective now.

Whenever a new episode appears in the feed, its date is compared to the
date of the newest-known episode in the same feed. If it's more than one
week older than the newest-known episode, it's marked as old by default.

The "one week" value is just a randomly-chosen one to allow for border
cases (like a daily podcast re-issuing an episode of the last few days)
to work correctly and not cause "missing episodes".
src/gpodder/dbsqlite.py
src/gpodder/model.py