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