Add download all button and include options to automatically download new episodes

This commit is contained in:
Alex McGrath
2021-03-04 19:38:34 +00:00
committed by Senan Kelly
parent 2a11017d54
commit 10fca91785
8 changed files with 157 additions and 32 deletions

No files matched your search

+12 -11
View File
@@ -290,17 +290,18 @@ type AlbumGenre struct {
}
type Podcast struct {
ID int `gorm:"primary_key"`
UpdatedAt time.Time
ModifiedAt time.Time
UserID int `sql:"default: null; type:int REFERENCES users(id) ON DELETE CASCADE"`
URL string
Title string
Description string
ImageURL string
ImagePath string
Error string
Episodes []*PodcastEpisode
ID int `gorm:"primary_key"`
UpdatedAt time.Time
ModifiedAt time.Time
UserID int `sql:"default: null; type:int REFERENCES users(id) ON DELETE CASCADE"`
URL string
Title string
Description string
ImageURL string
ImagePath string
Error string
Episodes []*PodcastEpisode
AutoDownload string
}
func (p *Podcast) Fullpath(podcastPath string) string {