Skip to content

Commit c4964ad

Browse files
authored
Fix hardcoded value of status Update interval
1 parent 01ed02e commit c4964ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/modules/mirror.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from telegram.ext import CommandHandler, run_async
22
from telegram.error import BadRequest, TimedOut
33
from bot.helper.mirror_utils import aria2_download, gdriveTools, listeners
4-
from bot import LOGGER, dispatcher, DOWNLOAD_DIR
4+
from bot import LOGGER, dispatcher, DOWNLOAD_DIR, DOWNLOAD_STATUS_UPDATE_INTERVAL
55
from bot.helper.ext_utils import fs_utils, bot_utils
66
from bot import download_dict, status_reply_dict, status_reply_dict_lock, download_dict_lock, Interval
77
from bot.helper.telegram_helper.message_utils import *
@@ -144,7 +144,7 @@ def _mirror(bot,update ,isTar=False):
144144
aria.add_download(link, f'{DOWNLOAD_DIR}/{listener.uid}/')
145145
sendStatusMessage(update,bot)
146146
if len(Interval) == 0:
147-
Interval.append(setInterval(5,update_all_messages))
147+
Interval.append(setInterval(DOWNLOAD_STATUS_UPDATE_INTERVAL,update_all_messages))
148148

149149
@run_async
150150
def mirror(bot,update):

0 commit comments

Comments
 (0)