更新 synologychat.py

This commit is contained in:
jxxghp 2024-02-15 21:50:16 +08:00 committed by GitHub
parent 5639e0b7d0
commit fba10fe6a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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