aboutsummaryrefslogtreecommitdiff
path: root/cogs/player.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-06-03 12:24:12 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-06-03 12:24:12 +0000
commit5e2f2c37c3012d70037374ff1a06b0fbaef93fcf (patch)
treef153b8db715c5b108a269ba68317dab2e17c130c /cogs/player.py
parent29921b0d9a5a5a719669c4772dcafa4ab3c786e1 (diff)
downloadsteve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar.gz
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar.bz2
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar.lz
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar.xz
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.tar.zst
steve-bot-5e2f2c37c3012d70037374ff1a06b0fbaef93fcf.zip
General improvements
Diffstat (limited to 'cogs/player.py')
-rw-r--r--[-rwxr-xr-x]cogs/player.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/player.py b/cogs/player.py
index 6a91318..5c046a7 100755..100644
--- a/cogs/player.py
+++ b/cogs/player.py
@@ -14,7 +14,7 @@ youtube_dl.utils.bug_reports_message = lambda: ''
ytdl_format_options = {
'format': 'bestaudio/best',
- 'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
+ 'outtmpl': 'downloads/%(extractor)s-%(id)s-%(title)s.%(ext)s',
'restrictfilenames': True,
'noplaylist': True,
'nocheckcertificate': True,
@@ -136,7 +136,7 @@ class Player(commands.Cog):
@tasks.loop(hours=10.0)
async def cleanup(self):
- for p in Path(".").glob("youtube*"):
+ for p in Path("./downloads/").glob("*"):
p.unlink()