model

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Episode

type Episode struct {
	Basename  string
	Extension string
	FilePath  string
	Index     int
	Season    *Season
	Subtitles map[string]string
}

Episode holds information about an episode

func (*Episode) Name

func (e *Episode) Name() string

Returns formatted TV show episode name from given parameters

type Movie

type Movie struct {
	Basename  string
	Extension string
	Fullname  string
	Title     string
	Year      int
}

Movie is the type of data that will be formatted as a movie

type Season

type Season struct {
	Episodes []*Episode
	Index    int
	Name     string
	TVShow   *TVShow
}

Season holds information about a season

type TVShow

type TVShow struct {
	Name    string
	Seasons []*Season
}

TVShow is the type of data that will be formatted as a TV show

Jump to

Keyboard shortcuts

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