stop removing files so i can see whats happening
This commit is contained in:
parent
51c6e6627e
commit
b91df5435d
2 changed files with 3 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ class YoutubeDL(BotBaseCog):
|
|||
with open(f"data/ytdl/{file}", "r") as f:
|
||||
url = f.read()
|
||||
await self.bot.get_channel(544408659174883328).send(f"{url}")
|
||||
os.remove(f"data/ytdl/{file}")
|
||||
#os.remove(f"data/ytdl/{file}")
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(YoutubeDL(bot))
|
||||
|
|
@ -35,7 +35,8 @@ def upload_to_litterbox(input_file):
|
|||
file_types = ["zip", "mp4", "mp3", "webm", "wav", "m4a", "flac", "ogg", "opus", "wma", "aac", "m4p", "m4b", "m4r", "m4v", "mp2", "mp3", "mp4", "mpa", "mpeg", "mpg", "mpv", "mxf", "ogg", "oga", "ogv", "ogx", "spx", "wav", "webm", "wma", "wv", "wvx", "weba", "webm", "webp", "wmv"]
|
||||
for file in os.listdir("data/ytdl/"):
|
||||
if file.split(".")[-1] in file_types:
|
||||
os.remove(f"data/ytdl/{file}")
|
||||
#os.remove(f"data/ytdl/{file}")
|
||||
pass
|
||||
return output_url
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue