utils

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstOrElse added in v1.0.7

func FirstOrElse[T any](predicate func(arg T) bool, defaultVal T, args ...T) T

func GuessSeasonFromInfo added in v1.0.8

func GuessSeasonFromInfo(info EpisodeInfo, keepSeason bool) (show string, season int)

func RenameFileInAnimeStyle

func RenameFileInAnimeStyle(filename string) string

func RenameFileInTvStyle

func RenameFileInTvStyle(filename string) string

Types

type EpisodeInfo

type EpisodeInfo struct {
	Group   string
	Show    string
	Season  int
	Episode string
	Version int
	Extra   string
}

func ParseEpisodeInfo

func ParseEpisodeInfo(filename string, keepSeason bool) *EpisodeInfo

Jump to

Keyboard shortcuts

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