mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add use_pubdate switch to handle feeds that dont have a pubdate
This commit is contained in:
parent
2ec32b683a
commit
67c0062b03
@ -187,7 +187,7 @@ class DefaultProfile(object):
|
||||
'title' : item.find('title').string,
|
||||
'url' : self.print_version(url.string),
|
||||
'timestamp': self.strptime(pubdate) if self.use_pubdate else time.time(),
|
||||
'date' : pubdate if self.use_pubate else time.ctime()
|
||||
'date' : pubdate if self.use_pubdate else time.ctime()
|
||||
}
|
||||
delta = time.time() - d['timestamp']
|
||||
if delta > self.oldest_article*3600*24:
|
||||
|
Loading…
x
Reference in New Issue
Block a user