From 5c9fbe53b069f41e2331e22e67a9f7a3deb0620f Mon Sep 17 00:00:00 2001 From: Thomas J Faughnan Jr Date: Wed, 24 Apr 2024 12:45:03 -0400 Subject: [PATCH] title: unescape html entities in youtube_title() We already do this for Mastodon, Reddit, and generic titles. --- src/bobbit/modules/title.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bobbit/modules/title.py b/src/bobbit/modules/title.py index 1bc1618..752fbd7 100644 --- a/src/bobbit/modules/title.py +++ b/src/bobbit/modules/title.py @@ -98,7 +98,7 @@ async def youtube_title(bot, url, text): video_name = re.findall(r']*>([^<]+) - YouTube[\s]*', text)[0] # get title, removing "- YouTube" from the end return bot.client.format_text( '{color}{green}Video{color}: {bold}{video_name}{bold} {color}{green}Channel{color}: {bold}{channel_name}{bold}', - video_name = video_name.strip(), + video_name = html.unescape(video_name.strip()), channel_name = channel_name.strip() ) except IndexError: