pull/205/merge
Tilo Spannagel 3 years ago committed by GitHub
commit 31da5a979a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -206,7 +206,7 @@ func UpdatePodcastItemFileSize(podcastItemId string, size int64) error {
func GetAllPodcastItemsWithoutImage() (*[]PodcastItem, error) {
var podcastItems []PodcastItem
result := DB.Preload(clause.Associations).Where("local_image is ?", nil).Where("image != ?", "").Where("download_status=?", Downloaded).Order("created_at desc").Find(&podcastItems)
result := DB.Preload(clause.Associations).Where("local_image = ?", "").Where("image != ?", "").Where("download_status=?", Downloaded).Order("created_at desc").Find(&podcastItems)
//fmt.Println("To be downloaded : " + string(len(podcastItems)))
return &podcastItems, result.Error
}

Loading…
Cancel
Save