1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix explicit tag

This commit is contained in:
Maksym Pavlenko
2019-01-07 19:24:48 -08:00
parent b7c82cc1e8
commit 8805dbf85c

View File

@@ -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)