Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentifyResult ¶
type IdentifyResult struct {
File nexusclient.ModFileInfo
Confidence MatchConfidence
Strategy string // human readable description of what matched
}
IdentifyResult holds the result of a successful identification
func IdentifyNexusFile ¶
func IdentifyNexusFile( originalBasename string, archiveSize int64, label string, fileVersion string, files []nexusclient.ModFileInfo, ) (*IdentifyResult, []string, error)
IdentifyNexusFile attempts to identify which ModFileInfo corresponds to a locally imported archive. Returns nil if identification was ambiguous or failed.
type MatchConfidence ¶
type MatchConfidence int
MatchConfidence indicates how certain we are about a file identification
const ( MatchConfidenceCertain MatchConfidence = iota // exact filename match MatchConfidenceConfident // timestamp, size+timestamp, or label+size MatchConfidenceNone // ambiguous or no match )
func (MatchConfidence) String ¶
func (m MatchConfidence) String() string
type ModRef ¶
func ParseModURL ¶
ParseModURL extracts (game_domain, mod_id) from a Nexus Mods mod page URL.
Expected paths look like:
/<game_domain>/mods/<mod_id>
e.g. https://www.nexusmods.com/skyrimspecialedition/mods/266
Click to show internal directories.
Click to hide internal directories.