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

PubDate gone? #101

Closed
1mfaasj opened this issue Sep 13, 2023 · 3 comments
Closed

PubDate gone? #101

1mfaasj opened this issue Sep 13, 2023 · 3 comments

Comments

@1mfaasj
Copy link

1mfaasj commented Sep 13, 2023

versions used:
HA: 2019.1
feedparser: 0.2.0b0

It appears that the PubDate is not included even though it exists in the feed URL

sensor:
  - platform: feedparser
    name: Nieuws
    feed_url: 'https://www.nu.nl/rss'
    date_format: '%a, %d %b %Y %H:%M:%S %Z'
    scan_interval:
      hours: 1
    inclusions:
      - title
      - link
      - description
      - image
      - pubDate
    exclusions:
      - language

in the sensor only the title, link and image are included but not the date:
image

the feed url contains the date:
image

@ogajduse
Copy link
Collaborator

README is wrong. feedparser entry contains published attribute that should be used instead of the raw pubDate.
Changing pubDate to published in your config should do the trick.

I will update the readme as a part of #90.

@ogajduse
Copy link
Collaborator

@jboesh Also, thank you for testing the beta version. There are also newer 0.2.0 beta versions, feel free to try them out. I am eager to hear whether everything works and I did not break anything.

@1mfaasj 1mfaasj closed this as completed Sep 15, 2023
@1mfaasj
Copy link
Author

1mfaasj commented Sep 15, 2023

thanks it's working now!

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