Fixes #115
This commit is contained in:
parent
4d0c88ce51
commit
fe803d66af
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue