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 downloadStatus = db.Deleted
} }
summary := strip.StripTags(obj.Summary)
if summary == "" {
summary = strip.StripTags(obj.Description)
}
podcastItem = db.PodcastItem{ podcastItem = db.PodcastItem{
PodcastID: podcast.ID, PodcastID: podcast.ID,
Title: obj.Title, Title: obj.Title,
Summary: strip.StripTags(obj.Summary), Summary: summary,
EpisodeType: obj.EpisodeType, EpisodeType: obj.EpisodeType,
Duration: duration, Duration: duration,
PubDate: pubDate, PubDate: pubDate,

Loading…
Cancel
Save