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

Fix feed links

This commit is contained in:
Maksym Pavlenko
2017-11-07 16:49:56 -08:00
parent e5654468f5
commit 29931902dd

View File

@ -146,9 +146,9 @@ func (yt *YouTubeBuilder) queryFeed(feed *model.Feed) (*itunes.Podcast, string,
link := "" link := ""
if feed.LinkType == api.LinkTypeChannel { if feed.LinkType == api.LinkTypeChannel {
link = fmt.Sprintf("https://youtube.com/channel/%s", itemId) link = fmt.Sprintf("https://youtube.com/channel/%s", channel.Id)
} else { } else {
link = fmt.Sprintf("https://youtube.com/user/%s", itemId) link = fmt.Sprintf("https://youtube.com/user/%s", channel.Snippet.CustomUrl)
} }
pubDate, err := yt.parseDate(channel.Snippet.PublishedAt) pubDate, err := yt.parseDate(channel.Snippet.PublishedAt)