parent
2f86a2a44b
commit
7a3b257328
|
@ -417,8 +417,12 @@ def Gather(rss, url, options):
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
for i, item in enumerate(list(rss.items)):
|
for i, item in enumerate(list(rss.items)):
|
||||||
|
if threads == 1:
|
||||||
|
worker(*[i, item])
|
||||||
|
else:
|
||||||
queue.put([i, item])
|
queue.put([i, item])
|
||||||
|
|
||||||
|
if threads != 1:
|
||||||
queue.join()
|
queue.join()
|
||||||
|
|
||||||
if options.ad:
|
if options.ad:
|
||||||
|
|
Loading…
Reference in New Issue