dont queue download request that are already queued

git-svn-id: http://www.neo1973-germany.de/svn@27 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
emdete 2008-03-11 21:51:54 +00:00
parent f96f9ac3b4
commit 9d3975ccc0

View file

@ -252,7 +252,8 @@ class Pylgrim(edje.Edje):
#add all tiles that are not yet downloaded to a list #add all tiles that are not yet downloaded to a list
for i in xrange(2*self.border_x+1): for i in xrange(2*self.border_x+1):
for j in xrange(2*self.border_y+1): for j in xrange(2*self.border_y+1):
if not os.path.exists("%d/%d/%d.png"%(self.z,self.x+i-self.border_x,self.y+j-self.border_y)): if not os.path.exists("%d/%d/%d.png"%(self.z,self.x+i-self.border_x,self.y+j-self.border_y))\
and not (self.z,self.x+i-self.border_x,self.y+j-self.border_y) in self.tiles_to_download:
self.tiles_to_download.append((self.z,self.x+i-self.border_x,self.y+j-self.border_y)) self.tiles_to_download.append((self.z,self.x+i-self.border_x,self.y+j-self.border_y))
self.tiles_to_download_total = len(self.tiles_to_download) self.tiles_to_download_total = len(self.tiles_to_download)
''' '''