small performance improvement, error correction in handling of enclosures
This commit is contained in:
@ -124,13 +124,9 @@ def process_feed_entry(session, feed, entry):
|
||||
return 1
|
||||
|
||||
def fetch_single_feed(session, feed):
|
||||
print 'processing %s' % feed.url
|
||||
thisfeedinfo = session.query(Feedinfo).\
|
||||
filter(Feedinfo.feed_id==feed.id).\
|
||||
first()
|
||||
print 'processing %d: %s' % (feed.id, feed.url)
|
||||
fetched = False
|
||||
if thisfeedinfo:
|
||||
feed.feedinfo = thisfeedinfo
|
||||
if feed.feedinfo:
|
||||
if (not feed.feedinfo.nextfetch) or (feed.feedinfo.nextfetch < datetime.now()):
|
||||
print 'feed known, fetching...'
|
||||
try:
|
||||
|
Reference in New Issue
Block a user