Revision: 5131 Author: filnik Date: 2008-03-15 12:21:15 +0000 (Sat, 15 Mar 2008)
Log Message: ----------- adding preloading gen
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2008-03-14 19:48:52 UTC (rev 5130) +++ trunk/pywikipedia/checkimages.py 2008-03-15 12:21:15 UTC (rev 5131) @@ -839,7 +839,8 @@ # No settings found, No problem, continue. else: wikipedia.output(u'\t >> No additional settings found! <<') # Not the main, but the most important loop. - for image in generator: + preloadingGen = pagegenerators.PreloadingGenerator(generator, pageNumber = 60) + for image in preloadingGen: # If I don't inizialize the generator, wait part and skip part are useless if wait: printWithTimeZone(u'Waiting %s seconds before checking the images,' % wait_number)