Roliga
49da67cb33
core: Automatically select a bridge based on a URL ( #928 )
...
* core: Add bridge parameter auto detection
This adds a new 'detect' action which accepts a URL from which an
appropriate bridge is selected and relevant parameters are extracted.
The user is then automatically redirected to the selected bridge.
For example to get a feed from: https://twitter.com/search?q=%23rss-bridge
we could send a request to:
'/?action=detect&format=Atom&url=twitter.com/search%3Fq%3D%2523rss-bridge'
which would redirect to:
'/?action=display&q=%23rss-bridge&bridge=Twitter&format=Atom'.
This auto detection happens on a per-bridge basis, so a new function
'detectParameters' is added to BridgeInterface which bridges may implement.
It takes a URL for an argument and returns a list of parameters that were
extracted, or null if the URL isn't relevant for the bridge.
* [TwitterBridge] Add parameter auto detection
* [BridgeAbstract] Add generic parameter detection
This adds generic "paramater detection" for bridges that don't have any
parameters defined. If the queried URL matches the URI defined in the
bridge (ignoring https://, www. and trailing /) an emtpy list of parameters is
returned.
2018-11-26 18:05:40 +01:00
..
2018-11-05 12:55:58 +01:00
2017-02-18 13:41:45 +01:00
2018-11-05 12:55:58 +01:00
2018-11-05 12:55:58 +01:00
2018-07-31 21:44:37 +02:00
2018-11-05 12:55:58 +01:00
2018-09-09 20:20:13 +01:00
2018-09-15 16:50:10 +02:00
2018-10-24 18:33:07 +02:00
2018-11-05 12:55:58 +01:00
2018-11-05 11:38:22 +01:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-11-05 12:55:58 +01:00
2017-07-29 19:55:12 +02:00
2018-11-05 17:32:11 +01:00
2018-10-26 19:10:58 +02:00
2018-06-29 22:55:33 +01:00
2018-06-29 22:55:33 +01:00
2018-11-18 09:16:24 +01:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-08-09 21:55:43 +02:00
2018-04-19 21:00:18 +02:00
2018-09-09 20:23:59 +01:00
2018-11-05 12:55:58 +01:00
2018-06-29 22:55:33 +01:00
2018-04-17 15:25:02 +02:00
2018-10-15 18:35:49 +02:00
2017-02-12 15:34:08 +01:00
2018-09-22 18:57:07 +02:00
2018-10-26 19:10:58 +02:00
2018-09-09 20:20:13 +01:00
2018-11-05 12:55:58 +01:00
2017-02-12 15:34:08 +01:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-11-06 18:35:43 +01:00
2018-10-26 19:10:58 +02:00
2018-09-09 20:20:13 +01:00
2018-10-20 13:08:03 +02:00
2018-11-05 12:55:58 +01:00
2018-10-15 18:19:57 +02:00
2018-06-29 22:55:33 +01:00
2018-11-16 15:33:54 +01:00
2018-11-05 12:55:58 +01:00
2018-11-05 12:55:58 +01:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-11-18 16:53:21 +01:00
2018-11-06 14:57:54 +01:00
2018-07-23 20:14:46 +02:00
2018-06-29 22:55:33 +01:00
2018-09-09 17:34:36 +01:00
2018-11-05 12:55:58 +01:00
2018-09-09 20:20:13 +01:00
2018-11-05 12:55:58 +01:00
2017-08-05 22:38:24 +02:00
2017-07-29 19:55:12 +02:00
2018-11-03 11:56:51 +01:00
2018-06-29 22:55:33 +01:00
2018-09-09 20:30:29 +01:00
2017-07-29 19:55:12 +02:00
2018-10-15 18:33:02 +02:00
2018-06-29 22:55:33 +01:00
2018-09-09 17:32:36 +01:00
2018-10-26 19:10:58 +02:00
2018-11-05 12:55:58 +01:00
2018-10-15 18:09:20 +02:00
2018-09-08 11:12:27 +01:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-07-13 00:35:13 +01:00
2017-07-29 19:55:12 +02:00
2018-11-07 22:17:53 +01:00
2018-07-21 15:25:13 +02:00
2018-04-06 22:25:49 +02:00
2018-10-26 19:10:58 +02:00
2018-11-10 20:03:05 +01:00
2018-10-26 19:10:58 +02:00
2018-10-26 19:10:58 +02:00
2017-02-12 15:34:08 +01:00
2017-02-12 15:34:08 +01:00
2018-09-16 09:55:35 +02:00
2018-09-12 13:31:11 +01:00
2018-10-26 19:10:58 +02:00
2018-09-09 20:20:13 +01:00
2018-08-21 17:41:56 +02:00
2017-02-12 15:34:08 +01:00
2017-07-29 19:55:12 +02:00
2017-02-12 15:34:08 +01:00
2018-11-05 12:55:58 +01:00
2018-06-29 22:55:33 +01:00
2017-02-12 15:34:08 +01:00
2018-01-11 11:44:51 +00:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2017-02-12 15:34:08 +01:00
2018-07-13 00:35:13 +01:00
2018-06-29 22:55:33 +01:00
2018-09-09 20:20:13 +01:00
2018-09-09 20:20:13 +01:00
2018-09-09 20:20:13 +01:00
2017-02-12 15:34:08 +01:00
2018-11-05 12:55:58 +01:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2018-10-26 19:10:58 +02:00
2018-11-07 18:52:29 +01:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2017-12-24 16:45:56 -05:00
2017-07-29 19:55:12 +02:00
2018-11-05 12:55:58 +01:00
2018-10-26 19:10:58 +02:00
2018-11-10 19:48:05 +01:00
2018-11-05 12:55:58 +01:00
2018-11-05 18:20:17 +01:00
2018-06-29 22:55:33 +01:00
2018-09-09 20:20:13 +01:00
2018-06-29 22:55:33 +01:00
2018-11-05 12:55:58 +01:00
2018-11-07 23:16:28 +01:00
2017-02-12 15:34:08 +01:00
2017-02-12 15:34:08 +01:00
2017-02-12 15:34:08 +01:00
2017-02-12 15:34:08 +01:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-06-29 22:55:33 +01:00
2018-06-29 22:55:33 +01:00
2018-07-27 23:18:32 +02:00
2018-04-17 14:24:00 +02:00
2018-03-12 09:22:34 +00:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-11-05 12:55:58 +01:00
2018-10-26 19:10:58 +02:00
2018-10-26 19:10:58 +02:00
2017-02-12 15:34:08 +01:00
2018-11-05 12:55:58 +01:00
2017-07-29 19:55:12 +02:00
2018-09-09 20:20:13 +01:00
2018-11-05 18:17:46 +01:00
2018-10-26 19:10:58 +02:00
2018-11-05 12:55:58 +01:00
2018-11-05 11:27:32 +01:00
2018-11-26 18:05:40 +01:00
2018-11-05 12:55:58 +01:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-11-05 12:55:58 +01:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-09-09 20:20:13 +01:00
2018-10-26 19:10:58 +02:00
2017-07-29 19:55:12 +02:00
2017-07-29 19:55:12 +02:00
2018-11-18 16:53:21 +01:00
2018-11-10 20:03:05 +01:00
2018-04-22 12:58:07 +02:00
2017-02-12 15:34:08 +01:00
2018-11-10 20:03:05 +01:00
2017-02-12 15:34:08 +01:00
2018-11-18 09:41:14 +01:00
2018-10-20 12:43:48 +02:00
2018-09-09 20:20:13 +01:00
2018-07-16 12:02:41 +02:00
2018-11-20 16:23:17 +01:00