mirror of
https://github.com/ethanrusz/youtube-url-corrector.git
synced 2025-04-20 15:06:32 -04:00
Compare commits
No commits in common. "1373aed664910fd7db42865eedd8a46383d218d3" and "bc9454f79e41b19c7eee89e866e54925066f172a" have entirely different histories.
1373aed664
...
bc9454f79e
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/":
|
if query.path[:3] == "/v/":
|
||||||
return query.path.split("/")[2]
|
return query.path.split("/")[2]
|
||||||
if query.path[:8] == "/shorts/":
|
if query.path[:8] == "/shorts/":
|
||||||
return query.path.split("/")[2]
|
return query.path.split("/")[1]
|
||||||
|
|
||||||
|
|
||||||
bot.run(DISCORD_TOKEN)
|
bot.run(DISCORD_TOKEN)
|
||||||
|
|
Loading…
Add table
Reference in a new issue