更新 synologychat.py

This commit is contained in:
jxxghp
2024-02-15 21:50:16 +08:00
committed by GitHub
parent 5639e0b7d0
commit fba10fe6a0

View File

@ -9,13 +9,12 @@ from app.core.context import MediaInfo, Context
from app.core.metainfo import MetaInfo from app.core.metainfo import MetaInfo
from app.log import logger from app.log import logger
from app.utils.http import RequestUtils from app.utils.http import RequestUtils
from app.utils.singleton import Singleton
from app.utils.string import StringUtils from app.utils.string import StringUtils
lock = Lock() lock = Lock()
class SynologyChat(metaclass=Singleton): class SynologyChat:
def __init__(self): def __init__(self):
self._req = RequestUtils(content_type="application/x-www-form-urlencoded") self._req = RequestUtils(content_type="application/x-www-form-urlencoded")
self._webhook_url = settings.SYNOLOGYCHAT_WEBHOOK self._webhook_url = settings.SYNOLOGYCHAT_WEBHOOK