gugray / rss-parrot

Notifies Mastodon accounts about new posts in the RSS feeds they follow
https://rss-parrot.net
MIT License
109 stars 7 forks source link

Accountname clashes #11

Open xiffy opened 7 months ago

xiffy commented 7 months ago

Hi, What a nice idea, RSS to Fediverse. I ran into an issue though. When a domain has more RSS Feeds there is only one account created. For instance I host some LastFM RSS feeds, all on the same domain: lfm.xiffy.nl When I added https://lfm.xiffy.nl/thexiffy and https://lfm.xiffy.nl/thexiffy/loved they got mingled together as one account, which seems incorrect.

gugray commented 7 months ago

The name of the accounts is derived from the name of the site, but it includes the full path. With the two feeds above, they both point back to https://lfm.xiffy.nl/ in their tag at the top. In this case, the first added feed is meant to win.

I'll look into this to see if the two feeds do get mixed up. They should not; only the one that was added first should be retrieved for the accound.

xiffy commented 7 months ago

Ah off-course, link self. My err :-) but this shows, more feeds could be on the wrong side. I'll fix my site.

gugray commented 7 months ago

Yup, this may well be an issue in existing data... I'll give it more thought.

angusmci commented 6 months ago

I tested Parrot on a handful of sites and it generally worked well. However, when I tested it on https://angus.pw/, which has multiple linked feeds (two Atom, two JSON), it responded with:

Hm, I can't find a feed for this site.

Is the address right? It can also happen that the site is temporarily down, or it doesn't have a valid RSS or Atom feed.

Is Parrot trying to ingest the JSON feeds and struggling with them? Or is the fact that the site has multiple feeds confusing it?