mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix downloaders
This commit is contained in:
@@ -24,7 +24,11 @@ class Slack:
|
||||
_ds_url = f"http://127.0.0.1:{settings.PORT}/api/v1/message?token={settings.API_TOKEN}"
|
||||
_channel = ""
|
||||
|
||||
def __init__(self, oauth_token: str, app_token: str, channel: str = ""):
|
||||
def __init__(self, oauth_token: str, app_token: str, channel: str = "", **kwargs):
|
||||
|
||||
if not oauth_token or not app_token:
|
||||
logger.error("Slack 配置不完整!")
|
||||
return
|
||||
|
||||
try:
|
||||
slack_app = App(token=oauth_token,
|
||||
|
||||
Reference in New Issue
Block a user