mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-22 08:23:52 +01:00
Fix videos widget channel URL
This commit is contained in:
parent
3a9cff697b
commit
f76e06ec57
@ -11,10 +11,8 @@ import (
|
|||||||
|
|
||||||
type youtubeFeedResponseXml struct {
|
type youtubeFeedResponseXml struct {
|
||||||
Channel string `xml:"author>name"`
|
Channel string `xml:"author>name"`
|
||||||
ChannelLink struct {
|
ChannelLink string `xml:"author>uri"`
|
||||||
Href string `xml:"href,attr"`
|
Videos []struct {
|
||||||
} `xml:"link"`
|
|
||||||
Videos []struct {
|
|
||||||
Title string `xml:"title"`
|
Title string `xml:"title"`
|
||||||
Published string `xml:"published"`
|
Published string `xml:"published"`
|
||||||
Link struct {
|
Link struct {
|
||||||
@ -97,7 +95,7 @@ func FetchYoutubeChannelUploads(channelIds []string, videoUrlTemplate string, in
|
|||||||
Title: video.Title,
|
Title: video.Title,
|
||||||
Url: videoUrl,
|
Url: videoUrl,
|
||||||
Author: response.Channel,
|
Author: response.Channel,
|
||||||
AuthorUrl: response.ChannelLink.Href + "/videos",
|
AuthorUrl: response.ChannelLink + "/videos",
|
||||||
TimePosted: parseYoutubeFeedTime(video.Published),
|
TimePosted: parseYoutubeFeedTime(video.Published),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user