diff --git a/service/podcastService.go b/service/podcastService.go index 5a183c8..68f189b 100644 --- a/service/podcastService.go +++ b/service/podcastService.go @@ -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,