diff --git a/tubearchivist/home/src/ta/ta_redis.py b/tubearchivist/home/src/ta/ta_redis.py index 0e9c23f..e13a997 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"""