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

RSS channel without pub_date doesn't work #14

Closed
Riduidel opened this issue Feb 18, 2019 · 2 comments
Closed

RSS channel without pub_date doesn't work #14

Riduidel opened this issue Feb 18, 2019 · 2 comments

Comments

@Riduidel
Copy link
Owner

As an example, XKCD (https://xkcd.com/rss.xml) has no pub_date set at the feed level. Feed should be parsed correctly

@Riduidel
Copy link
Owner Author

Riduidel commented Feb 18, 2019

As an aside, it seems date parsing in item doesn't work that well ...

INFO [rrss2imap::feed] There should be new entries, parsing HTML content
thread 'main' panicked at 'pub_date for item Item { title: Some("Physics Suppression"), link: Some("https://xkcd.com/2113/"), description: Some("<img src=\"https://imgs.xkcd.com/comics/physics_suppression.png\" title=\"If physics had a mafia, I\'m pretty sure the BICEP2 mess would have ended in bloodshed.\" alt=\"If physics had a mafia, I\'m pretty sure the BICEP2 mess would have ended in bloodshed.\" />"), author: None, categories: [], comments: None, enclosure: None, guid: Some(Guid { value: "https://xkcd.com/2113/", permalink: true }), pub_date: Some("Mon, 18 Feb 2019 05:00:00 -0000"), source: None, content: None, extensions: {}, itunes_ext: None, dublin_core_ext: None } (value is Some("Mon, 18 Feb 2019 05:00:00 -0000")) can't be parsed. ParseError(NotEnough)', src\item.rs:16:32
stack backtrace:

@Riduidel
Copy link
Owner Author

Bug come directly from chrono. Unfortunatly, it is a one-year-old bug already !

Riduidel added a commit that referenced this issue May 7, 2019
Riduidel added a commit that referenced this issue May 7, 2019
Riduidel added a commit that referenced this issue May 7, 2019
Riduidel added a commit that referenced this issue May 7, 2019
Riduidel added a commit that referenced this issue May 8, 2019
Riduidel added a commit that referenced this issue May 8, 2019
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

1 participant