Minor change

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
anasty17 2024-03-25 23:41:43 +02:00
parent cbf23dfc3f
commit 8387c145bd
2 changed files with 5 additions and 3 deletions

View File

@ -809,6 +809,8 @@ class TaskConfig:
):
if not checked:
checked = True
async with task_dict_lock:
task_dict[self.mid] = MediaConvertStatus(self, gid)
await cpu_eater_lock.acquire()
LOGGER.info(f"Converting: {self.name}")
else:
@ -830,6 +832,8 @@ class TaskConfig:
):
if not checked:
checked = True
async with task_dict_lock:
task_dict[self.mid] = MediaConvertStatus(self, gid)
await cpu_eater_lock.acquire()
LOGGER.info(f"Converting: {self.name}")
else:
@ -839,9 +843,6 @@ class TaskConfig:
else:
return ""
async with task_dict_lock:
task_dict[self.mid] = MediaConvertStatus(self, gid)
if await aiopath.isfile(dl_path):
output_file = await proceedConvert(dl_path)
if checked:

View File

@ -93,6 +93,7 @@ def clean_all():
aria2.remove_all(True)
get_qb_client().torrents_delete(torrent_hashes="all")
try:
LOGGER.info("Cleaning Download Directory...")
rmtree(DOWNLOAD_DIR, ignore_errors=True)
except:
pass