From a5821c096cf6c34befae86dac22b4298a3b0298c Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Wed, 26 Jun 2024 19:04:04 -0400 Subject: [PATCH] Fix YouTube Shorts link conversion --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index e1ea9e5..b0294a1 100644 --- a/bot.py +++ b/bot.py @@ -56,7 +56,7 @@ async def get_youtube_id(url: str, ignore_playlist=True) -> str: if query.path[:3] == "/v/": return query.path.split("/")[2] if query.path[:8] == "/shorts/": - return query.path.split("/")[1] + return query.path.split("/")[2] bot.run(DISCORD_TOKEN)