From 0ac9243389119de6743a0506add6738f8f550c93 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 24 May 2022 15:54:41 +0700 Subject: [PATCH] remove unused monitor_cache_dir method --- tubearchivist/home/src/ta/ta_redis.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tubearchivist/home/src/ta/ta_redis.py b/tubearchivist/home/src/ta/ta_redis.py index 0e9c23f1..e13a997a 100644 --- a/tubearchivist/home/src/ta/ta_redis.py +++ b/tubearchivist/home/src/ta/ta_redis.py @@ -8,7 +8,6 @@ import json import os import redis -from home.src.ta.helper import ignore_filelist class RedisBase: @@ -95,27 +94,6 @@ class RedisArchivist(RedisBase): return all_messages - @staticmethod - def monitor_cache_dir(cache_dir): - """ - look at download cache dir directly as alternative progress info - """ - dl_cache = os.path.join(cache_dir, "download") - all_cache_file = os.listdir(dl_cache) - cache_file = ignore_filelist(all_cache_file) - if cache_file: - filename = cache_file[0][12:].replace("_", " ").split(".")[0] - mess_dict = { - "status": "message:download", - "level": "info", - "title": "Downloading: " + filename, - "message": "", - } - else: - return False - - return mess_dict - class RedisQueue(RedisBase): """dynamically interact with the download queue in redis"""