- Fix Feed Title generation (wrong usage of loadCacheValue)
- Use a more reliable way to get New and Used Price
- If no new Price and no Used Price are present in the page, then don't
delete previous New Price and previous Used Price
- If there is no New Price and no Used Price, then return no Feed
Item
- Fix the "now" date format
- Make the Feed Item Title more readable
- Use the Product Link as the Feed URL
* Add Duvar.org bridge for scraping news articles
* PR Fixes
* Update DuvarOrgBridge.php to set a default value for the URL suffix
---------
Co-authored-by: Tughan Belbek <Tughan.Belbek@t-hive.io>
When a product was available before as used product in the past, and
now it's not available used anymore, a price update article was
generated on every feed loading, because the old used price was still
stored in the cache, and therefore different as "no price".
The issue was also present in the cas of a New product price that
becomes unavailable.
Now, when either there is no New or Used price available, the previous
price is delete from the cache.
The original feed contains a small version of the header image and
the summary or a literal "None". The header image is already added, but
the original content was kept. This removes the original content and
adds the summary if it exists.
Currently, two "demo" and "example" bridges are excluded from GitHub's
autogenerated tarballs. As I argued, those files can still be helpful
for integration tests, as they are run in NixOS and don't need internet
access or depend on the availability of external services [1].
Additionally, the official docker image builds from the checkout so it
includes those bridges when users use containers or a git checkout
compared to tarballs. This commit therefore unifies the list of
available bridges between deployment methods.
[1] https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/web-apps/rss-bridge.nix#L20
* [GovTrackBridge] Add feed for GovTrack events and blog
* [GovTrackBridge] add missing default value
* [GovTrackBridge] leaner items array and limit implementation