Commits

Dominic Kexel committed 7605600

fixes #61 use re.IGNORECASE for image download

Comments (0)

Files changed (1)

client/pygameclient/imagedownload.py

     
     for url in [b + e for e in s]:
         urlContent = urllib2.urlopen(url).read()
-        imgUrls = re.findall('A .*?HREF="(.*?jpg)"', urlContent)
+        imgUrls = re.findall('A .*?HREF="(.*?jpg)"', urlContent, re.IGNORECASE)
         for imgUrl in imgUrls:
             if canceltoken and canceltoken.cancel:
                 return
                     pass
     
 if __name__ == "__main__":
-    download()
+    download()