mirror of
https://github.com/zoriya/tide.git
synced 2026-08-15 18:43:19 +00:00
Remove aria2 and update docker compsoe for qbittorent
This commit is contained in:
@@ -7,18 +7,18 @@ import (
|
||||
|
||||
type Controller struct {
|
||||
Database *services.Database
|
||||
Aria2 *services.Aria2
|
||||
Qbittorent *services.Qbittorent
|
||||
}
|
||||
|
||||
func NewController(db *services.Database, aria2 *services.Aria2) *Controller {
|
||||
func NewController(db *services.Database, aria2 *services.Qbittorent) *Controller {
|
||||
c := new(Controller)
|
||||
c.Database = db
|
||||
c.Aria2 = aria2
|
||||
c.Qbittorent = aria2
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Controller) NewItem(newItem models.NewItem) (*models.Item, error) {
|
||||
item, err := c.Aria2.AddItem(newItem.Uri)
|
||||
item, err := c.Qbittorent.AddItem(newItem.Uri)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user