mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-08 12:07:33 +08:00
Minor change
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
cbf23dfc3f
commit
8387c145bd
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user