|
|
@ -21,6 +21,8 @@ type Podcast struct {
|
|
|
|
|
|
|
|
|
|
|
|
PodcastItems []PodcastItem
|
|
|
|
PodcastItems []PodcastItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tag []*Tag `gorm:"many2many:podcast_tags;"`
|
|
|
|
|
|
|
|
|
|
|
|
DownloadedEpisodesCount int `gorm:"-"`
|
|
|
|
DownloadedEpisodesCount int `gorm:"-"`
|
|
|
|
DownloadingEpisodesCount int `gorm:"-"`
|
|
|
|
DownloadingEpisodesCount int `gorm:"-"`
|
|
|
|
AllEpisodesCount int `gorm:"-"`
|
|
|
|
AllEpisodesCount int `gorm:"-"`
|
|
|
@ -85,6 +87,13 @@ type JobLock struct {
|
|
|
|
Duration int
|
|
|
|
Duration int
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Tag struct {
|
|
|
|
|
|
|
|
Base
|
|
|
|
|
|
|
|
Label string
|
|
|
|
|
|
|
|
Description string `gorm:"type:text"`
|
|
|
|
|
|
|
|
Podcasts []*Podcast `gorm:"many2many:podcast_tags;"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (lock *JobLock) IsLocked() bool {
|
|
|
|
func (lock *JobLock) IsLocked() bool {
|
|
|
|
return lock != nil && lock.Date != time.Time{}
|
|
|
|
return lock != nil && lock.Date != time.Time{}
|
|
|
|
}
|
|
|
|
}
|
|
|
|