update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -146,5 +146,6 @@ data/
|
||||
tmp/
|
||||
lib/support/site/tving.py
|
||||
lib/support/site/wavve.py
|
||||
lib/support/site/seezn.py
|
||||
*.bat
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1 +1 @@
|
||||
VERSION="4.0.39"
|
||||
VERSION="4.0.40"
|
||||
@@ -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
|
||||
|
||||
1
lib/support/site/seezn.pyf
Normal file
1
lib/support/site/seezn.pyf
Normal file
File diff suppressed because one or more lines are too long
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user