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)