Skip to content

RSS news provider > add new option to fall-back to feed item.link regex+format to extract pubDate #64

@mmathieum

Description

@mmathieum

Some RSS feeds (like BC Transit ) don't always provide pubDate but the date is in the item's link.

Example:

<item>
  <title>Larger Provincial Distribution Centre Will Support BC Transit Bus Fleet</title>
  <link>https://www.bctransit.com/100-mile-house/larger-provincial-distribution-centre-will-support-bc-transit-bus-fleet-06-24-2024/</link>
  <pubDate></pubDate>
[...]

Should have a new settings:

<string-array name="rss_feeds_date_link_fallback_regex">
  <item>\\d{2}-\\d{2}-\\d{4}</item>
</string-array>
<string-array name="rss_feeds_date_link_fallback_format">
  <item>dd-MM-yyyy</item>
</string-array>

And use it in RSSNewsProvider

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions