qbittorrent

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(name string, clientConfig *config.ClientConfigStruct, config *config.ConfigStruct) (
	client.Client, error)

Types

type Client

type Client struct {
	Name         string
	ClientConfig *config.ClientConfigStruct
	Config       *config.ConfigStruct
	HttpClient   *http.Client

	Logined bool
	// contains filtered or unexported fields
}

func (*Client) AddTagsToAllTorrents added in v0.1.1

func (qbclient *Client) AddTagsToAllTorrents(tags []string) error

func (*Client) AddTagsToTorrents added in v0.1.1

func (qbclient *Client) AddTagsToTorrents(infoHashes []string, tags []string) error

func (*Client) AddTorrent

func (qbclient *Client) AddTorrent(torrentContent []byte, option *client.TorrentOption, meta map[string]int64) error

func (*Client) AddTorrentTrackers added in v0.1.2

func (qbclient *Client) AddTorrentTrackers(infoHash string, trackers []string, oldTracker string) error

trackers - new trackers full URLs; oldTracker - existing tracker host or URL

func (*Client) Cached added in v0.1.6

func (qbclient *Client) Cached() bool

func (*Client) Close added in v0.1.2

func (qbclient *Client) Close()

func (*Client) CreateTags

func (qbclient *Client) CreateTags(tags ...string) error

func (*Client) DeleteCategories added in v0.1.9

func (qbclient *Client) DeleteCategories(categories []string) error

func (*Client) DeleteTags

func (qbclient *Client) DeleteTags(tags ...string) error

func (*Client) DeleteTorrents

func (qbclient *Client) DeleteTorrents(infoHashes []string, deleteFiles bool) error

func (*Client) EditTorrentTracker added in v0.1.1

func (qbclient *Client) EditTorrentTracker(infoHash string, oldTracker string,
	newTracker string, replaceHost bool) error

func (*Client) ExportTorrentFile added in v0.1.9

func (qbclient *Client) ExportTorrentFile(infoHash string) ([]byte, error)

The export API of qb exists but currently is not documented in https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1) . See https://github.com/qbittorrent/qBittorrent/issues/18746 for more info.

func (*Client) GetCategories

func (qbclient *Client) GetCategories() ([]client.TorrentCategory, error)

func (*Client) GetClientConfig

func (qbclient *Client) GetClientConfig() *config.ClientConfigStruct

func (*Client) GetConfig

func (qbclient *Client) GetConfig(variable string) (string, error)

func (*Client) GetName

func (qbclient *Client) GetName() string

func (*Client) GetStatus

func (qbclient *Client) GetStatus() (*client.Status, error)

func (*Client) GetTags

func (qbclient *Client) GetTags() ([]string, error)

func (*Client) GetTorrent

func (qbclient *Client) GetTorrent(infoHash string) (*client.Torrent, error)

func (*Client) GetTorrentContents

func (qbclient *Client) GetTorrentContents(infoHash string) ([]client.TorrentContentFile, error)

func (*Client) GetTorrentTrackers added in v0.1.1

func (qbclient *Client) GetTorrentTrackers(infoHash string) (client.TorrentTrackers, error)

func (*Client) GetTorrents

func (qbclient *Client) GetTorrents(stateFilter string, category string, showAll bool) ([]client.Torrent, error)

func (*Client) MakeCategory added in v0.1.5

func (qbclient *Client) MakeCategory(category string, savePath string) error

func (*Client) ModifyTorrent

func (qbclient *Client) ModifyTorrent(infoHash string,
	option *client.TorrentOption, meta map[string]int64) error

func (*Client) PauseAllTorrents

func (qbclient *Client) PauseAllTorrents() error

func (*Client) PauseTorrents

func (qbclient *Client) PauseTorrents(infoHashes []string) error

func (*Client) PurgeCache

func (qbclient *Client) PurgeCache()

func (*Client) ReannounceAllTorrents

func (qbclient *Client) ReannounceAllTorrents() error

func (*Client) ReannounceTorrents

func (qbclient *Client) ReannounceTorrents(infoHashes []string) error

func (*Client) RecheckAllTorrents

func (qbclient *Client) RecheckAllTorrents() error

func (*Client) RecheckTorrents

func (qbclient *Client) RecheckTorrents(infoHashes []string) error

func (*Client) RemoveTagsFromAllTorrents added in v0.1.1

func (qbclient *Client) RemoveTagsFromAllTorrents(tags []string) error

func (*Client) RemoveTagsFromTorrents added in v0.1.1

func (qbclient *Client) RemoveTagsFromTorrents(infoHashes []string, tags []string) error

func (*Client) RemoveTorrentTrackers added in v0.1.2

func (qbclient *Client) RemoveTorrentTrackers(infoHash string, trackers []string) error

func (*Client) ResumeAllTorrents

func (qbclient *Client) ResumeAllTorrents() error

func (*Client) ResumeTorrents

func (qbclient *Client) ResumeTorrents(infoHashes []string) error

func (*Client) SetAllTorrentsCatetory

func (qbclient *Client) SetAllTorrentsCatetory(category string) error

func (*Client) SetAllTorrentsSavePath added in v0.1.1

func (qbclient *Client) SetAllTorrentsSavePath(savePath string) error

func (*Client) SetConfig

func (qbclient *Client) SetConfig(variable string, value string) error

func (*Client) SetFilePriority added in v0.1.6

func (qbclient *Client) SetFilePriority(infoHash string, fileIndexes []int64, priority int64) error

func (*Client) SetTorrentsCatetory

func (qbclient *Client) SetTorrentsCatetory(infoHashes []string, category string) error

func (*Client) SetTorrentsSavePath added in v0.1.1

func (qbclient *Client) SetTorrentsSavePath(infoHashes []string, savePath string) error

func (*Client) TorrentRootPathExists

func (qbclient *Client) TorrentRootPathExists(rootFolder string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL