This commit is contained in:
thsrite
2024-07-31 21:37:45 +08:00
parent 2ac3bdd5b0
commit 09f6b8bde2
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ class CloudSyncDel(_PluginBase):
if cloud_file_flag and self._notify:
if self._url:
if not media_path.suffix or media_path.suffix in settings.RMT_MEDIAEXT:
RequestUtils().post(url=self._url, json={
RequestUtils(content_type="application/json").post(url=self._url, json={
"path": str(media_path),
"type": "del"
})

View File

@@ -561,7 +561,7 @@ class FileSoftLink(_PluginBase):
logger.info(f"创建媒体文件软连接 {str(file_path)}{target_file} {retcode} {retmsg}")
if self._url and file_path.suffix in settings.RMT_MEDIAEXT:
logger.info(f"发送媒体文件软连接通知 {self._url} {str(file_path)}")
RequestUtils().post(url=self._url, json={
RequestUtils(content_type="application/json").post(url=self._url, json={
"path": str(file_path),
"type": "add"
})