{
  "name": "Plex automatic QBittorent throttler",
  "nodes": [
    {
      "id": null,
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        60,
        440
      ]
    },
    {
      "id": null,
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        640,
        580
      ]
    },
    {
      "id": null,
      "name": "Resume",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        280
      ]
    },
    {
      "id": null,
      "name": "Check if Local",
      "type": "n8n-nodes-base.if",
      "position": [
        460,
        440
      ]
    },
    {
      "id": null,
      "name": "Play",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        440
      ]
    },
    {
      "id": null,
      "name": "Don't Do Anything",
      "type": "n8n-nodes-base.noOp",
      "position": [
        660,
        220
      ]
    },
    {
      "id": null,
      "name": "Pause",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        680
      ]
    },
    {
      "id": null,
      "name": "Stop",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        840
      ]
    },
    {
      "id": null,
      "name": "Get QB Cookie",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1260,
        360
      ]
    },
    {
      "id": null,
      "name": "Get QB Cookie1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1260,
        760
      ]
    },
    {
      "id": null,
      "name": "Global Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        280,
        440
      ]
    },
    {
      "id": null,
      "name": "Check Throttle State",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1460,
        360
      ]
    },
    {
      "id": null,
      "name": "Check if Throttled",
      "type": "n8n-nodes-base.if",
      "position": [
        1680,
        360
      ]
    },
    {
      "id": null,
      "name": "Do Nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1900,
        260
      ]
    },
    {
      "id": null,
      "name": "Check Throttle State2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1460,
        760
      ]
    },
    {
      "id": null,
      "name": "Check if Throttled1",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        760
      ]
    },
    {
      "id": null,
      "name": "Do Nothing1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1900,
        860
      ]
    },
    {
      "id": null,
      "name": "Throttle Connection",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1060,
        360
      ]
    },
    {
      "id": null,
      "name": "Resume Downloads",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1060,
        760
      ]
    },
    {
      "id": null,
      "name": "Disable Throttle",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1900,
        660
      ]
    },
    {
      "id": null,
      "name": "Enable Throttle",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1900,
        440
      ]
    }
  ],
  "connections": {
    "Play": {
      "main": [
        [
          {
            "node": "Throttle Connection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stop": {
      "main": [
        [
          {
            "node": "Resume Downloads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pause": {
      "main": [
        [
          {
            "node": "Resume Downloads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Resume": {
      "main": [
        [
          {
            "node": "Throttle Connection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Resume",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Play",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pause",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Global Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get QB Cookie": {
      "main": [
        [
          {
            "node": "Check Throttle State",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Local": {
      "main": [
        [
          {
            "node": "Don't Do Anything",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get QB Cookie1": {
      "main": [
        [
          {
            "node": "Check Throttle State2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Variables": {
      "main": [
        [
          {
            "node": "Check if Local",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Resume Downloads": {
      "main": [
        [
          {
            "node": "Get QB Cookie1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Throttled": {
      "main": [
        [
          {
            "node": "Do Nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Enable Throttle",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Throttled1": {
      "main": [
        [
          {
            "node": "Disable Throttle",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Do Nothing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Throttle Connection": {
      "main": [
        [
          {
            "node": "Get QB Cookie",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Throttle State": {
      "main": [
        [
          {
            "node": "Check if Throttled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Throttle State2": {
      "main": [
        [
          {
            "node": "Check if Throttled1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}