This commit is contained in:
Simon Ding
2024-10-04 21:17:33 +08:00
parent f5ca53f7d7
commit 6527f843d8
3 changed files with 22 additions and 2 deletions

View File

@@ -29,11 +29,12 @@ Polaris 是一个电视剧和电影的追踪软件。配置好了之后,当剧
- [x] plex 刮削支持
- [x] NFO 刮削文件支持
- [x] BT/PT 支持
- [x] qbittorrent/transmission客户端支持
- [x] and more...
## Todos
- [ ] qbittorrent客户端支持
- [ ] 更多通知客户端支持
- [ ] 第三方watchlist导入支持
- [ ] 手机客户端

View File

@@ -469,7 +469,6 @@ func (client *Client) Torrents(opts TorrentsOptions) (torrentList []TorrentInfo,
return torrentList, nil
}
// deprecated
// Torrent returns a specific torrent matching the hash
func (client *Client) Torrent(hash string) (torrent Torrent, err error) {
var opts = map[string]string{"hash": strings.ToLower(hash)}

View File

@@ -0,0 +1,20 @@
package qbittorrent
import (
"polaris/log"
"testing"
)
func Test1(t *testing.T) {
c, err := NewClient("http://10.0.0.8:8081/", "", "")
if err != nil {
log.Errorf("new client error: %v", err)
t.Fail()
}
all, err := c.GetAll()
for _, t := range all {
name, _ := t.Name()
log.Infof("torrent: %+v", name)
}
}