Commit graph

2360 commits

Author SHA1 Message Date
logmanoriginal
a1a44cd1ff Change all nested functions to member functions
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-03 13:30:38 +02:00
logmanoriginal
4f9e03f346 Create nested function to receive article or element author
This fixes an error that occurred by attempting to access an object that
did not exist (author).
2016-08-03 13:16:47 +02:00
logmanoriginal
7740dbfcc9 [Frandroid] remove bridge: website supported by WordPress bridge 2016-08-03 12:50:24 +02:00
logmanoriginal
58b3261fbb Fix indentation and remove empty lines 2016-08-03 12:42:57 +02:00
logmanoriginal
7ff901de08 Change all nested functions to member functions
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-03 12:37:56 +02:00
Mitsu
d3e5711601 Merge pull request #310 from EtienneM/add_scalingo_oneclick
Add scalingo one click deploy
2016-08-03 01:09:12 +02:00
Étienne Michon
e7e2101889 Typo 2016-08-02 23:37:01 +02:00
Étienne Michon
173afb8314 Update readme: Add scalingo one click deploy 2016-08-02 23:32:30 +02:00
Étienne Michon
71d868fd90 Add scalingo.json 2016-08-02 23:26:00 +02:00
Mitsu
8ba8fea263 Merge pull request #309 from teromene/new-style
Further improvement of style
2016-08-02 22:38:51 +02:00
Mitsu
84847bf85f Merge pull request #308 from LogMANOriginal/ElsevierBridge
Elsevier bridge
2016-08-02 22:38:34 +02:00
Teromene
6b7b38db54 Improved new style. 2016-08-02 22:16:43 +02:00
logmanoriginal
a1c680f8e8 Fix indentation and improve code style
- Use tab instead of spaces
- Remove obsolete bridge description at start of the file
- Add spaces at the assignment operator ('=' -> ' = ')
- Remove unnecessary empty lines
2016-08-02 21:40:22 +02:00
logmanoriginal
f783969721 Create member functions to extract information from articles
The extractor function will handle many situations more specifically in
order to provide better results.
2016-08-02 21:35:13 +02:00
logmanoriginal
399fce06ce Require input field, add example value and title
Previously the bridge could be requested without any journal causing
error 403 due to broken URL.
2016-08-02 20:35:27 +02:00
logmanoriginal
8f76eebddb Fix parameters list
Fixes warning: "array_key_exists() expects parameter 2 to be array,
string given in /volume1/web/rss-bridge_dev/lib/HTMLUtils.php on line 59
Warning: Invalid argument supplied for foreach() in
/volume1/web/rss-bridge_dev/lib/HTMLUtils.php on line 64
2016-08-02 20:29:40 +02:00
Mitsu
d3d379bd81 Merge pull request #307 from teromene/new-style
New style for rss-bridge
2016-08-02 20:08:23 +02:00
Teromene
ab4e63b59c New style for rss-bridge 2016-08-02 18:56:12 +02:00
Mitsukarenai
72e457a5b7 [Coindesk] remove bridge: website supported by Wordpress bridge 2016-08-02 17:49:47 +02:00
Mitsukarenai
cd5f3e740a [Wordpress] Add a div class commonly used for post content 2016-08-02 17:48:57 +02:00
Mitsu
3a0675364f Merge pull request #305 from LogMANOriginal/GBAtempBridge
GBAtempBridge
2016-08-02 17:34:08 +02:00
Mitsu
0bb11db536 Merge pull request #304 from LogMANOriginal/DauphineLibereBridge
Dauphine libere bridge
2016-08-02 17:34:02 +02:00
logmanoriginal
f3d3582af1 Change all nested functions to member functions
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!

