mirror of
https://github.com/saurabhan/Wallhaven-dl.git
synced 2026-01-04 00:48:01 +00:00
Fixed bug with extension guessing.
This commit is contained in:
@@ -124,7 +124,7 @@ def main():
|
|||||||
for chunk in tqdm.tqdm(imgreq.iter_content(1024), total=(int(imgreq.headers['content-length']) / 1024), unit='KB'):
|
for chunk in tqdm.tqdm(imgreq.iter_content(1024), total=(int(imgreq.headers['content-length']) / 1024), unit='KB'):
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
imageFile.write(chunk)
|
imageFile.write(chunk)
|
||||||
break
|
break
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user