-
Notifications
You must be signed in to change notification settings - Fork 319
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
RSS importer fails to import Atom files #194
Comments
Looks like it can't create an jekyll-import/lib/jekyll-import/importers/rss.rb Lines 33 to 34 in 8cd8576
|
@parkr Why is that happening, though? I believe the RSS parser handles Atom, not just RSS. The Atom file is passing feed validation. |
@matthewmcvickar Can you send me your Atom file? Or can you dig into walking through this code? I don't know why it's not working because the RSS parser isn't throwing an error. |
@parkr OK, I emailed you the file. |
Otherwise it won't parse an Atom field. Fixes #194.
@matthewmcvickar I think I have a fix. Can you try modifying your gem source for the above, or testing with a clone of this repo at the specified branch? |
@parkr OK, I did that. The import is starting now, but failing like #158 because the Atom file specifies no So… I'm not sure what's better, then: changing the parser to look for different fields depending on the type of feed, or make a separate Atom parser? |
I'd probably just modify this one. You should be able to determine whether it's straight-up RSS or Atom and just ask for the proper field based on the |
You could also have 3 different methods, one that handles RSS, one Atom, and one the common fields. |
Sounds like a plan. I'll take a stab at forking this at some point. |
👍 |
I have an XML file of an Atom feed that passes validation.
I run the following:
And get the following error:
The text was updated successfully, but these errors were encountered: