Pass options to Fill

master
pictuga 2014-06-28 01:43:09 +02:00
parent 6cc3e7eb93
commit ac69b28f1b
1 changed files with 3 additions and 3 deletions

View File

@ -409,7 +409,7 @@ def Fix(item, feedurl='/'):
return item return item
def Fill(item, cache, feedurl='/', fast=False): def Fill(item, cache, options, feedurl='/', fast=False):
""" Returns True when it has done its best """ """ Returns True when it has done its best """
if not item.link: if not item.link:
@ -631,12 +631,12 @@ def Gather(rss, url, cache, options):
if time.time() - start_time > max_time >= 0 or i + 1 > max_item >= 0: if time.time() - start_time > max_time >= 0 or i + 1 > max_item >= 0:
if not options.proxy: if not options.proxy:
if Fill(item, cache, url, True) is False: if Fill(item, cache, options, url, True) is False:
item.remove() item.remove()
return return
else: else:
if not options.proxy: if not options.proxy:
Fill(item, cache, url) Fill(item, cache, options, url)
queue = Queue.Queue() queue = Queue.Queue()