This commit is contained in:
flaskfarm
2022-10-26 20:32:58 +09:00
parent c0b08a8222
commit 1595599a65
7 changed files with 11 additions and 2 deletions

View File

@@ -262,6 +262,7 @@ class Framework:
self.config['running_type'] = os.environ.get('RUNNING_TYPE')
self.config['export_filepath'] = os.path.join(self.config['path_app'], 'export.sh')
self.config['exist_export'] = os.path.exists(self.config['export_filepath'])
self.config['recent_version'] = '--'
self.__process_args()
self.__load_config()
self.__init_define()

View File

@@ -1 +1 @@
VERSION="4.0.39"
VERSION="4.0.40"

View File

@@ -3,8 +3,10 @@ import os
from support import SupportSC
if os.path.exists(os.path.join(os.path.dirname(__file__), 'tving.py')):
from .seezn import SupportSeezn
from .tving import SupportTving
from .wavve import SupportWavve
else:
SupportTving = SupportSC.load_module_f(__file__, 'tving').SupportTving
SupportWavve = SupportSC.load_module_f(__file__, 'wavve').SupportWavve
SupportSeezn = SupportSC.load_module_f(__file__, 'seezn').SupportSeezn

File diff suppressed because one or more lines are too long

View File

@@ -181,6 +181,10 @@ class ModuleSetting(PluginModuleBase):
enc = hashlib.md5()
enc.update(SystemModelSetting.get('web_pw').encode())
SystemModelSetting.set('web_pw', enc.hexdigest())
elif 'restart_interval' in change_list:
if SystemModelSetting.get('restart_interval') == '':
SystemModelSetting.set('restart_interval', '0')
self.__set_restart_scheduler()
def __set_restart_scheduler(self):

View File

@@ -17,7 +17,7 @@ class ToolNotify(object):
if F.SystemModelSetting.get_bool('notify_telegram_use'):
SupportTelegram.send_telegram_message(text, image_url=image_url, bot_token=F.SystemModelSetting.get('notify_telegram_token'), chat_id=F.SystemModelSetting.get('notify_telegram_chat_id'))
if F.SystemModelSetting.get_bool('notify_discord_use'):
cls.send_discord_message(text, image_url=image_url, webhook_url=F.SystemModelSetting.get('notify_discord_webhook'))
SupportDiscord.send_discord_message(text, image_url=image_url, webhook_url=F.SystemModelSetting.get('notify_discord_webhook'))
@classmethod