Implements

  • TorrentClient

Constructors

  • Parameters

    • options: Partial<TorrentSettings> = {}

    Returns QBittorrent

Properties

config: TorrentSettings

Methods

  • Parameters

    • urls: string

      URLs separated with newlines

    • options: Partial<AddMagnetOptions> = {}

    Returns Promise<boolean>

  • Parameters

    Returns Promise<boolean>

  • Returns Promise<AllClientData>

  • Returns Promise<string>

  • Parameters

    • hash: string

    Returns Promise<NormalizedTorrent>

  • Torrents list

    Parameters

    • __namedParameters: {
          category?: string;
          filter?: TorrentFilters;
          hashes?: string | string[];
          offset?: number;
          reverse?: boolean;
          sort?: string;
          tag?: string;
      } = {}
      • Optional category?: string
      • Optional filter?: TorrentFilters
      • Optional hashes?: string | string[]
      • Optional offset?: number
      • Optional reverse?: boolean
      • Optional sort?: string
      • Optional tag?: string

    Returns Promise<Torrent[]>

    list of torrents

  • Returns boolean

  • Parameters

    • torrent: string | Uint8Array
    • options: Partial<AddTorrentOptions> = {}

    Returns Promise<NormalizedTorrent>

  • Parameters

    • hash: string

      Hash for desired torrent

    • id: number

      id of the file to be renamed

    • name: string

      new name to be assigned to the file

    Returns Promise<boolean>

  • Type Parameters

    • T

    Parameters

    • path: string
    • method: "GET" | "POST"
    • Optional params: Record<string, string | number>
    • Optional body: URLSearchParams | FormData
    • headers: any = {}
    • json: boolean = true

    Returns Promise<T>

  • helper function to remove torrent category

    Parameters

    • hashes: string | string[]

    Returns Promise<boolean>

  • Parameters

    • hash: string

    Returns Promise<TorrentFile[]>

  • Returns Promise<string>

    Deprecated