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

[BUG] There are many articles in the XML file, but only one was actually added. #215

Open
hoyii opened this issue Oct 22, 2024 · 1 comment

Comments

@hoyii
Copy link

hoyii commented Oct 22, 2024

Reproduction

Click the "New Feed" button, enter the RSS subscription: https://v2ex-create.nexmm.com/rss.xml, and click the Confirm button. Once added successfully, only the first article will be displayed:
image

Possible Causes

I reviewed the source code, and the FeedID and GUID of this RSS subscription are both empty.So, an ID conflict occurred, which resulted in the inability to write article information into the database:
image

I suspect there is an issue with the judgment here, because this XML file does not have a URL as its GUID
image

Or is it a problem with the format of RSS subscriptions themselves? I'm not sure about this.

If possible, I hope you can provide some ideas for me to modify the code. Thank you!

@nkanaev
Copy link
Owner

nkanaev commented Oct 30, 2024

@hoyii thanks for reporting. That's a bug. Both GUID and URL are stated as optional in the spec.

I think the best approach would be to fallback to a hash of combination of other uniquely identifiable elements (title, date and maybe content).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants