torrentname

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeExportFilename

func SanitizeExportFilename(name, fallback, trackerDomain, hash string) string

SanitizeExportFilename returns a filesystem-safe torrent filename with optional tracker tag and hash suffix.

func ShortTorrentHash

func ShortTorrentHash(hash string) string

ShortTorrentHash returns a lowercase, trimmed hash snippet suitable for filenames.

func TrackerTagFromDomain

func TrackerTagFromDomain(domain string) string

TrackerTagFromDomain converts a tracker domain into a compact tag for filenames.

func TruncateUTF8

func TruncateUTF8(input string, maxBytes int) string

TruncateUTF8 preserves multi-byte runes while capping byte length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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