stop removing files so i can see whats happening

This commit is contained in:
Phixxy 2024-09-04 22:26:09 -07:00
parent 51c6e6627e
commit b91df5435d
2 changed files with 3 additions and 2 deletions

View file

@ -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))

View file

@ -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():