shared

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeSteam      = "steam"
	SchemeFlashpoint = "flashpoint"
	SchemeLaunchBox  = "launchbox"
	SchemeScummVM    = "scummvm"
	SchemeLutris     = "lutris"
	SchemeHeroic     = "heroic"
)

Custom URI scheme constants for Zaparoo virtual paths. These schemes are used to create virtual paths for media that doesn't have traditional file paths (e.g., Steam games, Kodi media, LaunchBox collections, etc.).

View Source
const (
	SchemeKodiMovie   = "kodi-movie"
	SchemeKodiEpisode = "kodi-episode"
	SchemeKodiSong    = "kodi-song"
	SchemeKodiAlbum   = "kodi-album"
	SchemeKodiArtist  = "kodi-artist"
	SchemeKodiShow    = "kodi-show"
)

Kodi URI scheme constants for Kodi media library items.

View Source
const (
	SchemeHTTP  = "http"
	SchemeHTTPS = "https"
)

Standard URI schemes that should have URL decoding applied.

Variables

This section is empty.

Functions

func IsCustomScheme

func IsCustomScheme(scheme string) bool

IsCustomScheme checks if the given scheme is a registered Zaparoo custom URI scheme

func IsStandardSchemeForDecoding

func IsStandardSchemeForDecoding(scheme string) bool

IsStandardSchemeForDecoding checks if the given scheme is a standard URI scheme that should have URL decoding

func ShouldDecodeURIScheme

func ShouldDecodeURIScheme(scheme string) bool

ShouldDecodeURIScheme checks if the given scheme should have URL decoding applied Returns true for Zaparoo custom schemes and standard web schemes (http/https)

func StandardSchemesForDecoding

func StandardSchemesForDecoding() []string

StandardSchemesForDecoding returns a slice of standard URI schemes that should have URL decoding

func ValidCustomSchemes

func ValidCustomSchemes() []string

ValidCustomSchemes returns a slice of all registered Zaparoo custom URI schemes

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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