Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube : "no rss feed link found in the provided XML" #50

Closed
JPnux opened this issue Feb 12, 2025 · 12 comments
Closed

Youtube : "no rss feed link found in the provided XML" #50

JPnux opened this issue Feb 12, 2025 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@JPnux
Copy link

JPnux commented Feb 12, 2025

Hello

it was working with 2.xx but with 3.0 & 3.0.1 versions, it doesn't work.

I have anonymized some links

Thanks for your help

logs

FeedCord  | I: YouTube Starting Background Processing at 02/12/2025 07:28:36..
FeedCord  | I: Checking if any new posts for https://www.youtube.com/...
FeedCord  | I: Checking if any new posts for https://www.youtube.com/techandcofr...
FeedCord  | I: Checking if any new posts for https://www.youtube.com/@BNPParibasProduitsdeBourse...
FeedCord  | I: Checking if any new posts for https://www.youtube.com/...
FeedCord  | I: Checking if any new posts for https://www.youtube.com/...
FeedCord  | I: No RSS feed link found in the provided XML.
FeedCord  | I: No RSS feed link found in the provided XML.
FeedCord  | I: No RSS feed link found in the provided XML.
FeedCord  | I: No RSS feed link found in the provided XML.
FeedCord  | I: No RSS feed link found in the provided XML.
FeedCord  | I: YouTube Finished Background Processing at 02/12/2025 07:28:36..

{
"Id": "YouTube",
"YoutubeUrls": [
"https://www.youtube.com/@BNPParibasProduitsdeBourse",
"https://www.youtube.com/...",
"https://www.youtube.com/techandcofr",
"https://www.youtube.com/...",
"https://www.youtube.com/..."
],
"RssUrls": [
""
],
"DiscordWebhookUrl": "https://discord.com/api/webhooks/...",
"Username": "YouTube",
"Forum": false,
"RssCheckIntervalMinutes": 30,
"EnableAutoRemove": false,
"Color": 8411391,
"DescriptionLimit": 200,
"MarkdownFormat": false,
"PersistenceOnShutdown": true
}

@sllllr
Copy link

sllllr commented Feb 12, 2025

Same with me after an update to 3.x.x. Since the version change, nothing from YT channels has appeared. Previously it was working.

@Qolors Qolors self-assigned this Feb 12, 2025
@Qolors Qolors added the bug Something isn't working label Feb 12, 2025
@Qolors
Copy link
Owner

Qolors commented Feb 12, 2025

hey @sllllr,

Can you verify for me that you're experiencing the same log output as JPnux?

FeedCord | I: No RSS feed link found in the provided XML.

@sllllr
Copy link

sllllr commented Feb 12, 2025

my LOG:

I: No RSS feed link found in the provided XML.
I: No RSS feed link found in the provided XML.
I: No RSS feed link found in the provided XML.
I: No RSS feed link found in the provided XML.
I: YT Finished Background Processing at 02/12/2025 18:30:51..

@Qolors
Copy link
Owner

Qolors commented Feb 12, 2025

Thanks for helping the issue out. I'm unable to reproduce it for myself..

This leads me to think that it's a possible regional/cookie/redirect issue?.. But I am not totally positive.

As far as youtube parsing the only real change that was made from v2 to v3 is the http client's retry logic:

  • Try Send request with no UserAgent
  • Try Send request with a 'typical browser' UserAgent
  • Try Send request with /robots.txt parsing

no UserAgent may be returning a 200, but could possibly be returning back different html (a redirect or cookie consent possibly) on your guys end which doesn't display the element FeedCord looks for..

This could maybe help further.. On your machine running FeedCord try:

curl -i -H "User-Agent:" "https://www.youtube.com/@Google"

Are you able to find <link rel="alternate" type="application/rss+xml" title="RSS" href="https://www.youtube.com/feeds/videos.xml?channel_id=UCK8sQmJBp8GCxrOtXWBpyEA"> in the response?

If not, try:

curl -v -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36" "https://www.youtube.com/@Google"

If you're able to find it then, we may have pin pointed the issue.. If not, then I may have to do further digging.

If we can't pin point, what I can do is add the ability to provide the xml link for the youtube channel directly in your config to skip over this parsing issue

@sllllr
Copy link

sllllr commented Feb 12, 2025

I run this

curl -i -H "User-Agent:" "https://www.youtube.com/@Google"

and i find

<link rel="alternate" type="application/rss+xml" title="RSS" href="https://www.youtube.com/feeds/videos.xml?channel_id=UCK8sQmJBp8GCxrOtXWBpyEA">

