Commit graph

2025 commits

Author SHA1 Message Date
Pierre Mazière
fe58d23c17 core: use proxy when defined in HttpCachingBridgeAbstract
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:20:27 +02:00
Pierre Mazière
d74beb6c6a core: move message() method to parent class BridgeAbstract
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:20:27 +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
Pierre Mazière
f43bbda83e core: split and rename BridgeAbstract::file_get_html
We need to have one method to get the data, potentially
using the proxy if defined, and one method to get the Simple
DOM HTML object from these data, with a more informative name

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:19:56 +02:00
Pierre Mazière
d71674d2ba proxy settings must be the service provider decision
therefore, the provider decides if the service use a
proxy or not, and if users can have the possibility to
disable it on a bridge basis.

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:19:56 +02:00
Pierre Mazière
09d4e21bdc possibility to hide proxy address
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:19:56 +02:00
Pierre Mazière
3dd63ab6fd enable proxy usage for individual bridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-08-19 10:19:56 +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
73a1bcf3d6 [Bridge] Add specialized error handling functions 2016-08-17 13:58:55 +02:00
logmanoriginal
d3cebe9c65 [IsoHunt] Add new bridge 2016-08-16 01:34:25 +02:00
Mitsukarenai
5212b91cca [whitelist] trim content for wildcard (contrib: @Piokaz) 2016-08-16 00:00:33 +02:00
Mitsukarenai
eb419e2595 [README] Add instruction for wildcard in whitelist.txt 2016-08-15 23:40:29 +02:00
logmanoriginal
d3cbf38eb1 [Bridge] Allow '*' wildcard to whitelist all bridges
For this to work the whitelist.txt must only contain '*' (no \n)
2016-08-15 08:46:04 +02:00
logmanoriginal
646ae57326 [HTMLUtils] Change getHelperButtonsFormat to private scope 2016-08-15 08:13:40 +02:00
logmanoriginal
a6da16feb7 [HTMLUtils] Remove getHelperButtonFormat 2016-08-15 08:01:32 +02:00
logmanoriginal
5d66af7a29 [HTMLUtils] Add new attribute 'defaultValue'
Behavior depends on the type:

- text: Allows any text
- number: Allows any numeric
- list: 'defaultValue' must match either name or value of one element
- checkbox: 'defaultValue' must be checked to activate checkbox
2016-08-15 02:47:36 +02:00
logmanoriginal
3fd283e29f [HTMLUtils] Fix form input attribute assignment
- Don't assign attributes to all options of a selection
- Assign attributes to checkboxes
2016-08-15 02:32:36 +02:00
logmanoriginal
3ca2f030e7 [HTMLUtils] Add common function for form header 2016-08-15 02:21:07 +02:00
logmanoriginal
f853f62270 [HTMLUtils] Cleanup code
- Use single quote instead of double quotes
- Remove unnecessary empty lines
- Use common format for indentation and blocks
- Use HEREDOC for long strings
- Remove braces from single line if-statements
2016-08-15 02:08:59 +02:00
logmanoriginal
fa59a25229 bridges: Update bridges with 'required' attributes 2016-08-15 01:19:16 +02:00
logmanoriginal
c689180fef [HTMLUtils] Make 'required' attribute Boolean
The 'required' attribute can now be used for all parameters and
enabled/disabled using Boolean states true/false respectively:

"required" : true

or

"required" : false

This now complies to the Wiki:
https://github.com/RSS-Bridge/rss-bridge/wiki/BridgeAbstract
2016-08-15 01:14:00 +02:00
logmanoriginal
a70e143dc4 [HTMLUtils] Remove value from 'required' attribute
The 'required' attribute has no value, see
https://www.w3.org/TR/html5/forms.html#the-required-attribute
2016-08-15 01:00:51 +02:00
LogMANOriginal
43dce4b228 [README] Update authors 2016-08-14 12:56:52 +02:00
LogMANOriginal
a2ecf5d943 Merge pull request #348 from az5he6ch/master
[Askfm] Add new bridge
2016-08-14 12:52:01 +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
94404aad61 [README] Update links 2016-08-13 21:32:36 +02:00
logmanoriginal
890b48c56d [CREATE_BRIDGE] Remove file
The contents of this file are now part of the Wiki
2016-08-13 21:32:14 +02:00
LogMANOriginal
0e7f992e64 [README] Add license badge 2016-08-13 19:08:03 +02:00
logmanoriginal
eeb6c9681d [YoutubeBridge] Fix typo 2016-08-11 21:42:49 +02:00
LogMANOriginal
619f4898fa [README] Update with new screenshots & content 2016-08-11 21:21:43 +02:00
logmanoriginal
c9fd3979c1 [.gitignore] Ignore all Visual Studio Code settings 2016-08-11 20:18:44 +02:00
Mitsukarenai
69a590be79 i[README] small change :) 2016-08-11 13:23:51 +02:00
Mitsu
213241527d Merge pull request #342 from LogMANOriginal/KununuBridge
[KununuBridge] Add new bridge
2016-08-10 23:47:34 +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
Mitsu
cd7eb1b8fe Merge pull request #341 from LogMANOriginal/CleanupBridges
Cleanup bridges
2016-08-10 12:05:34 +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