media

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

type Media struct {
	ID           string                // Show ID
	Metadata     MetaDataHandler       // Carry metadata scrapped online
	Match        *matcher.MatchRequest // Matched request
	ShowRootPath string                // Path of the show/media to be downloaded
}

Media represents a media to be handled.

func (*Media) SetMetaData

func (m *Media) SetMetaData(info MetaDataHandler)

type MetaDataHandler

type MetaDataHandler interface {
	GetMediaInfo() *nfo.MediaInfo // return a pointer to MediaInfo struct
	// GetMediaPath(showPath string) string        // Returns mp4 path as showPath/.../file.mp4
	// GetMediaPathMatcher(showPath string) string // Returns a name matcher for mis numbered episodes
	// GetNFOPath(showPath string) string     // Returns nfo path as showPath/.../file.nfo
	WriteNFO(showPath string) error // Write nfo file showPath/.../file.nfo

}

MetaDataHandler represents a struct for managing media's metadata

Jump to

Keyboard shortcuts

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