mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Penyesuaian api
This commit is contained in:
parent
b0a5839e15
commit
9aac586b87
1 changed files with 4 additions and 4 deletions
|
|
@ -204,10 +204,10 @@ async def fbdl(_, message):
|
||||||
try:
|
try:
|
||||||
resjson = (await fetch.get(f"https://yasirapi.eu.org/fbdl?link={link}")).json()
|
resjson = (await fetch.get(f"https://yasirapi.eu.org/fbdl?link={link}")).json()
|
||||||
try:
|
try:
|
||||||
url = resjson["result"]["links"]["hd"].replace("&", "&")
|
url = resjson["result"]["hd"]
|
||||||
except:
|
except KeyError:
|
||||||
url = resjson["result"]["links"]["sd"].replace("&", "&")
|
url = resjson["result"]["sd"]
|
||||||
obj = SmartDL(url, progress_bar=False, timeout=10)
|
obj = SmartDL(url, progress_bar=False, timeout=15)
|
||||||
obj.start()
|
obj.start()
|
||||||
path = obj.get_dest()
|
path = obj.get_dest()
|
||||||
await message.reply_video(
|
await message.reply_video(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue