1
0
Fork 0
forked from blallo/rss-bridge
Commit graph

24 commits

Author SHA1 Message Date
Pierre Mazière
0668f79704 [LeBonCoinBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-29 12:42:34 +02:00
Pierre Mazière
1b3c8a8aeb [core + bridges] add BridgeAbstract::$inputs and BridgeAbstract::getInput()
Inputs are not stored in BridgeAbstract::$parameters anymore to separate
static data from dynamic data.
The getInput method allows for more readable code.

Also fix an "undefined index 'global'" notice

Probability of breaking bridges: high !

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-28 13:05:03 +02:00
Pierre Mazière
de1b39c8e5 [core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized
there, ::__construct() should be used instead.

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-28 13:05:03 +02:00
Pierre Mazière
117031bf0f [core] store parameters values in BridgeAbstract::parameters
This way, any BridgeAbstract method can now have access to these values,
no only collectData

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-25 01:24:53 +02:00
logmanoriginal
bf0a9d754e [bridges] Change all occurrences of the Item object to array 2016-08-22 18:55:59 +02:00
Pierre Mazière
d5418b3d11 [LeBonCoinBridge] fix typo in values list
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-22 11:15:00 +02:00
Pierre Mazière
f0e502ce37 [bridges] migrate all bridges to an array based definition of parameters
see github issue 356

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-22 01:25:56 +02:00
Pierre Mazière
bba216073c [bridges] remove useless 'update' property from all bridges
That's the source code manager job to keep this information
consistent

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-21 00:21:41 +02:00
Pierre Mazière
3c0d13c1bb bridges: use BridgeAbstract::getSimpleHTMLDOM
instead of BridgeAbstract::file_get_html

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:20:27 +02:00
logmanoriginal
74f0572d91 bridges: Replace returnError function with more specific
Replacements depend on original error code:
400: returnClientError
404: returnServerError
500: returnServerError
501: returnServerError
2016-08-17 14:45:08 +02:00
logmanoriginal
63bb7ef24d bridges: Remove unnecessary functions getName() and getURI() 2016-08-09 20:08:46 +02:00
logmanoriginal
5ad157d2fd bridges: Remove getCacheDuration if default
BridgeAbstract will return 3600 seconds by default, so the function
can be removed from any bridge implementing getCacheDuration
returning the same value.

Documentation updated accordingly.
2016-08-06 16:23:09 +02:00
Pierre Mazière
955eecc299 use BridgeAbstract::file_get_html in all bridges
instead of simple_html_dom function file_get_html

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-06-25 23:17:42 +02:00
wtuuju
796c14758f categories added + fixed html entities 2016-05-02 10:30:13 +02:00
wtuuju
642e4173d1 categories added 2016-05-02 00:55:22 +02:00
Teromene
88a78b5666 LeBonCoinBridge fixed. 2016-05-01 16:57:40 +01:00
Ginko-Aloe
438a389286 urlencode keyword parameter
in order to handle non-trivial request keywords
2016-01-19 18:04:35 +01:00
Teromene
379c89045b Quoted the "r" and "k" in the parameters 2016-01-19 12:15:16 +00:00
teromene
80008f01f8 Updating a few bridges.
Adding everybody to the contributors in README.md

Signed-off-by: teromene <teromene@teromene.fr>
2015-12-06 15:56:39 +01:00
teromene
78c9dcc705 Last batch of bridges, all implemented !
Signed-off-by: teromene <teromene@teromene.fr>
2015-12-06 15:56:39 +01:00
Mitsukarenai
182be9b575 [LeBonCoin] -oops- forgot keyword type 2015-10-30 17:49:46 +01:00
Mitsukarenai
60a82b52b7 [LeBonCoin] add region selection list 2015-10-30 17:45:10 +01:00
Glandos
ef0329b09c Handle missing items in LeBonCoinBridge
Ignore missing items instead of doing 500 errors.
2015-04-15 21:55:24 +02:00
16mhz
5714892115 Add: New bridge for LeBonCoin with region filter 2014-07-22 17:20:43 +02:00