do not download files in history with "download new"

git-svn-id: svn://svn.berlios.de/gpodder/trunk@209 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2006-12-11 15:15:02 +00:00
parent b97622d470
commit d7e380f63b
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Mon, 11 Dec 2006 16:11:54 +0100 <thp@perli.net>
* src/gpodder/gpodder.py: Don't treat already downloaded but
deleted episodes as "new" when clicking on "download new" -
thanks to Seth Remington for the suggestion
* bin/gpodder: Pushed release date + version
Mon, 11 Dec 2006 15:02:56 +0100 <thp@perli.net>
* TODO: Added release goals for gPodder 0.9.0

View file

@ -26,8 +26,8 @@
# PLEASE DO NOT CHANGE FORMAT OF __version__ LINE (setup.py reads this)
__author__ = "Thomas Perl <thp@perli.net>"
__version__ = "0.8.0+svn20061210"
__date__ = "2006-12-10"
__version__ = "0.8.0+svn20061211"
__date__ = "2006-12-11"
__copyright__ = "Copyright (c) 2005-2006 %s. All rights reserved." % __author__
__licence__ = "GPL"

View file

@ -609,6 +609,7 @@ class Gpodder(SimpleGladeApp):
def on_btnDownloadNewer_clicked(self, widget, *args):
channel = self.active_channel
episodes_to_download = []
gl = gPodderLib()
last_pubdate = channel.newest_pubdate_downloaded()
if not last_pubdate:
@ -616,7 +617,7 @@ class Gpodder(SimpleGladeApp):
episodes_to_download = channel[0:min(len(channel),3)]
else:
for episode in channel:
if episode.compare_pubdate( last_pubdate) >= 0 and not channel.is_downloaded( episode):
if episode.compare_pubdate( last_pubdate) >= 0 and not channel.is_downloaded( episode) and not gl.history_is_downloaded( episode.url):
log( 'Episode "%s" is newer.', episode.title)
episodes_to_download.append( episode)