Open hejops opened 3 years ago
However, time zones must first be corrected, since the time zone format (
+00:00
) produced by rss-bridge is not fully ISO 8601 compliant (Z
).
Workaround for this:
php index.php action=display bridge=Bandcamp band=theflenser format=Json | sed "/date_modified/s/+00:00/Z/"
@hejops This is doable but require work in all the format factories.
Is your feature request related to a problem? Please describe. Not sure whether such a feature already exists, but I think it would be nice to have a CLI parameter to limit fetched articles by date, instead of just fetching a fixed number of articles.
Describe the solution you'd like To fetch articles posted within the last 7 days:
php index.php action=display bridge=Bandcamp band=theflenser newerthan=7 format=Json
Describe alternatives you've considered You can filter after fetching a feed using jq's
fromdate
function:However, time zones must first be corrected, since the time zone format (
+00:00
) produced by rss-bridge is not fully ISO 8601 compliant (Z
).Additional context The idea behind this is mainly to mimic newsboat's
keep-articles-days
config: https://github.com/newsboat/newsboat/blob/840d59f75e05b21fc3d59470fbed29ff9a17914f/src/cache.cpp#L1089