8
n8n 中文网amn8n.com

IMDB视频自动下载器(含Google Drive上传和邮件提醒)

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 19 个节点。主要使用 If, Wait, EmailSend, FormTrigger, GoogleDrive 等节点。 IMDB视频自动下载器(含Google Drive上传和邮件提醒)

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1cc59724-955e-4b0d-b6ef-42e959cf1459",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -832,
        496
      ],
      "webhookId": "99c989d4-d7e6-42d9-9f05-5235e2624149",
      "parameters": {
        "options": {},
        "formTitle": "IMDB video downloader ",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "requiredField": true
            }
          ]
        },
        "formDescription": "IMDB video downloader "
      },
      "typeVersion": 2.2
    },
    {
      "id": "174bdb96-10e4-4755-bd3a-e43faf74d244",
      "name": "Google Drive 设置权限",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        512,
        208
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "resource": "file",
        "operation": "share",
        "permissionsUi": {},
        "authentication": "oAuth2"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "qEkQ8MFn0uSHgAqY",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "1d18f990-5fd1-48b9-8aea-fb7ef50c27f8",
      "name": "从 API 获取 IMDB 视频信息",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -608,
        496
      ],
      "parameters": {
        "url": "https://imdb-downloader.p.rapidapi.com/imdb.php",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.URL }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "imdb-downloader.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b2096733-149c-4c2f-bfb8-fc77896ba590",
      "name": "检查 API 响应状态",
      "type": "n8n-nodes-base.if",
      "position": [
        -320,
        512
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bcc58e3d-9609-4ec3-adb9-bc6098205818",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.statusCode }}",
              "rightValue": 200
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "a5408f73-d314-421c-876f-51f40f691256",
      "name": "下载视频文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        240
      ],
      "parameters": {
        "url": "={{ $json.body.medias[0].url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "666bdabf-0963-4c68-b075-c3d5e3c747f1",
      "name": "上传视频到 Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        208,
        208
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "qEkQ8MFn0uSHgAqY",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "8e4810b0-49a2-4048-9f6e-38783e457d75",
      "name": "失败通知邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        400,
        768
      ],
      "webhookId": "525e3858-8b2a-4615-9fac-3e7a17a7d719",
      "parameters": {
        "html": "Hello,\n\nWe regret to inform you that your IMDB video download request could not be completed successfully.\n\nThere might have been an issue with the URL provided or a problem with the video processing service.\n\nPlease double-check the IMDB URL and try again. If the problem persists, feel free to contact our support team for assistance.\n\nWe apologize for the inconvenience caused.\n",
        "options": {},
        "subject": "IMDB Video Download Failed",
        "toEmail": "user@test.com",
        "fromEmail": "admin@test.com"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "b3dfe9a0-2c1b-4823-8085-412dd5b32485",
      "name": "带 Drive 链接的成功通知邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        720,
        208
      ],
      "webhookId": "ff0eb63c-87ae-45ce-a870-485ebc9cdb65",
      "parameters": {
        "html": "=Hello,\n\nYour requested IMDB video has been successfully downloaded and uploaded to Google Drive. It is now ready for you to access.\n\nYou can download or view the video directly from your Google Drive using the shared link below:\n {{ $('Upload Video to Google Drive').item.json.webContentLink }}\n",
        "options": {},
        "subject": "Your IMDB Video is Ready and Shared via Google Drive",
        "toEmail": "user@tes.cm",
        "fromEmail": "admin@test.com"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f56b357e-932c-4275-ab5b-b66b996fe3fb",
      "name": "处理延迟",
      "type": "n8n-nodes-base.wait",
      "position": [
        32,
        752
      ],
      "webhookId": "410a255f-0e20-4697-9584-b59829a5bfb8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "79f5bbb4-b687-4654-8cc6-13822d9671a9",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        288
      ],
      "parameters": {
        "height": 336,
        "content": "当用户通过表单提交 IMDB 视频 URL 时触发工作流。它将 URL 作为输入捕获以供进一步处理。"
      },
      "typeVersion": 1
    },
    {
      "id": "372dc8e9-efc7-4905-b266-1521d245a244",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        288
      ],
      "parameters": {
        "width": 224,
        "height": 352,
        "content": "通过 POST 请求将提交的 URL 发送到 IMDB 下载器 API,以检索视频元数据和下载链接。使用 RapidAPI 密钥处理 API 身份验证。"
      },
      "typeVersion": 1
    },
    {
      "id": "6d73b948-fd3f-4b1d-87b9-eb7918d1bd7c",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        288
      ],
      "parameters": {
        "height": 352,
        "content": "通过验证响应状态码是否等于 200 来检查 API 调用是否成功。根据 API 请求的成功或失败路由工作流。"
      },
      "typeVersion": 1
    },
    {
      "id": "f46406dd-e84a-46be-82c1-aca72ff8a57e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        96
      ],
      "parameters": {
        "height": 272,
        "content": "从 API 响应提供的 URL 下载实际视频文件(MP4)。此节点获取媒体内容以供后续上传。"
      },
      "typeVersion": 1
    },
    {
      "id": "18c36cc0-8fd3-4843-b2c3-d0bd3c8f2c27",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        96
      ],
      "parameters": {
        "height": 272,
        "content": "将下载的视频文件上传到指定的 Google Drive 文件夹(本例中为根驱动器)。使用 OAuth2 凭据与 Google Drive 进行身份验证。"
      },
      "typeVersion": 1
    },
    {
      "id": "cb2e9aad-ac9e-45d7-85d4-6c2a16ae3bdc",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        96
      ],
      "parameters": {
        "height": 272,
        "content": "设置上传文件的共享权限,使其可通过可共享链接访问。使收件人能够查看或下载文件。"
      },
      "typeVersion": 1
    },
    {
      "id": "30adc725-fcaa-4658-bc36-ed386f625014",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        112
      ],
      "parameters": {
        "height": 256,
        "content": "向用户发送电子邮件,通知其视频已准备就绪,并包含用于访问视频的 Google Drive 链接。"
      },
      "typeVersion": 1
    },
    {
      "id": "215dad9d-25ee-4308-a250-a674fe02aec4",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        624
      ],
      "parameters": {
        "height": 256,
        "content": "在发送失败通知之前添加等待/延迟时间。这可以为任何异步过程或重试留出时间。"
      },
      "typeVersion": 1
    },
    {
      "id": "11ee3f91-74e1-4b45-9417-dd98549dcb31",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        608
      ],
      "parameters": {
        "height": 288,
        "content": "发送电子邮件通知用户其视频下载失败,可能是由于无效 URL 或 API 问题,并建议重试或联系支持人员。"
      },
      "typeVersion": 1
    },
    {
      "id": "74fab861-5161-486b-9ab8-458e28682c91",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1664,
        208
      ],
      "parameters": {
        "width": 432,
        "height": 528,
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Processing Delay": {
      "main": [
        [
          {
            "node": "Failure Notification Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Fetch IMDB Video Info from API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video File": {
      "main": [
        [
          {
            "node": "Upload Video to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check API Response Status": {
      "main": [
        [
          {
            "node": "Download Video File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Processing Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Set Permission": {
      "main": [
        [
          {
            "node": "Success Notification Email with Drive Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to Google Drive": {
      "main": [
        [
          {
            "node": "Google Drive Set Permission",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch IMDB Video Info from API": {
      "main": [
        [
          {
            "node": "Check API Response Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类2
节点类型7
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流