-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ExplosmBridge] Rewrite to work without feedburner #2417
Conversation
re-wrote the bridge to scrap from the new explosm site as the old method of using feedburner is not working anymore, feedburner is stuck on dec/22 when the explosm site changed.
I tested this on my own host with latest release and it works as intended (docker on archlinux host, tested with tt-rss as client) |
Ping @Bockiii for reviewing this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @jNullj!
Please fix linting and comment below.
bridges/ExplosmBridge.php
Outdated
'required' => true, | ||
'title' => 'Maximum number of items to return', | ||
'defaultValue' => 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need "required" here?
This setting will break previous usage, where "/?action=display&bridge=Explosm&format=Html" worked. If I apply this change, users need to reedit their rss feeds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not think about it, this is a great insight. I makred it required becouse a limit is required. I could make it so the default is 5 which is the number of posts the bridge returned when it used feedburner before this change. Does the 'defaultValue' => 5
will take care of that, im not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested myself, i fixed this and tested for old feed urls to work.
For backwards compatibility with links used by the previous version of this bridge assume default of 1 posts if the parameter is missing.
Wasn't able to test this until now, but it looks like it works well. Thanks @jNullj ! |
re-wrote the bridge to scrap from the new explosm site as the old method of using feedburner is not working anymore, feedburner is stuck on dec/22 when the explosm site changed.
fix issue #2415