log some info about ytdl
This commit is contained in:
parent
d6fd8f7b7b
commit
dfc43de1a0
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ class YoutubeDL(BotBaseCog):
|
|||
url = '"' + url + '"'
|
||||
video_or_audio = ctx.message.content.split(" ")[2]
|
||||
process = subprocess.Popen(["python3", "data/ytdl/youtubedl.py", url, video_or_audio])
|
||||
process.wait()
|
||||
print(process.stdout.read())
|
||||
print(process.stderr.read())
|
||||
print(process.returncode)
|
||||
await ctx.send(f"Downloading {video_or_audio} from {url}...", suppress_embeds=True)
|
||||
except:
|
||||
await ctx.send("Usage: !youtubedl <url> <video|audio>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue