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>

  • Get default save path

    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;
      } = {}
      • Optionalcategory?: string
      • Optionalfilter?: TorrentFilters
      • Optionalhashes?: string | string[]
      • Optionaloffset?: number
      • Optionalreverse?: boolean
      • Optionalsort?: string
      • Optionaltag?: 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

    • oldPath: string

      id of the file to be renamed

    • newPath: string

      new name to be assigned to the file

    Returns Promise<boolean>

  • Type Parameters

    • T

    Parameters

    • path: string
    • method: "GET" | "POST"
    • Optionalparams: Record<string, string | number>
    • Optionalbody: URLSearchParams | FormData
    • headers: Record<string, string> = {}
    • isJson: boolean = true

    Returns Promise<T>

  • helper function to remove torrent category

    Parameters

    • hashes: string | string[]

    Returns Promise<boolean>

  • Parameters

    Returns Promise<boolean>

  • Parameters

    • hash: string

    Returns Promise<TorrentFile[]>

  • Returns Promise<string>