{
  "name": "Dynamic media library with on-demand downloads for Radarr/Sonarr and Plex",
  "nodes": [
    {
      "id": "816067dc-1c5c-42e4-a6f6-06cdd6a92365",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        848,
        -224
      ]
    },
    {
      "id": "625beae8-71a6-4b52-8cb6-022ee08ef7fd",
      "name": "Format JustWatch results",
      "type": "n8n-nodes-base.code",
      "position": [
        -128,
        -144
      ]
    },
    {
      "id": "22af297a-8b1b-436c-aed6-4ebac97b93cb",
      "name": "Call JustWatch API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -592,
        128
      ]
    },
    {
      "id": "8039e353-f1d3-4a73-89b0-4c5d30c85670",
      "name": "Remove unmonitored tag",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        912
      ]
    },
    {
      "id": "e42ca5e0-2faa-4b32-b936-c75b1f05431b",
      "name": "If tag unmonitored exists",
      "type": "n8n-nodes-base.if",
      "position": [
        -32,
        928
      ]
    },
    {
      "id": "f87cdfc2-30fc-47df-8b0e-57e49512f516",
      "name": "If Radarr",
      "type": "n8n-nodes-base.if",
      "position": [
        -384,
        1008
      ]
    },
    {
      "id": "26bdba3f-9d3c-41b8-8298-63d4963928da",
      "name": "If tag unmonitored exists Sonarr",
      "type": "n8n-nodes-base.if",
      "position": [
        -32,
        1104
      ]
    },
    {
      "id": "22a88278-8dfc-4f37-87f8-c3af8f8cbef8",
      "name": "Remove unmonitored tag Sonarr",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        256,
        1104
      ]
    },
    {
      "id": "5e98925d-ba4d-4820-86d7-ed2f93f79f36",
      "name": "Webhook Arrs Dummy file update",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1056,
        1216
      ]
    },
    {
      "id": "77b1f379-da9a-42c2-83fb-5a87b2e101bb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        592
      ],
      "parameters": {
        "width": null,
        "height": 96,
        "content": "To-do: \nControleren of er geen dummy files meer zijn dan pas tag verwijderen."
      }
    },
    {
      "id": "e71ea25f-7684-475f-bb4f-b4e7c62d2902",
      "name": "Switch eventType",
      "type": "n8n-nodes-base.switch",
      "position": [
        -800,
        1184
      ]
    },
    {
      "id": "26b16a0c-15fc-458c-860d-11c69ae08d2b",
      "name": "Create dummy file for movie1",
      "type": "n8n-nodes-base.ssh",
      "position": [
        -224,
        1344
      ]
    },
    {
      "id": "6d1e2297-fbdd-4d25-ae9b-b3dbefb3d6ca",
      "name": "Refresh movie1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        16,
        1344
      ]
    },
    {
      "id": "7854e9a9-5f77-4bf0-8f33-e3314572ac3a",
      "name": "Refresh series1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        1616
      ]
    },
    {
      "id": "47b6a9ef-06dc-4168-ad70-62da2fef0696",
      "name": "Refresh Plex",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        1344
      ]
    },
    {
      "id": "d84732c8-09b7-4a9b-bf00-9449ec4c523b",
      "name": "Refresh Plex Series",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        1616
      ]
    },
    {
      "id": "bb3647c8-0586-4c3e-975a-120dda6f7b89",
      "name": "Sonarr runtime s01e01",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -208,
        1616
      ]
    },
    {
      "id": "33e771ed-2b6a-4046-9ffe-dd71df1577a7",
      "name": "Create dummy file for series with runtime",
      "type": "n8n-nodes-base.ssh",
      "position": [
        16,
        1616
      ]
    },
    {
      "id": "d743cb61-8351-4854-b668-b023432f19b6",
      "name": "Radarr movie",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -400,
        1344
      ]
    },
    {
      "id": "1d5a3a61-c2af-4b1f-8d02-c32078368f21",
      "name": "Sonarr series",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -416,
        1616
      ]
    },
    {
      "id": "eeda8469-cb18-458a-a12a-1bc21639aca7",
      "name": "Create dummy file",
      "type": "n8n-nodes-base.ssh",
      "position": [
        -848,
        1648
      ]
    },
    {
      "id": "77e79179-fe4b-4c00-95db-59a25f399dfb",
      "name": "Search movie",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -112,
        2112
      ]
    },
    {
      "id": "1454fdb3-6d54-402e-8595-83e9d00fe3e1",
      "name": "Respond 200",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        96,
        2112
      ]
    },
    {
      "id": "ff692460-8be9-4f64-99e4-e233a6a7e1c2",
      "name": "Monitor movie",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        2112
      ]
    },
    {
      "id": "46fcd496-4c0a-474c-ba8c-a8d694bc15a8",
      "name": "Respond ",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        2432
      ]
    },
    {
      "id": "2a1590b8-5e59-4835-8de4-5dca41c7da40",
      "name": "Monitor series",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -400,
        2336
      ]
    },
    {
      "id": "96b3c1d1-c6e4-4915-bd9b-ad2bb940494b",
      "name": "Monitor all seasons",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -192,
        2336
      ]
    },
    {
      "id": "6993d242-0e3d-4252-9f04-f6b80ecb02a1",
      "name": "If movie4",
      "type": "n8n-nodes-base.if",
      "position": [
        -880,
        2224
      ]
    },
    {
      "id": "53f09ea8-0ba4-4866-8705-b36add60e6c9",
      "name": "Get Radarr information from tmdbId",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        2112
      ]
    },
    {
      "id": "e8da3276-5493-4605-a382-f4228d95cc8f",
      "name": "Get Sonarr information from tvdbId",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -640,
        2336
      ]
    },
    {
      "id": "53ecfd80-a81c-4976-ae4a-1ce6ba506bcc",
      "name": "Webhook Tautulli",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1120,
        2224
      ]
    },
    {
      "id": "0749d0c5-74c7-47d7-bfef-75aeaa088ebb",
      "name": "Check if collection is not empty",
      "type": "n8n-nodes-base.if",
      "position": [
        1056,
        -48
      ]
    },
    {
      "id": "1c1ae591-c96e-41ba-968f-745ccefb1465",
      "name": "If objectType is movie",
      "type": "n8n-nodes-base.if",
      "position": [
        96,
        -64
      ]
    },
    {
      "id": "fd6fe507-a8b5-4d18-8617-8b106ecbcaa3",
      "name": "Respond to Webhook1",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        848,
        112
      ]
    },
    {
      "id": "ff7cf84f-cf82-43f3-ba6c-5e753d401c2e",
      "name": "Format JustWatch results add tvdbId",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        144
      ]
    },
    {
      "id": "18551931-2df8-44a2-9875-e49521d608ca",
      "name": "Sonarr serie lookup1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        304,
        32
      ]
    },
    {
      "id": "cae3b989-28b5-4c8a-96e6-474d73554621",
      "name": "Webhook Arrs custom list JustWatch",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -912,
        128
      ]
    },
    {
      "id": "1217b066-2dab-47ae-bd05-e291b3d1d45f",
      "name": "Webhook Arrs custom list Trakt",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -912,
        384
      ]
    },
    {
      "id": "264a1dfb-2bd8-4686-9b70-643aa452cf40",
      "name": "Call Trakt API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -656,
        384
      ]
    },
    {
      "id": "7c648a25-cb1c-411b-8f80-7cf1ae35c7de",
      "name": "Format JustWatch results1",
      "type": "n8n-nodes-base.code",
      "position": [
        -432,
        384
      ]
    },
    {
      "id": "b9178b4b-f165-4021-bac5-54a34d990013",
      "name": "Respond to Webhook2",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -128,
        432
      ]
    },
    {
      "id": "3a965e43-7abc-4ee3-af8f-7e1ab20d42f8",
      "name": "Get all items in collection1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2928,
        320
      ]
    },
    {
      "id": "03062dc7-10b6-4193-b75c-4042b9ecdb5f",
      "name": "Check if collection contains items1",
      "type": "n8n-nodes-base.if",
      "position": [
        3120,
        560
      ]
    },
    {
      "id": "3d411a66-a5ba-4cfe-8e61-203330f73473",
      "name": "Split Out Collection Items1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        3296,
        272
      ]
    },
    {
      "id": "a8d9bc15-4707-480f-ac20-5dcdde3bba97",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3584,
        272
      ]
    },
    {
      "id": "160f4407-be37-464f-9c17-bc7013232aeb",
      "name": "Remove item from collection1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3840,
        288
      ]
    },
    {
      "id": "178927b9-459a-47b6-8f8e-cac49487870a",
      "name": "Get collection1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2496,
        384
      ]
    },
    {
      "id": "c00d0eed-6e07-4004-829d-2b9774a71087",
      "name": "Loop Over Items3",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        4272,
        576
      ]
    },
    {
      "id": "677ffe8c-2f71-4ce5-b011-9c5756e3abd7",
      "name": "Get GUID from imdbId",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4496,
        592
      ]
    },
    {
      "id": "d2ba9998-5b36-44a2-bd62-37ec6847ff94",
      "name": "Add item to collection2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5664,
        576
      ]
    },
    {
      "id": "90e4e4db-335d-4402-8b55-f68f4b0481de",
      "name": "Add item to collection3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5184,
        464
      ]
    },
    {
      "id": "7aeda33a-58d7-4a62-991e-3654da9bc5b2",
      "name": "Get ratingKey from GUID1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4960,
        576
      ]
    },
    {
      "id": "ebbaf071-2bee-40a2-afe1-719acc9a8959",
      "name": "Move collection item2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6192,
        576
      ]
    },
    {
      "id": "4206a64b-417f-4227-89a6-069b56022c22",
      "name": "If found Plex GUID1",
      "type": "n8n-nodes-base.if",
      "position": [
        4688,
        592
      ]
    },
    {
      "id": "12ccd64d-4ea8-4d65-9778-f067866b2c12",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1504,
        -192
      ],
      "parameters": {
        "width": 528,
        "height": 944,
        "content": "## *Arrs Import List for Plex Collection\n### You can use either **Trakt.TV** lists or **JustWatch.com** lists to populate your Plex collections.  \n### Add a new import list inside your *Arrs applicati"
      }
    },
    {
      "id": "21f623a7-2cb7-47bf-ba01-71e511b05159",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1440,
        368
      ]
    },
    {
      "id": "6580c82a-1c1c-468d-9c6d-c57698ea4c8e",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        3984,
        576
      ]
    },
    {
      "id": "3b563589-1a7e-4b45-9901-4e2a3d243b08",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        5440,
        576
      ]
    },
    {
      "id": "cec8d612-b961-4139-aa4d-7e22ff3e6fde",
      "name": "Merge2",
      "type": "n8n-nodes-base.merge",
      "position": [
        5888,
        576
      ]
    },
    {
      "id": "9c5987df-1c2e-4c72-84a8-0d35714700b1",
      "name": "Create dummy file for movie",
      "type": "n8n-nodes-base.ssh",
      "position": [
        -832,
        1664
      ]
    },
    {
      "id": "d0df6640-6aaa-413b-8873-49bf532f93ce",
      "name": "Get Overseerr users",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        2208
      ]
    },
    {
      "id": "969c7ef1-03d2-4507-8a23-2202e7d04d96",
      "name": "Filter Overseerr user",
      "type": "n8n-nodes-base.code",
      "position": [
        848,
        2208
      ]
    },
    {
      "id": "d3a3fdf7-60e4-4caf-b141-aae32159c8c6",
      "name": "Check if Overseerr user is found",
      "type": "n8n-nodes-base.if",
      "position": [
        1088,
        2208
      ]
    },
    {
      "id": "81f50586-3ac4-44b6-814d-10c5b057140d",
      "name": "Make Overseerr request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        2176
      ]
    },
    {
      "id": "e31c803c-65d1-4d1e-859e-12421c56b125",
      "name": "Get last 20 Overseerr requests from user",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1344,
        2192
      ]
    },
    {
      "id": "c8c13788-8731-4a40-a806-844a14794030",
      "name": "Check if request already exists",
      "type": "n8n-nodes-base.code",
      "position": [
        1552,
        2192
      ]
    },
    {
      "id": "6853798e-5cc7-4d80-bc38-bb964e84f119",
      "name": "Check if no existing request for media exist for Overseerr user",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        2192
      ]
    },
    {
      "id": "db815a78-9775-475c-a118-6ce8340509e3",
      "name": "Terminate Tautulli sessions for dummy",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1552,
        992
      ]
    },
    {
      "id": "54f60bf2-07f1-4293-a310-9b5109f10b6f",
      "name": "Get all active sessions for file",
      "type": "n8n-nodes-base.code",
      "position": [
        1312,
        1008
      ]
    },
    {
      "id": "c8cc229c-a522-4178-b59c-b819bb4308a5",
      "name": "Monitor all seasons1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        1264
      ]
    },
    {
      "id": "e191443d-1b66-4934-a3e0-0fa6fe7b53d4",
      "name": "Remove all dummy files",
      "type": "n8n-nodes-base.ssh",
      "position": [
        576,
        1264
      ]
    },
    {
      "id": "a96a9b23-cdd4-400c-8ba8-c9991d1cd2bb",
      "name": "If deletedFiles exist",
      "type": "n8n-nodes-base.if",
      "position": [
        816,
        992
      ]
    },
    {
      "id": "7834dda0-3a91-47c0-9cb5-8fc688d90bba",
      "name": "Get active Tautulli sessions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1088,
        1008
      ]
    },
    {
      "id": "37d56569-7336-4dc8-8cea-78dc37d9e24e",
      "name": "Refresh series",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        1264
      ]
    },
    {
      "id": "3b9fcd01-1a10-4bc5-9ffa-12b7c27cc27c",
      "name": "Get Sonarr information for series",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        768,
        1264
      ]
    },
    {
      "id": "606671e3-bab5-4b2d-aed8-2f10630449a4",
      "name": "Search series2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        1488
      ]
    },
    {
      "id": "65351cd1-ff9a-4f7c-8ce1-e5ec0753beb1",
      "name": "Search series season",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1584,
        1600
      ]
    },
    {
      "id": "6de449f2-0240-47fd-998d-b695f66e2dfc",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        -336,
        2576
      ]
    },
    {
      "id": "bb42cbaf-6db3-4de6-990f-ac41ef0e0c04",
      "name": "Merge3",
      "type": "n8n-nodes-base.merge",
      "position": [
        0,
        2496
      ]
    },
    {
      "id": "dbceee71-94b4-4bdf-8eec-bf064d983f34",
      "name": "Search season pack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        176,
        2544
      ]
    },
    {
      "id": "ad7dc89b-ebe1-4af3-a1e3-68ba31c0eebc",
      "name": "Search season pack1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        1264
      ]
    },
    {
      "id": "1c83e819-0680-4619-b6d7-5678d038950c",
      "name": "Set fields for collection",
      "type": "n8n-nodes-base.set",
      "position": [
        1920,
        368
      ]
    },
    {
      "id": "bac5380e-95fc-4e8a-8c01-be3014c53ed5",
      "name": "Wait 5 minutes before process collection in Plex",
      "type": "n8n-nodes-base.wait",
      "position": [
        2240,
        368
      ]
    },
    {
      "id": "3af82c29-95b0-4a1e-948f-da0d7d3c4fd3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -1168
      ],
      "parameters": {
        "width": 784,
        "height": 736,
        "content": "## n8n Placeholdarr for Plex (BETA)\n\n### This flow creates **dummy files** for every item added in your *Arrs (Radarr/Sonarr) with the tag `unprocessed-dummy`.\n### It’s useful for maintaining a large "
      }
    },
    {
      "id": "ffee172c-f735-4d16-bceb-a6b05490e78f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        1536
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "If your SSH can't run FFMPEG just copy the dummy file to the dummy folder (To-do)"
      }
    },
    {
      "id": "dbd35e8a-ad95-4f89-88f5-5f83d2fa9a94",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1664,
        1088
      ],
      "parameters": {
        "width": 528,
        "height": 400,
        "content": "## *Arrs Connect Webhook\n\nPaste the following URL into your *Arrs application under **Notification Triggers**:\n\n- On File Import  \n- On File Update  \n- On Movie Added  \n\nSet the **Tag** to `dummy-unpr"
      }
    },
    {
      "id": "e44d1c92-0468-4975-b4cd-c768bd73b841",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1744,
        2032
      ],
      "parameters": {
        "width": 560,
        "height": 704,
        "content": "## Tautulli Webhook\n\nCreate a new **Notification Agent** in Tautulli and connect it to the following URL.\n\n- **Webhook Method**: `POST`  \n- **Trigger**: `Playback Start`  \n- **Condition**: Filename co"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Add item to collection2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Set fields for collection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Move collection item2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Search season pack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond ": {
      "main": [
        [
          {
            "node": "Get Overseerr users",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Radarr": {
      "main": [
        [
          {
            "node": "If tag unmonitored exists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If tag unmonitored exists Sonarr",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If movie4": {
      "main": [
        [
          {
            "node": "Get Radarr information from tmdbId",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Sonarr information from tvdbId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond 200": {
      "main": [
        [
          {
            "node": "Get Overseerr users",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Radarr movie": {
      "main": [
        [
          {
            "node": "Create dummy file for movie1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search movie": {
      "main": [
        [
          {
            "node": "Respond 200",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor movie": {
      "main": [
        [
          {
            "node": "Search movie",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sonarr series": {
      "main": [
        [
          {
            "node": "Sonarr runtime s01e01",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call Trakt API": {
      "main": [
        [
          {
            "node": "Format JustWatch results1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor series": {
      "main": [
        [
          {
            "node": "Monitor all seasons",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refresh movie1": {
      "main": [
        [
          {
            "node": "Refresh Plex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refresh series": {
      "main": [
        [
          {
            "node": "Monitor all seasons1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get collection1": {
      "main": [
        [
          {
            "node": "Get all items in collection1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refresh series1": {
      "main": [
        [
          {
            "node": "Refresh Plex Series",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Remove item from collection1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items3": {
      "main": [
        [],
        [
          {
            "node": "Get GUID from imdbId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch eventType": {
      "main": [
        [
          {
            "node": "If Radarr",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Radarr movie",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Sonarr series",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Tautulli": {
      "main": [
        [
          {
            "node": "If movie4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call JustWatch API": {
      "main": [
        [
          {
            "node": "Format JustWatch results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook": {
      "main": [
        [
          {
            "node": "Check if collection is not empty",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search season pack": {
      "main": [
        [
          {
            "node": "Respond ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Overseerr users": {
      "main": [
        [
          {
            "node": "Filter Overseerr user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If found Plex GUID1": {
      "main": [
        [
          {
            "node": "Get ratingKey from GUID1",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Monitor all seasons": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook1": {
      "main": [
        [
          {
            "node": "Check if collection is not empty",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook2": {
      "main": [
        []
      ]
    },
    "Get GUID from imdbId": {
      "main": [
        [
          {
            "node": "If found Plex GUID1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor all seasons1": {
      "main": [
        [
          {
            "node": "Search season pack1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sonarr serie lookup1": {
      "main": [
        [
          {
            "node": "Format JustWatch results add tvdbId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Overseerr user": {
      "main": [
        [
          {
            "node": "Check if Overseerr user is found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If deletedFiles exist": {
      "main": [
        [
          {
            "node": "Get active Tautulli sessions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move collection item2": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sonarr runtime s01e01": {
      "main": [
        [
          {
            "node": "Create dummy file for series with runtime",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If objectType is movie": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Sonarr serie lookup1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove all dummy files": {
      "main": [
        [
          {
            "node": "Get Sonarr information for series",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove unmonitored tag": {
      "main": [
        [
          {
            "node": "If deletedFiles exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add item to collection2": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add item to collection3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format JustWatch results": {
      "main": [
        [
          {
            "node": "If objectType is movie",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get ratingKey from GUID1": {
      "main": [
        [
          {
            "node": "Add item to collection3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Format JustWatch results1": {
      "main": [
        [
          {
            "node": "Respond to Webhook2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "If tag unmonitored exists": {
      "main": [
        [
          {
            "node": "Remove unmonitored tag",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If deletedFiles exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set fields for collection": {
      "main": [
        [
          {
            "node": "Wait 5 minutes before process collection in Plex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Collection Items1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create dummy file for movie1": {
      "main": [
        [
          {
            "node": "Refresh movie1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get active Tautulli sessions": {
      "main": [
        [
          {
            "node": "Get all active sessions for file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all items in collection1": {
      "main": [
        [
          {
            "node": "Check if collection contains items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove item from collection1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove unmonitored tag Sonarr": {
      "main": [
        [
          {
            "node": "Remove all dummy files",
            "type": "main",
            "index": 0
          },
          {
            "node": "If deletedFiles exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Arrs Dummy file update": {
      "main": [
        [
          {
            "node": "Switch eventType",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Arrs custom list Trakt": {
      "main": [
        [
          {
            "node": "Call Trakt API",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if request already exists": {
      "main": [
        [
          {
            "node": "Check if no existing request for media exist for Overseerr user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Overseerr user is found": {
      "main": [
        [
          {
            "node": "Get last 20 Overseerr requests from user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if collection is not empty": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all active sessions for file": {
      "main": [
        [
          {
            "node": "Terminate Tautulli sessions for dummy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If tag unmonitored exists Sonarr": {
      "main": [
        [
          {
            "node": "Remove unmonitored tag Sonarr",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If deletedFiles exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Sonarr information for series": {
      "main": [
        [
          {
            "node": "Refresh series",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Radarr information from tmdbId": {
      "main": [
        [
          {
            "node": "Monitor movie",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Sonarr information from tvdbId": {
      "main": [
        [
          {
            "node": "Monitor series",
            "type": "main",
            "index": 0
          },
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Arrs custom list JustWatch": {
      "main": [
        [
          {
            "node": "Call JustWatch API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if collection contains items1": {
      "main": [
        [
          {
            "node": "Split Out Collection Items1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format JustWatch results add tvdbId": {
      "main": [
        [
          {
            "node": "Respond to Webhook1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get last 20 Overseerr requests from user": {
      "main": [
        [
          {
            "node": "Check if request already exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create dummy file for series with runtime": {
      "main": [
        [
          {
            "node": "Refresh series1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 minutes before process collection in Plex": {
      "main": [
        [
          {
            "node": "Get collection1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if no existing request for media exist for Overseerr user": {
      "main": [
        [
          {
            "node": "Make Overseerr request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}