1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Minor change in dlmusic

This commit is contained in:
Steffo 2019-08-17 19:49:03 +03:00
parent 83423b046c
commit e078b639d3

View file

@ -28,7 +28,7 @@ class DlmusicCommand(Command):
else: else:
vfiles = await asyncify(YtdlVorbis.create_and_ready_from_url, f"ytsearch:{url}", **ytdl_args) vfiles = await asyncify(YtdlVorbis.create_and_ready_from_url, f"ytsearch:{url}", **ytdl_args)
for vfile in vfiles: for vfile in vfiles:
await call.reply(f"⬇️ https://scaleway.steffo.eu/{urllib.parse.quote(vfile.vorbis_filename.replace('./downloads/', 'musicbot_cache/'))}") await call.reply(f"⬇️ https://scaleway.steffo.eu/{urllib.parse.quote(vfile.vorbis_filename.replace('./downloads/', './musicbot_cache/'))}")
await asyncio.sleep(seconds_before_deletion) await asyncio.sleep(seconds_before_deletion)
for vfile in vfiles: for vfile in vfiles:
vfile.delete() vfile.delete()