From 08557106b47cec1bd07b242d62134e22035af89d Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Thu, 18 Jan 2024 23:02:24 -0500 Subject: [PATCH] Update formatting --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 3a144fe..81b3dd2 100644 --- a/bot.py +++ b/bot.py @@ -37,7 +37,8 @@ async def on_message(message): async def get_youtube_id(url: str, ignore_playlist=True) -> str: query = urlparse(url) - if query.hostname == 'youtu.be': return query.path[1:] + if query.hostname == 'youtu.be': + return query.path[1:] if query.hostname in {'www.youtube.com', 'youtube.com', 'music.youtube.com'}: if not ignore_playlist: # use case: get playlist id not current video in playlist