@Qolors
Copy link
Owner

Qolors commented Feb 12, 2025

Please try using qolors/feedcord:beta (be sure to pull latest image if you have used it before)

with youtube urls do:

"YoutubeUrls": [
		  "https://www.youtube.com/feeds/videos.xml?channel_id=UCK8sQmJBp8GCxrOtXWBpyEA",
		  "https://www.youtube.com/@Google"
		]

What are you experiencing here? If it is processed correctly, for each url you should see in logging:

2025-02-12 17:04:15 FeedCord | I: Retrieved post: The countdown to #GoogleIO begins! 🎉Join us on May 20-21 for the live keynote & more at io.google. by Google, published on 02/11/2025 20:40:26

I am expecting you to get the normal error for one, but the xml url should work

I ran about 50 different Youtube channel urls and was finally hit with the No RSS Feed link found in the provided XML. Still not sure what causes it..

I think supporting the config file to take in the youtube xml file directly will eliminate the issue, but just a little bit more manual entry (finding the xml url for youtube channels)

@sllllr
Copy link

sllllr commented Feb 13, 2025

Earlier, when I reported the problem with YT links in version 2.1.1 I already came up with the idea to give YT feeds from .xml but not in the Youtube section but in RSS :) but that's not the point right? :) That's why you made “Youtube” to enter there the address of the channels in normal form. Previously before the release of 3.x.x on the nightly version worked OK after the upgrade already stopped.

I will check the “beta” versions as you write and let you know.

EDIT:

A snippet of my .json

"YoutubeUrls": [
"https://www.youtube.com/feeds/videos.xml?channel_id=UCK8sQmJBp8GCxrOtXWBpyEA",
"https://www.youtube.com/@google",
"https://www.youtube.com/@2PacOfficialYT",
"https://www.youtube.com/@3doorsdown",
"https://www.youtube.com/@50Cent",

LOG

I: No RSS feed link found in the provided XML.
I: No RSS feed link found in the provided XML.
I: Retrieved post: The countdown to #GoogleIO begins! 🎉Join us on May 20-21 for the live keynote & more at io.google. by Google, published on 02/11/2025 20:40:26
I: No RSS feed link found in the provided XML.
I: No RSS feed link found in the provided XML.

@Qolors
Copy link
Owner

Qolors commented Feb 13, 2025

Thanks for the help and feedback

Youtube section was created to save time for people not needing to find the xml url for their channels, but in reality that's saving what.. a couple minutes maybe? With it being so volatile in it's success per user, it seems to not be worth it

I'm not opposed to your idea, but for now both normal and xml youtube links have to remain in the Youtube section because the software passes Youtube & RSS feeds through different parsing services..

posts = feedState.IsYoutube ?
                    await FetchYoutubeAsync(url) :
                    await FetchRssAsync(url, trim);

Once I alter the flow of this putting the xml urls in either RSS or Youtube section shouldn't matter, but will still support the normal urls for people that it's working for 👍

@sllllr
Copy link

sllllr commented Feb 13, 2025

So what's the best thing to do with YT links now? Convert all the standard ones to .xml?

Now only .xml works and full addresses do not work.... previously they worked :)

@Qolors
Copy link
Owner

Qolors commented Feb 14, 2025

"https://www.youtube.com/feeds/videos.xml?channel_id=UCK8sQmJBp8GCxrOtXWBpyEA",
"https://www.youtube.com/https://github.com/google",

I: No RSS feed link found in the provided XML.
I: Retrieved post: The countdown to #GoogleIO begins! 🎉Join us on May 20-21 for the live keynote & more at io.google. by Google, published on 02/11/2025 20:40:26

Well yes.. You realize that's what you were testing right?

This issue has been around for some users through all versions. Normal url does not work for some - lotta variables

if normal url does not work for you - feed it the direct xml. It's more likely to work.. That is the fix on the beta image currently

@sllllr
Copy link

sllllr commented Feb 14, 2025

Just how to explain that the “regular” YT channel address on the version before 3.x.x worked and I had no xml links in the Youtube section. After 3.x.x it no longer works. OK, I'll add xml files for myself instead of regular links.

Do you have any quick way to replace the regular addresses with these xml ones? Some kind of script? I have more than 50 links :)

@Qolors
Copy link
Owner

Qolors commented Feb 15, 2025

No script for it at the moment closing the issue for now possibly a script when I have time

v3.0.2

@Qolors Qolors closed this as completed Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants