From c8b7322f139916d5301de19d459497f51c0a8438 Mon Sep 17 00:00:00 2001 From: Tanmay Karande Date: Thu, 5 Mar 2026 01:25:57 -0500 Subject: [PATCH] fix: use channel_id feed URL instead of broken playlist_id prefix YouTube's UULF and UU playlist prefixes for filtering Shorts are no longer working (returning 404/500 errors). Fall back to the standard channel_id= feed URL which works reliably. Shorts may appear in the feed but the widget will no longer error out. --- .gitignore | 1 + internal/glance/widget-videos.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2cd84fc..85ce004 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /playground /.idea /glance*.yml +glance-bin diff --git a/internal/glance/widget-videos.go b/internal/glance/widget-videos.go index ff79864..f428d3f 100644 --- a/internal/glance/widget-videos.go +++ b/internal/glance/widget-videos.go @@ -146,9 +146,6 @@ func fetchYoutubeChannelUploads(channelOrPlaylistIDs []string, videoUrlTemplate if strings.HasPrefix(channelOrPlaylistIDs[i], videosWidgetPlaylistPrefix) { feedUrl = "https://www.youtube.com/feeds/videos.xml?playlist_id=" + strings.TrimPrefix(channelOrPlaylistIDs[i], videosWidgetPlaylistPrefix) - } else if !includeShorts && strings.HasPrefix(channelOrPlaylistIDs[i], "UC") { - playlistId := strings.Replace(channelOrPlaylistIDs[i], "UC", "UULF", 1) - feedUrl = "https://www.youtube.com/feeds/videos.xml?playlist_id=" + playlistId } else { feedUrl = "https://www.youtube.com/feeds/videos.xml?channel_id=" + channelOrPlaylistIDs[i] }