This also fixes an error where calling collectData multiple times would
result in an attempt to redeclare all nested functions (which would
cause errors)
2016-08-02 16:20:43 +02:00
logmanoriginal
c8c3e9ef65 Add http-context to simulate Mozilla user-agent
This fixes "Warning: file_get_contents(http://www.ledauphine.com/rss):
failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden"
2016-08-02 15:57:01 +02:00
Mitsukarenai
3cc262443c [Maliki] Removed because uses WP now 2016-08-02 15:46:52 +02:00
Mitsukarenai
0f3ca30caa [WordPress] bridge rewrite 2016-08-02 15:46:21 +02:00
logmanoriginal
4420906a7a Fix indentation and remove unnecessary lines 2016-08-02 15:40:07 +02:00
logmanoriginal
0631e9d835 Make ExtractContent a member function
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-02 15:32:22 +02:00
Mitsu
0052f25d2a Merge pull request #303 from LogMANOriginal/CommonDreamsBridge
CommonDreamsBridge
2016-08-02 15:16:43 +02:00
logmanoriginal
cb7d477310 Fix indentation and remove unnecessary lines 2016-08-02 14:43:59 +02:00
logmanoriginal
5fb27b2aa6 Make CommonDreamsExtractContent member function
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-02 14:41:54 +02:00
Mitsukarenai
c75622135e [DailymotionBridge] fix 2016-08-02 14:24:54 +02:00
Mitsu
cb84635e2d Merge pull request #296 from kranack/dev-flickr
Update Flickr Bridge
2016-08-02 14:21:54 +02:00
Mitsu
9af011cee1 Merge pull request #298 from prysme01/master
very basic support of ArsTechnica
2016-08-02 14:21:35 +02:00
Mitsu
dfa6dc33aa Merge pull request #302 from LogMANOriginal/CADBridge
Cad bridge
2016-08-02 14:21:20 +02:00
Mitsu
b3a3328600 Merge pull request #301 from teromene/coindesk-fix
Fix CoinDeskBridge
2016-08-02 14:21:14 +02:00
logmanoriginal
a32044893a Replace if-statements with switch statement
The previous implementation would fail if $htmlpart[3] was neither 'cad'
nor 'sillies'. Now the default text will be returned.
2016-08-02 14:14:29 +02:00
Teromene
ea4586d8b3 Fix CoinDeskBridge 2016-08-02 14:11:28 +02:00
logmanoriginal
d0c932c149 Handle failing requests
Disabling https support results in a failed request which is now handled
as if there is no data at all.
2016-08-02 14:07:40 +02:00
Mitsu
099a421d8b Merge pull request #300 from teromene/gitlab-fix
Fix GitlabCommitsBridge.
2016-08-02 13:48:29 +02:00
Teromene
fa7a053c65 Fix GitlabCommitsBridge. 2016-08-02 13:45:12 +02:00
logmanoriginal
01bdda5e19 Fix indentation and remove unnecessary lines 2016-08-02 13:37:18 +02:00
logmanoriginal
1e33b7c2ec Make CADExtractContent a member function
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-02 13:25:49 +02:00
Mitsu
a84f11aed8 Merge pull request #299 from LogMANOriginal/BastaBridge
Basta bridge
2016-08-02 12:40:17 +02:00
logmanoriginal
4a001f3594 Replace relative image paths with absolute URL
Images from their own servers are linked relatively via 'local/...' we
must replace this for images to point to the correct destination.
2016-08-02 12:27:44 +02:00
logmanoriginal
5189741c7b Fix tag name for timestamp 2016-08-02 11:31:17 +02:00
logmanoriginal
371a52e2b9 Fix indentation and remove unnecessary lines 2016-08-02 11:28:11 +02:00
logmanoriginal
9d41c83c02 Remove nested function BastaExtractContent
This fixes error "Using $this when not in object context"

The nested function BastaExtractContent was attempting to access $this
even though the function is declared as nested function within a class
function and not as a class function itself. Thus BastaExtractContent
had no access to the object instance $this.
2016-08-02 11:24:24 +02:00
prysme01
e3cf486ac5 Better tag handling 2016-08-01 16:16:18 +02:00
prysme01
b37877bc74 very basic support of ArsTechnica 2016-08-01 15:18:32 +02:00