From 938d2dc82666321e7afd10e8503c865c78be9966 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 8 Dec 2018 20:49:31 +0100 Subject: [PATCH] bwhahaha --- discordbot.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/discordbot.py b/discordbot.py index acd66754..63cfd61c 100644 --- a/discordbot.py +++ b/discordbot.py @@ -238,7 +238,11 @@ class YoutubeDLVideo(Video): }], "outtmpl": self.get_filename(), "quiet": True}) as ytdl: - ytdl.download([self.url]) + # K/DA hard code, remove soon_ish + if self.url == "https://www.youtube.com/watch?v=UOxkGD8qRB4": + ytdl.download(["https://www.youtube.com/watch?v=qU7dqywqwWQ"]) + else: + ytdl.download([self.url]) logger.info(f"Completed youtube_dl download of {repr(self)}") self.is_ready = True @@ -836,11 +840,6 @@ class RoyalDiscordBot(discord.Client): for entry in info["entries"]: self.video_queue.add(YoutubeDLVideo(entry["webpage_url"], enqueuer=enqueuer), index) return - # KDA hardcode, remove me soon - if "kda" in url.lower(): - self.video_queue.add(YoutubeDLVideo("https://www.youtube.com/watch?v=qU7dqywqwWQ", enqueuer=enqueuer), - index) - # end logger.debug(f"Single video detected at {url}.") self.video_queue.add(YoutubeDLVideo(url, enqueuer=enqueuer), index)