Documentation ¶
Index ¶
- Constants
- type DownloadingItem
- type Episode
- type MediaIds
- type MediaInfo
- type MediaInfoEpisodes
- type MediaInfoGroupedByShow
- type MediaInfoSeasons
- type Module
- type ModuleStatus
- type Movie
- func (m *Movie) ClearCache()
- func (m *Movie) GetDownloadingItem() DownloadingItem
- func (m *Movie) GetId() uint
- func (m *Movie) GetLog() *log.Entry
- func (m *Movie) GetMediaIds() MediaIds
- func (m *Movie) GetTitle() string
- func (m *Movie) IsCached(value string) bool
- func (m *Movie) SetDownloadingItem(d DownloadingItem)
- type Notification
- type SeasonDetails
- type SessionData
- type StatsFields
- type Torrent
- type TvSeason
- type TvShow
Constants ¶
View Source
const ( TORRENT_DOWNLOADING = iota TORRENT_SEEDING TORRENT_STOPPED TORRENT_DOWNLOAD_PENDING TORRENT_UNKNOWN_STATUS )
View Source
const ( NOTIFICATION_NEW_EPISODE = iota NOTIFICATION_NEW_MOVIE NOTIFICATION_DOWNLOAD_START NOTIFICATION_DOWNLOAD_SUCCESS NOTIFICATION_DOWNLOAD_FAILURE NOTIFICATION_TEXT NOTIFICATION_NO_TORRENTS )
View Source
const ( MOVIE = iota EPISODE )
View Source
const ( TRAKT_CLIENT_ID = "4d5d84f3a95adc528d08b1e2f6df6c8197548d128e72e68b4c33fc0dfa634926" FANART_TV_KEY = "648ff4214a1eea4416ad51417fc8a4e4" )
View Source
const ( TVSHOW_RETURNING = 1 TVSHOW_PLANNED = 2 TVSHOW_ENDED = 3 TVSHOW_UNKNOWN = 4 )
View Source
const CACHE_BASE_PATH = "/var/lib/flemzerd/cache"
View Source
const (
DB_PATH = "/var/lib/flemzerd/db/flemzer.db"
)
View Source
const HTTP_TIMEOUT = 10
View Source
const RECENTLY_AIRED_EPISODES_INTERVAL = 7
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadingItem ¶
type DownloadingItem struct { gorm.Model Pending bool Downloading bool Downloaded bool TorrentList []Torrent `gorm:"foreignkey:TorrentListID"` CurrentDownloaderId string DownloadFailed bool TorrentsNotFound bool }
func (*DownloadingItem) CurrentTorrent ¶
func (d *DownloadingItem) CurrentTorrent() Torrent
func (*DownloadingItem) FailedTorrents ¶
func (d *DownloadingItem) FailedTorrents() []Torrent
type Episode ¶
type Episode struct { gorm.Model MediaIds MediaIds MediaIdsID uint TvShow TvShow TvShowID uint AbsoluteNumber int Number int Season int Title string Date time.Time Overview string Notified bool DownloadingItem DownloadingItem DownloadingItemID uint }
func (*Episode) GetDownloadingItem ¶
func (e *Episode) GetDownloadingItem() DownloadingItem
func (*Episode) GetMediaIds ¶
func (*Episode) SetDownloadingItem ¶
func (e *Episode) SetDownloadingItem(d DownloadingItem)
type MediaInfo ¶
type MediaInfo struct { Id string AudioCodec string `json:"audio_codec"` AudioQuality string `json:"audio_quality"` Container string `json:"container"` Episode int `json:"episode"` Quality string `json:"quality"` Raw string `json:"raw"` ReleaseType string `json:"release_type"` ReleaseGroup string `json:"release_group"` Season int `json:"season"` Size string `json:"size"` Title string `json:"title"` Type string `json:"media_type"` Year int `json:"year"` }
type MediaInfoEpisodes ¶
type MediaInfoGroupedByShow ¶
type MediaInfoGroupedByShow map[string]MediaInfoSeasons
type MediaInfoSeasons ¶
type MediaInfoSeasons map[int]MediaInfoEpisodes
type Module ¶
type Module struct { Name string Type string Status ModuleStatus }
type ModuleStatus ¶
type Movie ¶
type Movie struct { gorm.Model MediaIds MediaIds MediaIdsID int Title string OriginalTitle string CustomTitle string Overview string Poster string Background string Date time.Time Notified bool DownloadingItem DownloadingItem DownloadingItemID int UseDefaultTitle bool }
func (*Movie) ClearCache ¶
func (m *Movie) ClearCache()
func (*Movie) GetDownloadingItem ¶
func (m *Movie) GetDownloadingItem() DownloadingItem
func (*Movie) GetMediaIds ¶
func (*Movie) SetDownloadingItem ¶
func (m *Movie) SetDownloadingItem(d DownloadingItem)
type Notification ¶
type SeasonDetails ¶
type StatsFields ¶
type TvShow ¶
type TvShow struct { gorm.Model MediaIds MediaIds MediaIdsID int Banner string Poster string Background string FirstAired time.Time Overview string Title string OriginalTitle string CustomTitle string Status int NumberOfEpisodes int NumberOfSeasons int Seasons []TvSeason UseDefaultTitle bool IsAnime bool }
func (*TvShow) ClearCache ¶
func (s *TvShow) ClearCache()
Click to show internal directories.
Click to hide internal directories.