custom-components / feedparser

📰 RSS Feed Integration
MIT License
135 stars 34 forks source link

PubDate gone? #101

Closed 1mfaasj closed 12 months ago

1mfaasj commented 1 year ago

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 commented 12 months ago

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 commented 12 months ago

@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 commented 12 months ago

thanks it's working now!