Merge pull request #7 from ethanrusz/shorts

Fix YouTube Shorts link conversion
This commit is contained in:
Em (Ethan) Ruszanowski 2024-06-26 19:05:58 -04:00 committed by GitHub
commit 1373aed664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
bot.py
View file

@ -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)