|
|
@ -178,11 +178,15 @@ func AddPodcastItems(podcast *db.Podcast) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var downloadStatus db.DownloadStatus
|
|
|
|
var downloadStatus db.DownloadStatus
|
|
|
|
|
|
|
|
if setting.AutoDownload {
|
|
|
|
if i < limit {
|
|
|
|
if i < limit {
|
|
|
|
downloadStatus = db.NotDownloaded
|
|
|
|
downloadStatus = db.NotDownloaded
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
downloadStatus = db.Deleted
|
|
|
|
downloadStatus = db.Deleted
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
downloadStatus = db.Deleted
|
|
|
|
|
|
|
|
}
|
|
|
|
podcastItem = db.PodcastItem{
|
|
|
|
podcastItem = db.PodcastItem{
|
|
|
|
PodcastID: podcast.ID,
|
|
|
|
PodcastID: podcast.ID,
|
|
|
|
Title: obj.Title,
|
|
|
|
Title: obj.Title,
|
|
|
|