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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user