8
n8n 中文网amn8n.com

Radarr 通知

高级

这是一个Other领域的自动化工作流,包含 28 个节点。主要使用 If, Set, Code, Filter, Switch 等节点。 为 Radarr、Sonarr、Bazarr 等提供自定义 Discord 通知

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "DuPvLu9nGwryNe1H",
  "meta": {
    "instanceId": "0474a64210dbf4997d3d0ef45d7a3ada37c6ee1bf9febb43754c2af71828b968",
    "templateCredsSetupCompleted": true
  },
  "name": "Radarr 通知",
  "tags": [],
  "nodes": [
    {
      "id": "9c0dffb3-46b5-4408-a4e7-31ffeacc8f15",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        240,
        60
      ],
      "webhookId": "2db8a783-ffee-484f-b36d-ea92bc6d3b6b",
      "parameters": {
        "path": "radarr",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "2d5536bc-86cf-434b-9a68-9cd00e70cccf",
      "name": "切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        460,
        -40
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Bazarr",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "253ec7a1-89c0-4308-818a-aa82ce02ee4b",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    },
                    "leftValue": "={{ $json.body.title }}",
                    "rightValue": "Bazarr"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Radarr",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "ce9a2e5b-62b3-4e27-85d0-4f92ee85f49f",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.instanceName }}",
                    "rightValue": "Radarr"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Sonarr",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "52b206b1-39c0-43ae-8316-c27e754b8246",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.instanceName }}",
                    "rightValue": "Sonarr"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "5b9bc9ee-573b-47d5-9459-25040f4a8b76",
      "name": "通知 Discord",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2440,
        60
      ],
      "parameters": {
        "url": "https://discord.com/api/webhooks/...",
        "method": "POST",
        "options": {},
        "jsonBody": "={{ $json.body }}",
        "sendBody": true,
        "specifyBody": "json"
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "6daba0b8-2e7b-4156-bc51-748e84f2f3d7",
      "name": "设置字幕属性",
      "type": "n8n-nodes-base.set",
      "position": [
        1340,
        -240
      ],
      "parameters": {
        "include": "selected",
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "74b33e39-12e3-4cbf-a8a2-5701a5298a74",
              "name": "title",
              "type": "string",
              "value": "={{ $json.body.message.replace(/\\((\\d{4})\\) \\(\\d{4}\\)/, '($1)').match(/^(.+? \\(\\d{4}\\))(?: - (S\\d{2}E\\d{2}))?/)[0].trim()\n }}"
            },
            {
              "id": "6c294ae1-7ab6-43aa-b255-cf63e91c2884",
              "name": "language",
              "type": "string",
              "value": "={{ $json.body.message.match(/: ([A-Za-z ]+) subtitles/)[1].trim() }}"
            },
            {
              "id": "a4890d25-d3cd-4cc2-9d27-ca6a6acc87c7",
              "name": "provider",
              "type": "string",
              "value": "={{ $json.body.message.match(/from ([a-zA-Z0-9]+) with/)[1].trim() }}"
            },
            {
              "id": "9b79ec44-d32b-48c1-9439-56018deb3fe7",
              "name": "score",
              "type": "string",
              "value": "={{ $json.body.message.match(/score of ([\\d.]+%)/)[1].trim() }}"
            },
            {
              "id": "32b133db-fdd8-418c-be68-25566bc09d3c",
              "name": "=description",
              "type": "string",
              "value": "={{ $json.body.message.match(/ : .+ (subtitles .+) from/)[1].trim() }}"
            },
            {
              "id": "ed0b2761-f2ab-4ff2-adf2-c9157d8dd7e3",
              "name": "image",
              "type": "string",
              "value": ""
            }
          ]
        },
        "includeFields": "color,avatar,username",
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "4640e2d4-0b30-44e0-ab4e-0ce8422bfea5",
      "name": "设置字幕字段",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        -240
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "$input.item.json.fields = [\n  {\n    name: \"Language\",\n    value: $json.language,\n    inline: true,\n  },\n  {\n    name: \"Score\",\n    value: $json.score,\n    inline: true,\n  },\n];\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "eddbc733-db49-4989-b15d-5db1a3f65cb5",
      "name": "设置 Radarr 属性",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        -40
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d0f12d48-229a-4ac7-a1a8-2bdca6fedcfe",
              "name": "color",
              "type": "number",
              "value": 16761392
            },
            {
              "id": "79103f6e-82bd-4d8c-980f-f8efe3b49523",
              "name": "avatar",
              "type": "string",
              "value": "https://raw.githubusercontent.com/Radarr/Radarr/refs/heads/develop/Logo/64.png"
            },
            {
              "id": "88744f9f-afd8-4d20-9c5a-c788ffd9e725",
              "name": "username",
              "type": "string",
              "value": "Radarr"
            },
            {
              "id": "a51e865e-cc57-406e-8173-a2b359101794",
              "name": "body",
              "type": "object",
              "value": "={{ $json.body }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "c04f35b2-9811-4c56-9600-781c2e8ba275",
      "name": "设置 Bazarr 属性",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        -240
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d0f12d48-229a-4ac7-a1a8-2bdca6fedcfe",
              "name": "color",
              "type": "number",
              "value": 16777215
            },
            {
              "id": "79103f6e-82bd-4d8c-980f-f8efe3b49523",
              "name": "avatar",
              "type": "string",
              "value": "https://raw.githubusercontent.com/morpheus65535/bazarr/refs/heads/master/frontend/public/images/logo64.png"
            },
            {
              "id": "88744f9f-afd8-4d20-9c5a-c788ffd9e725",
              "name": "username",
              "type": "string",
              "value": "Bazarr"
            },
            {
              "id": "7b5b586d-b9f6-4f6e-afd9-c8a5ec68d19a",
              "name": "body",
              "type": "object",
              "value": "={{ $json.body }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3ab117bc-a6bc-429a-b26b-932799423767",
      "name": "设置 Sonarr 属性",
      "type": "n8n-nodes-base.set",
      "position": [
        680,
        235
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d0f12d48-229a-4ac7-a1a8-2bdca6fedcfe",
              "name": "color",
              "type": "number",
              "value": 52479
            },
            {
              "id": "79103f6e-82bd-4d8c-980f-f8efe3b49523",
              "name": "avatar",
              "type": "string",
              "value": "https://raw.githubusercontent.com/Sonarr/Sonarr/refs/heads/main/Logo/64.png"
            },
            {
              "id": "88744f9f-afd8-4d20-9c5a-c788ffd9e725",
              "name": "username",
              "type": "string",
              "value": "Sonarr"
            },
            {
              "id": "cf9ecba3-39ab-42b5-8669-cfee2ceb64b7",
              "name": "body",
              "type": "object",
              "value": "={{ $json.body }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "5fbd3d74-d325-4f39-8c01-83a3f850acd7",
      "name": "设置电影属性",
      "type": "n8n-nodes-base.set",
      "position": [
        1340,
        -40
      ],
      "parameters": {
        "include": "selected",
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a5fdeaf9-2e12-4906-8145-3ca90421563f",
              "name": "title",
              "type": "string",
              "value": "={{ $json.body.movie.title }} ({{ $json.body.movie.year ? $json.body.movie.year : $json.body.remoteMovie.year }})"
            },
            {
              "id": "a032bd92-5343-417e-94ed-cf677f18c3bb",
              "name": "description",
              "type": "string",
              "value": "={{ $json.body.eventType }}{{ $json.body.deleteReason ? $json.body.deleteReason : \"\" }}"
            },
            {
              "id": "d05f9e95-7fa3-48c2-93a2-10b7415362eb",
              "name": "quality",
              "type": "string",
              "value": "={{ ($json.body.movieFile ? $json.body.movieFile.quality : $json.body.downloadInfo.quality) }}"
            },
            {
              "id": "8a9b51f7-3d67-43d6-9836-f78be6d48fa4",
              "name": "size",
              "type": "string",
              "value": "={{ (($json.body.movieFile ? $json.body.movieFile.size : $json.body.release.size) / (1024 * 1024 * 1024)).toFixed(1) }} GB"
            },
            {
              "id": "824ec3a3-b396-4cbf-bbd9-d56c501b3a05",
              "name": "release",
              "type": "string",
              "value": "={{ $json.body.release ? $json.body.release.releaseTitle : $json.body.movieFile.sceneName }}"
            },
            {
              "id": "2039dc49-1fe0-4313-955c-6b2b546fc4ff",
              "name": "image",
              "type": "string",
              "value": "={{ $json.body.movie.images.find(item => item.coverType === 'poster').remoteUrl }}"
            },
            {
              "id": "1d322b7a-c635-409a-bc7c-89c693539db0",
              "name": "subtitles",
              "type": "string",
              "value": "={{ $json.body.movieFile.mediaInfo.subtitles.join('/') }}"
            }
          ]
        },
        "includeFields": "color,avatar,username",
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "d33e55bf-873d-47a7-9b09-ace2994f1e01",
      "name": "设置剧集属性",
      "type": "n8n-nodes-base.set",
      "position": [
        1340,
        235
      ],
      "parameters": {
        "include": "selected",
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a5fdeaf9-2e12-4906-8145-3ca90421563f",
              "name": "title",
              "type": "string",
              "value": "={{ $json.body.series.title }} - S{{$json.body.episodes[0].seasonNumber.toString().padStart(2, '0') }}E{{ $json.body.episodes[0].episodeNumber.toString().padStart(2, '0')}}"
            },
            {
              "id": "a032bd92-5343-417e-94ed-cf677f18c3bb",
              "name": "action",
              "type": "string",
              "value": "={{ $json.body.eventType }}"
            },
            {
              "id": "d05f9e95-7fa3-48c2-93a2-10b7415362eb",
              "name": "quality",
              "type": "string",
              "value": "={{ $json.body.episodeFile ? $json.body.episodeFile.quality : $json.body.release.quality }}"
            },
            {
              "id": "8a9b51f7-3d67-43d6-9836-f78be6d48fa4",
              "name": "size",
              "type": "string",
              "value": "={{ (($json.body.episodeFile ? $json.body.episodeFile.size : $json.body.release.size) / (1024 * 1024 * 1024)).toFixed(1) }} GB"
            },
            {
              "id": "824ec3a3-b396-4cbf-bbd9-d56c501b3a05",
              "name": "release",
              "type": "string",
              "value": "={{ $json.body.episodeFile ? $json.body.episodeFile.sceneName : $json.body.release.releaseTitle }}"
            },
            {
              "id": "2039dc49-1fe0-4313-955c-6b2b546fc4ff",
              "name": "image",
              "type": "string",
              "value": "={{ $json.body.series.images.find(item => item.coverType === 'poster').remoteUrl }}"
            },
            {
              "id": "b9e2aaac-f53e-4c97-a51a-c7ec49a581d2",
              "name": "description",
              "type": "string",
              "value": "={{ $json.body.eventType }}{{ $json.body.deleteReason ? $json.body.deleteReason : \"\" }}"
            },
            {
              "id": "f42fdba2-dea4-4d7b-99cc-838909a2930c",
              "name": "subtitles",
              "type": "string",
              "value": "={{ $json.body.episodeFile && $json.body.episodeFile.mediaInfo && $json.body.episodeFile.mediaInfo.subtitles ? $json.body.episodeFile.mediaInfo.subtitles.join('/') : 'None' }}"
            }
          ]
        },
        "includeFields": "color,avatar,username",
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "47489049-0f54-41aa-a9ac-28549ee5c8ac",
      "name": "设置电影字段",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        -40
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "$input.item.json.fields = [];\n\n$input.item.json.fields.push({\n  \"name\": \"Quality\",\n  \"value\": $json.quality,\n  \"inline\": true\n});\n\n$input.item.json.fields.push({\n  \"name\": \"Size\",\n  \"value\": $json.size,\n  \"inline\": true\n});\n\nif ($json.subtitles && $json.subtitles != \"\") {\n  $input.item.json.fields.push({\n    \"name\": \"Subtitles\",\n    \"value\": $json.subtitles,\n    \"inline\": true\n  });\n}\n\n$input.item.json.fields.push({\n  \"name\": \"Release\",\n  \"value\": \"```\" + $json.release + \"```\"\n});\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "7f07ae01-cea0-4c65-9a3a-7cf18328eeae",
      "name": "设置剧集字段",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        235
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "$input.item.json.fields = [\n  {\n    \"name\": \"Quality\",\n    \"value\": $json.quality,\n    \"inline\": true\n  },\n  {\n    \"name\": \"Size\",\n    \"value\": $json.size,\n    \"inline\": true\n  },\n  {\n    \"name\": \"Subtitles\",\n    \"value\": $json.subtitles && $json.subtitles !== 'None' ? `${$json.subtitles.split('/')[0]}/... (${$json.subtitles.split('/').length})` : $json.subtitles\n,\n    \"inline\": true\n  },\n  {\n    \"name\": \"Release\",\n    \"value\": \"```\" + $json.release + \"```\"\n  }\n];\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "d2d94c62-9083-45e7-b766-c9838316c0e5",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1120,
        160
      ],
      "parameters": {
        "include": "allOtherFields",
        "options": {
          "destinationFieldName": "body.episodeFile"
        },
        "fieldToSplitOut": "body.episodeFiles"
      },
      "typeVersion": 1
    },
    {
      "id": "8814e90e-5a5f-40ae-ba2b-95dce6ededac",
      "name": "是否为多个",
      "type": "n8n-nodes-base.if",
      "position": [
        900,
        235
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "406df52e-e05b-4c77-b704-ec447596dbf8",
              "operator": {
                "type": "array",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.body.episodeFiles }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "c1ba73f3-7e28-43c5-a893-9803a694e0d4",
      "name": "翻译 Bazarr 描述",
      "type": "n8n-nodes-base.code",
      "position": [
        1780,
        -240
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "switch ($json.description) {\n  case \"subtitles downloaded\":\n    $json.description = \"Subtitles downloaded\";\n    break;\n}\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "d9c13a65-82fe-4c6d-a3a5-f2066ef3dd3c",
      "name": "翻译 Radarr 描述",
      "type": "n8n-nodes-base.code",
      "position": [
        1780,
        -40
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "switch ($json.description) {\n  case \"MovieFileDeleteupgrade\":\n    $json.description = \"Movie upgraded\";\n    break;\n  case \"MovieFileDeletemanual\":\n    $json.description = \"Movie file deleted\";\n    break;\n  case \"Download\":\n    $json.description = \"Movie imported\";\n    break;\n  case \"ManualInteractionRequired\":\n    $json.description = \"Manual interaction required\";\n    break;\n}\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "54f24e3b-d753-4f25-887f-8901d98ccabb",
      "name": "翻译 Sonarr 描述",
      "type": "n8n-nodes-base.code",
      "position": [
        1780,
        235
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "switch ($json.description) {\n  case \"EpisodeFileDeleteupgrade\":\n    $json.description = \"Episode upgraded\";\n    break;\n  case \"EpisodeFileDeletemanual\":\n    $json.description = \"Episode file deleted\";\n    break;\n  case \"Download\":\n    $json.description = \"Episode Imported\";\n    break;\n  case \"ManualInteractionRequired\":\n    $json.description = \"Manual interaction required\";\n    break;\n}\n\nreturn $input.item;"
      },
      "typeVersion": 2
    },
    {
      "id": "3d23dd8f-e53c-4da7-90ea-08a542685f4c",
      "name": "评估",
      "type": "n8n-nodes-base.evaluation",
      "position": [
        2440,
        -140
      ],
      "parameters": {
        "outputs": {
          "values": [
            {
              "outputName": "actual_output",
              "outputValue": "={{ $json.body }}"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4/edit#gid=0",
          "cachedResultName": "Radarr"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4/edit?usp=drivesdk",
          "cachedResultName": "n8n tests"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "FrOzR3HBlGfTYAIJ",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "9dadae42-c6c8-480b-82aa-6894b55358e3",
      "name": "是否为测试",
      "type": "n8n-nodes-base.evaluation",
      "position": [
        2220,
        -40
      ],
      "parameters": {
        "operation": "checkIfEvaluating"
      },
      "typeVersion": 4.6
    },
    {
      "id": "59b286d5-e7d2-414a-a460-8dba71027079",
      "name": "运行测试",
      "type": "n8n-nodes-base.evaluationTrigger",
      "position": [
        -200,
        -140
      ],
      "parameters": {
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4/edit#gid=0",
          "cachedResultName": "Radarr"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Sco9nfetll-LH3g4fplcGOs5TedL0NrDjPLiXAo8oX4/edit?usp=drivesdk",
          "cachedResultName": "n8n tests"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "FrOzR3HBlGfTYAIJ",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "8995967a-058d-4cc5-bae6-894432bda437",
      "name": "测试已启用",
      "type": "n8n-nodes-base.filter",
      "position": [
        20,
        -140
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "75c6f304-f4ea-4206-aba0-fb3b0a9605e4",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.input }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "baf45f74-a84d-4121-83d6-7dc40c940285",
      "name": "准备通知 JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        -40
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "var content = {\n  username: $json.username,\n  avatar_url: $json.avatar,\n  embeds: [\n    {\n      title: $json.title,\n      description: $json.description,\n      author: {\n        name: $json.username,\n        icon_url: $json.avatar,\n      },\n      thumbnail: {\n        url: $json.image\n      },\n      color: $json.color,\n      fields: $json.fields,\n    },\n  ],\n};\n\nreturn { json: { body: content } };\n"
      },
      "typeVersion": 2
    },
    {
      "id": "684c7848-ce07-4b3f-8087-124f89b23c52",
      "name": "转换为 JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        240,
        -140
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let item = JSON.parse($json.input);\nreturn item;"
      },
      "typeVersion": 2
    },
    {
      "id": "5693766d-8739-4fbf-bb8b-8f3310a0f5ef",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -240
      ],
      "parameters": {
        "height": 100,
        "content": "Bazarr 事件:"
      },
      "typeVersion": 1
    },
    {
      "id": "935e4ec1-378c-44a2-93d8-3b2c5d7b7c9c",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -40
      ],
      "parameters": {
        "content": "Radarr 事件:"
      },
      "typeVersion": 1
    },
    {
      "id": "434b22ed-f8e3-4c97-ae6e-de6baa45962b",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        220
      ],
      "parameters": {
        "content": "Sonarr 事件:"
      },
      "typeVersion": 1
    },
    {
      "id": "297a568f-99ad-4b34-a466-c0a43471a62e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        -560
      ],
      "parameters": {
        "width": 380,
        "height": 780,
        "content": "### 自定义 Radarr / Sonarr / Bazarr 通知"
      },
      "typeVersion": 1
    },
    {
      "id": "9238365a-5b12-4e5e-a969-9d43c790de83",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1980,
        -300
      ],
      "parameters": {
        "height": 240,
        "content": "### 输出"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "98cc24c8-5aba-4b3c-8e5c-e8c358d085cd",
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Set Bazarr properties",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Radarr properties",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Sonarr properties",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Test": {
      "main": [
        [
          {
            "node": "Evaluation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Tests": {
      "main": [
        [
          {
            "node": "Test is enabled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Set series properties",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is multiple": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set series properties",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Discord": {
      "main": [
        []
      ]
    },
    "Convert to JSON": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test is enabled": {
      "main": [
        [
          {
            "node": "Convert to JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set movie fields": {
      "main": [
        [
          {
            "node": "Translate Radarr description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set series fields": {
      "main": [
        [
          {
            "node": "Translate Sonarr description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set subtitle fields": {
      "main": [
        [
          {
            "node": "Translate Bazarr description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set movie properties": {
      "main": [
        [
          {
            "node": "Set movie fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Bazarr properties": {
      "main": [
        [
          {
            "node": "Set subtitle properties",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Radarr properties": {
      "main": [
        [
          {
            "node": "Set movie properties",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Sonarr properties": {
      "main": [
        [
          {
            "node": "Is multiple",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set series properties": {
      "main": [
        [
          {
            "node": "Set series fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set subtitle properties": {
      "main": [
        [
          {
            "node": "Set subtitle fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare notification JSON": {
      "main": [
        [
          {
            "node": "Is Test",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate Bazarr description": {
      "main": [
        [
          {
            "node": "Prepare notification JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate Radarr description": {
      "main": [
        [
          {
            "node": "Prepare notification JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate Sonarr description": {
      "main": [
        [
          {
            "node": "Prepare notification JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 其他

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量28
分类1
节点类型11
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流