Commit graph

563 commits

Author SHA1 Message Date
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 b43e8ef689 Merge branch 'LWNprevBridge' of https://framagit.org/peetah/rss-bridge 2016-08-19 09:35:33 +02:00
Pierre Mazière 5986b9f786 follow up on site changes
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-18 10:21:58 +02:00
Pierre Mazière 1e953d3c3e use BridgeAbstract::file_get_html instead of SimpleHTMLDOM one
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-18 10:20:57 +02:00
Pierre Mazière 65c6b08aed fix DOMNode and DOMElement mess
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-17 16:19:51 +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 d3cebe9c65 [IsoHunt] Add new bridge 2016-08-16 01:34:25 +02:00
logmanoriginal fa59a25229 bridges: Update bridges with 'required' attributes 2016-08-15 01:19:16 +02:00
az5he6ch ceb3e9a039 Merge branch 'master' of https://github.com/az5he6ch/rss-bridge 2016-08-14 20:16:27 +09:30
az5he6ch a5c7179b0e [Askfm] Add new bridge 2016-08-14 20:16:16 +09:30
logmanoriginal eeb6c9681d [YoutubeBridge] Fix typo 2016-08-11 21:42:49 +02:00
logmanoriginal 2a04940fb8 [KununuBridge] Increase cache duration to 1 day 2016-08-10 23:27:48 +02:00
logmanoriginal f0f2e8f847 [KununuBridge] Add new bridge 2016-08-10 23:18:35 +02:00
logmanoriginal 0c1ec44c49 bridges: Merge all Allocine* bridges into AllocineFRBridge 2016-08-10 11:41:35 +02:00
logmanoriginal 68d1c1f961 [TwitterBridgeExtended] -> [TwitterBridge] make this the only one 2016-08-10 11:00:40 +02:00
logmanoriginal 1ea38d521d bridges: Remove all Twitter bridges except TwitterBridgeExtended 2016-08-10 10:56:06 +02:00
logmanoriginal 5ef26343b3 [TwitterBridgeExtended] Complete definition of parameters 2016-08-10 10:55:06 +02:00
logmanoriginal a628abd04c [TwitterBridgeExtended] Add option to show/hide profile pictures 2016-08-10 10:52:04 +02:00
logmanoriginal 89aad9f796 [TwitterBridgeExtended] Directly write content to ->title 2016-08-10 10:26:29 +02:00
logmanoriginal 6138031793 [TwitterBridgeExtended] Add border around profile picture 2016-08-10 10:08:03 +02:00
logmanoriginal faacbda027 [TwitterBridgeExtended] Use inline-blocks to format HTML output 2016-08-09 22:05:42 +02:00
logmanoriginal 0683457eb3 [TwitterBridgeExtended] Reduce size of emojis in the tweet 2016-08-09 21:59:55 +02:00
logmanoriginal 13d9b8d462 [TwitterBridgeExtended] Use heredoc syntax to build ->content 2016-08-09 21:47:29 +02:00
logmanoriginal 1a572f6639 [TwitterBridgeExtended] Use username as alternative to the image 2016-08-09 21:36:45 +02:00
logmanoriginal 63bb7ef24d bridges: Remove unnecessary functions getName() and getURI() 2016-08-09 20:08:46 +02:00
logmanoriginal 42b6c82753 bridges: Cleanup occurrences of $item->thumbnailUri
This is a subsequent change to f3eefab
2016-08-09 15:50:55 +02:00
logmanoriginal e329a4c1b6 bridges: Change ->name to ->author 2016-08-09 14:54:44 +02:00
logmanoriginal 0663c9507f [AtomFormat] Remove enclosures
This feature was implemented for AtomFormat only and implemented by no
bridge other than DemoBridge.
2016-08-08 22:43:53 +02:00
logmanoriginal 13d42746d7 [Wikipedia] Fix typo 2016-08-07 13:26:30 +02:00
logmanoriginal 1cfb8c02a0 [Wikipedia] Use entire entry as title for 'Did you know' 2016-08-07 13:02:10 +02:00
logmanoriginal 04b4dd1db9 [Wikipedia] Add support for 'Did you know?' articles 2016-08-07 12:51:09 +02:00
logmanoriginal 17c9d8fc37 [Wikipedia] Fix typo 2016-08-07 11:29:00 +02:00
logmanoriginal 0b923ab76a [Wikipedia] Improve title search algorithm 2016-08-07 11:26:45 +02:00
logmanoriginal d4435e0b13 [Wikipedia] Remove other bridges
All previous bridges are now completely covered by the
new WikipediaBridge!
2016-08-07 00:07:37 +02:00
logmanoriginal 2c954a848d [Wikipedia] Create bridge for multiple languages 2016-08-07 00:06:14 +02:00
logmanoriginal 0ddf664d89 bridges: Remove obsolete getName() and getURI() 2016-08-06 18:45:02 +02:00
logmanoriginal 5432cabef5 bridges: Put name/uri directly in bridge metadata
Some bridges used getName() and getURI() to put information into the
metadatas. Instead the metadatas should be initialized with data and
(not yet done) returned by default via getName() and getURI().
2016-08-06 18:07:42 +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
logmanoriginal 1d53b70272 bridges: Remove unused functions and update scopes
Many bridges implemented getDescription() which is only applicable for
bridges extending RSSExpander.

Functions that are not part of the abstract class or interface should
be in private scope for better readability.
2016-08-06 16:00:56 +02:00
logmanoriginal a5120dde2c [Castorus] Allow filter via ZIP code or city name 2016-08-05 14:59:26 +02:00
logmanoriginal e4a56e504e [Castorus] Reduce cache duration to 10 minutes 2016-08-05 13:19:36 +02:00
logmanoriginal 31bdf7390a [Castorus] Add new bridge 2016-08-05 13:16:00 +02:00
logmanoriginal 02e169584a [Raymond] remove bridge: supported by WordPress bridge 2016-08-04 22:00:51 +02:00
logmanoriginal 12abf9d455 [LeMotDuJour] remove Bridge: Supported by WordPress bridge
http://www.lemotdujour.com doesn't seem to be active for the last two
years (last entry is dated 17. oct 2014). WordPress will return the
headlines which seems to be sufficient for now.
2016-08-04 21:57:13 +02:00
logmanoriginal 7afee0e277 [WordPress] Fix site name on bridge content 2016-08-04 21:56:11 +02:00
logmanoriginal 870ef6f6fc [WordPress] Remove forms and improve script removal
Some sites contain scripts like these, that were not captured by the
previous implementation:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
2016-08-04 21:46:03 +02:00
logmanoriginal 2c41ed550d [WordPress] Fix content loading 2016-08-04 21:06:12 +02:00
logmanoriginal d944558a3d [WordPress] Fix indentation and remove empty lines 2016-08-04 20:45:21 +02:00
logmanoriginal 455b98757c [WordPress] Don't attempt to load pages with missing .article
Some sites use WordPress but don't provide pages with articles.
Instead of throwing internal errors we just don't return any
content.
2016-08-04 20:40:38 +02:00
logmanoriginal 21523eb549 [WordPress] Change all nested functions to member functions 2016-08-04 20:15:28 +02:00