@@ -68,7 +68,7 @@ func (f *subscriptionFinder) FindSubscriptions(websiteURL, rssBridgeURL string,
6868 f .feedDownloaded = true
6969 return Subscriptions {NewSubscription (responseHandler .EffectiveURL (), responseHandler .EffectiveURL (), feedFormat )}, nil
7070 }
71-
71+
7272 // Step 2) Find the canonical URL of the website.
7373 slog .Debug ("Try to find the canonical URL of the website" , slog .String ("website_url" , websiteURL ))
7474 websiteURL = f .findCanonicalURL (websiteURL , responseHandler .ContentType (), bytes .NewReader (responseBody ))
@@ -285,15 +285,6 @@ func (f *subscriptionFinder) findSubscriptionsFromYouTube(websiteURL string) (Su
285285 {"UULF" , "Videos" },
286286 {"UUSH" , "Short videos" },
287287 {"UULV" , "Live streams" },
288-
289- {"UULP" , "Popular videos" },
290- {"UUPS" , "Popular short videos" },
291- {"UUPV" , "Popular live streams" },
292-
293- {"UUMO" , "Members-only contents (videos, short videos and live streams)" },
294- {"UUMF" , "Members-only videos" },
295- {"UUMS" , "Members-only short videos" },
296- {"UUMV" , "Members-only live streams" },
297288 }
298289
299290 decodedURL , err := url .Parse (websiteURL )
@@ -308,15 +299,15 @@ func (f *subscriptionFinder) findSubscriptionsFromYouTube(websiteURL string) (Su
308299
309300 if _ , baseID , found := strings .Cut (decodedURL .Path , "channel/UC" ); found {
310301 var subscriptions Subscriptions
311-
302+
312303 channelFeedURL := "https://www.youtube.com/feeds/videos.xml?channel_id=UC" + baseID
313304 subscriptions = append (subscriptions , NewSubscription ("Channel" , channelFeedURL , parser .FormatAtom ))
314-
305+
315306 for _ , playlist := range playlistPrefixes {
316307 playlistFeedURL := "https://www.youtube.com/feeds/videos.xml?playlist_id=" + playlist .prefix + baseID
317308 subscriptions = append (subscriptions , NewSubscription (playlist .title , playlistFeedURL , parser .FormatAtom ))
318309 }
319-
310+
320311 return subscriptions , nil
321312 }
322313
0 commit comments