parser

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSearchQuery

func ExtractSearchQuery(name string) string

ExtractSearchQuery cleans a torrent name to use as a search query.

Types

type ParsedTorrent

type ParsedTorrent struct {
	InfoHash string
	Name     string
	Quality  string
	Codec    string
	Year     string
	IsMagnet bool
}

ParsedTorrent contains information extracted from a magnet URI, hash, or torrent name.

func Parse

func Parse(input string) ParsedTorrent

Parse parses a magnet URI, info hash, or torrent name.

Jump to

Keyboard shortcuts

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