forked from rDrama/rDrama
same as last commit
parent
240bd7354c
commit
66c1baf13c
|
@ -62,6 +62,7 @@ def images(v):
|
||||||
ext = y.group(4)
|
ext = y.group(4)
|
||||||
|
|
||||||
url = f'https://{site}/{id}.{ext}'
|
url = f'https://{site}/{id}.{ext}'
|
||||||
|
print(url, flush=True)
|
||||||
try: image_req = requests.get(url, headers=HEADERS, timeout=5)
|
try: image_req = requests.get(url, headers=HEADERS, timeout=5)
|
||||||
except: continue
|
except: continue
|
||||||
|
|
||||||
|
@ -89,7 +90,6 @@ def images(v):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
size = os.stat(name).st_size
|
size = os.stat(name).st_size
|
||||||
print(size, flush=True)
|
|
||||||
if not size: continue
|
if not size: continue
|
||||||
|
|
||||||
new_url = f"https://{SITE_IMAGES}{name}"
|
new_url = f"https://{SITE_IMAGES}{name}"
|
||||||
|
|
Loading…
Reference in New Issue