package models import ( "database/sql" "time" ) type Preset struct { ID int64 Name string Description string IsDefault bool FormatMode string Format string Quality string CustomFormat string ExtractAudio bool AudioFormat string EmbedSubs bool SubLangs string EmbedThumbnail bool EmbedMetadata bool WriteInfoJSON bool CustomFlags string CreatedAt time.Time } type LibraryItem struct { Name string RelPath string DirPath string SourceURL string Duration int Description string MediaFiles []MediaFile } type MediaFile struct { Filename string Filepath string IsAudio bool Duration int } type Download struct { ID int64 URL string Status string Logs sql.NullString ErrorMessage sql.NullString PresetID sql.NullInt64 FormatOverride string CustomFlags string OutputDir sql.NullString StartedAt sql.NullTime CompletedAt sql.NullTime CreatedAt time.Time } type Settings struct { RefreshInterval int AutoRefreshLibrary bool AutoRefreshDownloads bool Cookies string } type FormatInfo struct { ID string Ext string Resolution string FPS string Channels string FileSize string Codec string Note string } type SubtitleTrack struct { Lang string Label string Src string } type ItemMetadata struct { Name string `toml:"name"` SourceURL string `toml:"source_url"` Description string `toml:"description"` FileDurations map[string]int `toml:"file_durations"` }