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 ShowPath string // Path of the show/media }
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
Click to show internal directories.
Click to hide internal directories.