mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-04 19:24:51 +00:00
Update ytdl_download_new.py
This commit is contained in:
parent
8e55860d3a
commit
0b82b9a201
1 changed files with 2 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ async def ytdownv2(_, message):
|
||||||
log_group_id=0, cache_path="cache", ffmpeg_location="/usr/bin/mediaextract"
|
log_group_id=0, cache_path="cache", ffmpeg_location="/usr/bin/mediaextract"
|
||||||
) as ytdl:
|
) as ytdl:
|
||||||
x = await ytdl.parse(url)
|
x = await ytdl.parse(url)
|
||||||
if "ERROR" in x:
|
if "ERROR" in str(x):
|
||||||
return await message.reply(f"<code>{x}</code>")
|
return await message.reply(f"<code>{str(x)}</code>")
|
||||||
img = await get_ytthumb(x.key)
|
img = await get_ytthumb(x.key)
|
||||||
caption = x.caption
|
caption = x.caption
|
||||||
markup = x.buttons
|
markup = x.buttons
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue