Pick description is summary is missing

pull/52/head
Akhil Gupta 4 years ago
parent 8b9ac4c568
commit 13f5781960

@ -269,10 +269,15 @@ func AddPodcastItems(podcast *db.Podcast, newPodcast bool) error {
downloadStatus = db.Deleted
}
summary := strip.StripTags(obj.Summary)
if summary == "" {
summary = strip.StripTags(obj.Description)
}
podcastItem = db.PodcastItem{
PodcastID: podcast.ID,
Title: obj.Title,
Summary: strip.StripTags(obj.Summary),
Summary: summary,
EpisodeType: obj.EpisodeType,
Duration: duration,
PubDate: pubDate,

Loading…
Cancel
Save