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:
|
||||
resjson = (await fetch.get(f"https://yasirapi.eu.org/fbdl?link={link}")).json()
|
||||
try:
|
||||
url = resjson["result"]["links"]["hd"].replace("&", "&")
|
||||
except:
|
||||
url = resjson["result"]["links"]["sd"].replace("&", "&")
|
||||
obj = SmartDL(url, progress_bar=False, timeout=10)
|
||||
url = resjson["result"]["hd"]
|
||||
except KeyError:
|
||||
url = resjson["result"]["sd"]
|
||||
obj = SmartDL(url, progress_bar=False, timeout=15)
|
||||
obj.start()
|
||||
path = obj.get_dest()
|
||||
await message.reply_video(
|
||||
|
|
|
|||
Loading…
Reference in a new issue