From 0b82b9a2016fe0da4d7a85b511cc55a42b167a9d Mon Sep 17 00:00:00 2001
From: yasirarism <55983182+yasirarism@users.noreply.github.com>
Date: Sun, 11 Dec 2022 19:24:49 +0700
Subject: [PATCH] Update ytdl_download_new.py
---
misskaty/plugins/ytdl_download_new.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/misskaty/plugins/ytdl_download_new.py b/misskaty/plugins/ytdl_download_new.py
index 6386d15c..6f555848 100644
--- a/misskaty/plugins/ytdl_download_new.py
+++ b/misskaty/plugins/ytdl_download_new.py
@@ -69,8 +69,8 @@ async def ytdownv2(_, message):
log_group_id=0, cache_path="cache", ffmpeg_location="/usr/bin/mediaextract"
) as ytdl:
x = await ytdl.parse(url)
- if "ERROR" in x:
- return await message.reply(f"{x}")
+ if "ERROR" in str(x):
+ return await message.reply(f"{str(x)}")
img = await get_ytthumb(x.key)
caption = x.caption
markup = x.buttons