From acaf50bf8a9612d1026e59f76c587c19dea6b21f Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 3 Aug 2024 04:02:23 +0100 Subject: [PATCH] Use author > name instead of title This is because the playlist response returns the name of the playlist in the title, which meant that the channel name was always "Videos" --- internal/feed/youtube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/feed/youtube.go b/internal/feed/youtube.go index 6cc424a..4880be5 100644 --- a/internal/feed/youtube.go +++ b/internal/feed/youtube.go @@ -10,7 +10,7 @@ import ( ) type youtubeFeedResponseXml struct { - Channel string `xml:"title"` + Channel string `xml:"author>name"` ChannelLink struct { Href string `xml:"href,attr"` } `xml:"link"`