|
@ -21,11 +21,11 @@ def dlskin(user): |
|
|
|
|
|
|
|
|
if "SKIN" in textures: |
|
|
if "SKIN" in textures: |
|
|
skin = urlopen(textures["SKIN"]["url"]).read() |
|
|
skin = urlopen(textures["SKIN"]["url"]).read() |
|
|
makedirs("skin") |
|
|
makedirs("skin", exist_ok=True) |
|
|
open("skin/%s.png" % user, "wb").write(skin) |
|
|
open("skin/%s.png" % user, "wb").write(skin) |
|
|
if "CAPE" in textures: |
|
|
if "CAPE" in textures: |
|
|
skin = urlopen(textures["CAPE"]["url"]).read() |
|
|
skin = urlopen(textures["CAPE"]["url"]).read() |
|
|
makedirs("cape") |
|
|
makedirs("cape", exist_ok=True) |
|
|
open("cape/%s.png" % user, "wb").write(cape) |
|
|
open("cape/%s.png" % user, "wb").write(cape) |
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|