converter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteStats

func WriteStats(path string, totalUploaded, totalDownloaded int64) error

WriteStats writes the qBittorrent-data.conf file with AllStats

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter handles the conversion from rTorrent to qBittorrent

func New

func New(opts Options) *Converter

New creates a new Converter with the given options

func (*Converter) ConvertAll

func (c *Converter) ConvertAll() ([]Result, error)

ConvertAll converts all torrents in the rTorrent session directory

type Options

type Options struct {
	RTorrentSessionDir   string
	QBittorrentBackupDir string
	DryRun               bool
	Verbose              bool
	PathMapping          map[string]string // Map rTorrent paths to qBittorrent paths
	IgnoreTags           []string          // Tags to ignore (skip torrents with these tags)
}

Options configures the conversion process

type Result

type Result struct {
	TorrentName     string
	SourcePath      string
	InfoHash        string
	Success         bool
	Error           error
	Skipped         bool
	SkipReason      string
	TotalUploaded   int64
	TotalDownloaded int64
}

Result represents the result of converting a single torrent

Jump to

Keyboard shortcuts

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