This commit is contained in:
ArabCoders 2024-07-29 13:31:40 +03:00
parent 4d0c88ce51
commit fe803d66af

View file

@ -188,7 +188,10 @@ class Download:
self.status_queue = self.manager.Queue()
# Create temp dir for each download.
self.tempPath = os.path.join(self.temp_dir, hashlib.shake_256(self.info.id.encode('utf-8')).hexdigest(5))
self.tempPath = os.path.join(
self.temp_dir,
hashlib.shake_256(f"D-{self.info.id}".encode('utf-8')).hexdigest(5)
)
if not os.path.exists(self.tempPath):
os.makedirs(self.tempPath, exist_ok=True)