Implements

  • TorrentClient

Constructors

  • Parameters

    • options: Partial<TorrentSettings> = {}

    Returns Utorrent

Properties

config: TorrentSettings

Methods

  • Parameters

    • torrent: string | Uint8Array

    Returns Promise<BaseResponse>

  • Add torrent from url, probably a magnet

    Parameters

    • urlOrMagnet: string

    Returns Promise<BaseResponse>

  • Returns Promise<void>

  • Parameters

    • hash: string

    Returns Promise<BaseResponse>

  • Returns Promise<AllClientData>

  • Parameters

    • id: string

    Returns Promise<NormalizedTorrent>

  • Parameters

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

    Returns Promise<NormalizedTorrent>

  • Parameters

    • hash: string

    Returns Promise<BaseResponse>

  • Parameters

    • hash: string

    Returns Promise<BaseResponse>

  • Parameters

    • hash: string

    Returns Promise<BaseResponse>

  • Parameters

    • hash: string
    • removeData: boolean = true

    Returns Promise<BaseResponse>

  • Type Parameters

    • T extends object

    Parameters

    • action: string
    • params: URLSearchParams = ...

    Returns Promise<Promise<FetchResponse<T>>>

  • Returns void

  • alias of unpause, resumes a torrent

    Parameters

    • hash: string

    Returns Promise<BaseResponse>

  • subscribe to rss feed

    Parameters

    • url: string

      feed url

    • Optionalid: number = -1

      id of rss feed to update, -1 for new feed

    • Optionalalias: string = ''

      custom alias

    • Optionalsubscribe: boolean = false

      Automatically download all items published in feed

    • OptionalsmartFilter: boolean = false

      Use smart episode filter

    • Optionalenabled: boolean = true

      disable / enable an rss feed

    Returns Promise<RssUpdateResponse>

  • Parameters

    • hash: string
    • props: Record<string, string | number>

    Returns Promise<BaseResponse>

  • set a setting

    Parameters

    • settings: [string, string | number][]

      settings to set [setting_name, value] as array of key value tuples

    Returns Promise<BaseResponse>