mirror of
https://github.com/ethanrusz/youtube-url-corrector.git
synced 2024-11-21 09:37:47 -05:00
Fix YouTube Shorts link conversion
This commit is contained in:
parent
bc9454f79e
commit
a5821c096c
1 changed files with 1 additions and 1 deletions
2
bot.py
2
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)
|
||||
|
|
Loading…
Reference in a new issue