Documentation ¶
Index ¶
Constants ¶
View Source
const ( MediaTypeMovie MediaType = "Movie" MediaTypeTvShow MediaType = "TvShow" MediaTypeEpisode MediaType = "Episode" VideoCodecH264 VideoCodec = "H264" VideoCodecH265 VideoCodec = "H265" VideoCodecHEVC VideoCodec = "HEVC" AudioCodecAAC AudioCodec = "AAC" AudioCodecAC3 AudioCodec = "AC3" AudioCodecEAC3 AudioCodec = "EAC3" AudioCodecMP3 AudioCodec = "MP3" AudioCodecDTS AudioCodec = "DTS" AudioCodecVorbis AudioCodec = "Vorbis" SubtitleCodecSRT SubtitleCodec = "SRT" SubtitleCodecSUBRIP SubtitleCodec = "SUBRIP" SubtitleCodecASS SubtitleCodec = "ASS" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioCodec ¶
type AudioCodec string
type CategoryMedia ¶
type Episode ¶
type Episode struct { Model Name string NbEpisode int NbSeason int MediaID string `gorm:"type:uuid;not null"` Media Media `gorm:"reference:MediaID"` TvShowID string `gorm:"type:uuid;not null"` TvShow TvShow `gorm:"reference:TvShowID"` MediaFileID string `gorm:"type:uuid;not null"` MediaFile MediaFile `gorm:"reference:MediaFileID;constraint:OnDelete:CASCADE;"` }
type Media ¶
type Media struct { Model MediaType MediaType `gorm:"index"` TmdbID int `gorm:"uniqueIndex"` ReleaseDate time.Time `gorm:"type:date"` TvShows []TvShow `gorm:"foreignKey:MediaID;constraint:OnDelete:CASCADE;"` Movies []Movie `gorm:"foreignKey:MediaID;constraint:OnDelete:CASCADE;"` Episodes []Episode `gorm:"foreignKey:MediaID;constraint:OnDelete:CASCADE;"` Categories []Category `gorm:"many2many:category_media;constraint:OnDelete:CASCADE;"` }
type Subtitle ¶
type Subtitle struct { Model Codec SubtitleCodec Language string MediaFileID string `gorm:"type:uuid;not null"` MediaFile MediaFile `gorm:"reference:MediaFileID"` }
type SubtitleCodec ¶
type SubtitleCodec string
type VideoCodec ¶
type VideoCodec string
Click to show internal directories.
Click to hide internal directories.