mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
cool
This commit is contained in:
parent
8a25fa8b84
commit
d1e3714559
1 changed files with 18 additions and 17 deletions
|
@ -818,6 +818,7 @@ class RoyalDiscordBot(discord.Client):
|
||||||
async def add_video_from_url(self, url: str, index: typing.Optional[int] = None, enqueuer: discord.Member = None):
|
async def add_video_from_url(self, url: str, index: typing.Optional[int] = None, enqueuer: discord.Member = None):
|
||||||
# Retrieve info
|
# Retrieve info
|
||||||
logger.debug(f"Retrieving info for {url}.")
|
logger.debug(f"Retrieving info for {url}.")
|
||||||
|
async with self.main_channel.typing():
|
||||||
with youtube_dl.YoutubeDL({"quiet": True,
|
with youtube_dl.YoutubeDL({"quiet": True,
|
||||||
"ignoreerrors": True,
|
"ignoreerrors": True,
|
||||||
"simulate": True}) as ytdl:
|
"simulate": True}) as ytdl:
|
||||||
|
|
Loading…
Reference in a new issue