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

feature request: keep timestamp per feed #49

Open
mirabilos opened this issue Feb 2, 2023 · 0 comments
Open

feature request: keep timestamp per feed #49

mirabilos opened this issue Feb 2, 2023 · 0 comments

Comments

@mirabilos
Copy link

Some feeds use day-based stamps, i.e. new articles always show up at 00:00:00Z of the posting day, while others have a higher timestamp precision. This makes Feediverse lose posts from the former if the latter has posts.

The workaround is to mkdir ~/.feediverse instead of having a single config there, split them up per feed (initially, everything identical except the feeds top-level element will have only one entry each; they’ll differ in updated too once run) and then in the cronjob do /bin/mksh -c 'set -o pipefail; rv=0; for f in ~/.feediverse/*.cfg; do ~/Repos/Upstream/Feediverse/feediverse.py -v -c "$f" 2>&1 | logger -t "rss2mstdn:${f##*/}" || rv=1; done; (( rv == 0 )) || print E: rss2mstdn failed' (i.e. invoke it once per config file).

The code fix would be to move the timestamp insides the per-feeds elements.

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

1 participant