From 8805dbf85c26f202cfa1dfe8077cc958c9fd264d Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Mon, 7 Jan 2019 19:24:48 -0800 Subject: [PATCH] Fix explicit tag --- pkg/builders/youtube.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/builders/youtube.go b/pkg/builders/youtube.go index 6c8ed8c..f9b5754 100644 --- a/pkg/builders/youtube.go +++ b/pkg/builders/youtube.go @@ -223,6 +223,12 @@ func (yt *YouTubeBuilder) queryFeed(feed *model.Feed) (*itunes.Podcast, string, podcast.IAuthor = title podcast.AddSummary(desc) + if feed.Explicit { + podcast.IExplicit = "yes" + } else { + podcast.IExplicit = "no" + } + return &podcast, itemID, nil } @@ -314,9 +320,9 @@ func (yt *YouTubeBuilder) queryVideoDescriptions(playlistItems map[string]*youtu } if feed.Explicit { - item.IExplicit = "true" + item.IExplicit = "yes" } else { - item.IExplicit = "false" + item.IExplicit = "no" } item.IOrder = strconv.FormatInt(playlistItem.Position, 10)