mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
bwhahaha
This commit is contained in:
parent
af374d435e
commit
938d2dc826
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue