mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
fix missing an "r" prefix (#296)
Signed-off-by: Furry Chemistry <84753790+aryazakaria01@users.noreply.github.com>
This commit is contained in:
parent
4dee501c8f
commit
5365a62103
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ async def instadl(_, message):
|
||||||
if post.status_code not in [200, 401]:
|
if post.status_code not in [200, 401]:
|
||||||
return await message.reply("Unknown error.")
|
return await message.reply("Unknown error.")
|
||||||
res = post.json()
|
res = post.json()
|
||||||
if r := re.findall('href="(https?://(?!play\.google\.com|/)[^"]+)"', res["data"]):
|
if r := re.findall(r'href="(https?://(?!play\.google\.com|/)[^"]+)"', res["data"]):
|
||||||
res = r[0].replace("&", "&")
|
res = r[0].replace("&", "&")
|
||||||
fname = (await fetch.head(res)).headers.get("content-disposition", "").split("filename=")[1]
|
fname = (await fetch.head(res)).headers.get("content-disposition", "").split("filename=")[1]
|
||||||
is_img = (await fetch.head(res)).headers.get("content-type").startswith("image")
|
is_img = (await fetch.head(res)).headers.get("content-type").startswith("image")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue