Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qbittorrent and transmission interfacing #300

Open
2 tasks done
rraymondgh opened this issue Jul 27, 2024 · 0 comments
Open
2 tasks done

qbittorrent and transmission interfacing #300

rraymondgh opened this issue Jul 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rraymondgh
Copy link
Contributor

rraymondgh commented Jul 27, 2024

  • I have checked the existing issues to avoid duplicates
  • I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

This is an enhancement

Backend capability in bitmagnet to support following interfaces in transmission and qbittorrent

type AddInfoHashesRequest struct {
	ClientID   string
	InfoHashes []protocol.ID
}

type clientWorker interface {
	AddInfoHashes(ctx context.Context, req AddInfoHashesRequest) error
	downloadOne(ctx context.Context, content *Content, clientId string) error
}

Describe the solution you'd like

  • I hereby guarantee that all configuration will be injected using fx
  • I hereby guarantee that no use will be made of sonarr, radarr or prowlarr
  • I hereby expect config will be:
type DownloadClient struct {
	Host     string
	Port     string
	Username string
	Password string
}

type ContentTypeCategory struct {
	ContentType model.ContentType
	Category    string
}

type Config struct {
	Transmission DownloadClient
	QBitTorrent  DownloadClient
	Categories   []ContentTypeCategory
}
  • I fully expect to use search to obtain magnetUri and contentType that are needed in implementation of interface

Describe alternatives you've considered

Many, see cancelled PR #288

Additional context

Fully expect to be using these libraries

	github.com/autobrr/go-qbittorrent v1.9.0
	github.com/hekmon/transmissionrpc/v3 v3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant