Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/c0re100/qbittorrent-ee-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/c0re100/qbittorrent-ee-api

  • v0.0.0-20200731004304-4c5f22aa92a2
  • Source
  • Go
  • Socket score

Version published
Created
Source

qBittorrent-EE-API

A example program for qBittorrent Enhanced Edition API

example

Example

I want to block client contains "Xunlei". Do the infinite loop in GET /api/v2/sync/maindata for the torrent hash

Response
{
  "torrents": {
    "abcdefghijklmnopqrstuvwxyz12345678900000": {
      ....
    }
  }
}

Next, GET /api/v2/sync/torrentPeers?hash=abcdefghijklmnopqrstuvwxyz12345678900000

Response
{
  "full_update": true,
  "peers": {
    "1.2.3.4:1234": {
      "client": "7.9.5.4480",
      "connection": "BT",
      "country": "China",
      "country_code": "cn",
      "dl_speed": 0,
      "downloaded": 0,
      "files": "",
      "flags": "U X E P",
      "flags_desc": "interested(peer) and unchoked(local), peer from PEX, encrypted traffic, μTP",
      "ip": "1.2.3.4",
      "peer_id": "-XL0010-",
      "port": 1234,
      "progress": 0,
      "relevance": 0,
      "up_speed": 0,
      "uploaded": 0
    }
  },
  "rid": 1,
  "show_flags": true
}

Block Peer

If the peer's client contains "Xunlei", send a request to POST /api/v2/transfer/tempBlockPeer Default ban time: 1hour

Parameters

NameRequired?TypeDescription
ipRequiredStringIP address that you want to block
Example Request
curl -X POST -F 'ip=1.2.3.4' http://hostname:port/api/v2/transfer/tempBlockPeer

FAQs

Package last updated on 31 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc