Hierarchy

  • Utorrent

Implements

  • TorrentClient

Constructors

  • Parameters

    • options: Partial<TorrentSettings> = {}

    Returns Utorrent

Properties

config: TorrentSettings

Methods

  • Parameters

    • torrent: string | Buffer

    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 | Buffer
    • 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<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

    • Optional id: number = -1

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

    • Optional alias: string = ''

      custom alias

    • Optional subscribe: boolean = false

      Automatically download all items published in feed

    • Optional smartFilter: boolean = false

      Use smart episode filter

    • Optional enabled: 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>