Skip to content
/ qbit Public

Go Library for interacting with Qbittorrent (not complete)

License

Notifications You must be signed in to change notification settings

golift/qbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Library: qbit

Go Library used to interact with Qbittorrent. This library is not full-featured, and probably only provides read-only methods to view the download list.

At the time of this writing (creation), the library only supports logging in, and collecting transfer info.

If you'd like new features, please open a GitHub issue or pull request.

Example:

package main

import (
	"log"
	"time"

	"golift.io/qbit"
)

func main() {
	config := &qbit.Config{
		URL:     "http://localhost:8080",
		User:    "admin",
		Pass:    "qbitpassword",
	}

	qbit, err := qbit.New(config)
	if err != nil {
		log.Fatalln("[ERROR]", err)
	}

	xfers, err := qbit.GetXfers()
	if err != nil {
		log.Fatalln("[ERROR]", err)
	}

	for _, xfer := range xfers {
		log.Println(xfer.Name, xfer.Progress)
	}
}

About

Go Library for interacting with Qbittorrent (not complete)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages