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

1345 commits

Author SHA1 Message Date
logmanoriginal
5c309e93dc [cache] Specify cache duration for 'purgeCache' 2016-10-08 16:18:10 +02:00
logmanoriginal
2d56b717cf [FileCache] Add property to define cache folder 2016-10-08 16:03:08 +02:00
logmanoriginal
5639b158e7 [FileCache] Change parameters to lower-case
This prevents creating multiple cache files for the same request.
2016-10-08 15:34:19 +02:00
logmanoriginal
5de4a59d41 [index] Initialize cache before loading to bridge
Previously BridgeAbstract needed to know which exact implementation
of CacheInterface was used (since we only got one right now its
not a problem). Initializing the cache in index.php instead allows
to change cache types more easily.
2016-10-08 15:29:21 +02:00
logmanoriginal
d941fa41f6 [FileCache] Remove 'isPrepareCache'
There is no need to check the absense of the parameters in
all functions. Instead 'getCacheName' is the only function
actually using the parameters and thus should check the
availability.
2016-10-08 15:21:10 +02:00
logmanoriginal
ac0a9a90ad [FileCache] Build file name solely on given parameters
Previously the cache file name was build on the original request URI
which also included the parameters. This could result in different
file name for the same request (different format). Removing the format
from the request is already done in index.php and could lead to issues
in the future (if new parameters are introduced).
2016-10-08 15:17:08 +02:00
logmanoriginal
5ccde61a19 [FileCache] Rename 'prepare' to 'setParameters'
This is a cosmetic change to use the same naming convention for
all methods.
2016-10-08 15:04:14 +02:00
logmanoriginal
0998cbde9d [cache] Directly implement CacheInterface in FileCache
The function 'prepare' previously implemented in CacheAbstract
is specifically required for FileCache and thus belongs to FileCache.
Since this change removes all code from CacheAbstract, it can be
removed completely.
2016-10-08 14:52:03 +02:00
logmanoriginal
5f1c4e1c55 [FileCache] Implement recursive directory creation 2016-10-07 23:20:32 +02:00
logmanoriginal
ad825aa88a [FileCache] Assign same permission to group as others
It makes no sense for the group to get less access rights
than anyone else
2016-10-07 23:16:33 +02:00
logmanoriginal
45890d5969 [FileCache] Don't store folder creation status
The results of the function is_dir are already cached.
See http://php.net/manual/en/function.is-dir.php
2016-10-07 22:56:10 +02:00
logmanoriginal
5fdb3b2fd9 [FileCache] Build path using function instead of constant 2016-10-07 22:36:36 +02:00
logmanoriginal
9ac678aac5 [Cache] Move 'purge' function to implementations
The purge function is cache specific and thus belongs
to the specific implementation.
2016-10-07 22:33:45 +02:00
logmanoriginal
51ff8de346 [Cache] Remove orphan function utf8_encode_deep 2016-10-07 22:06:58 +02:00
logmanoriginal
0e9fb31986 Merge branch 'WebfailBridge' of https://github.com/logmanoriginal/rss-bridge 2016-10-06 22:45:28 +02:00
LogMANOriginal
3e82a82499 Update README.md 2016-10-06 22:43:17 +02:00
LogMANOriginal
381a452047 Merge pull request #420 from niawag/patch-2
Create ReadComicsBridge.php
2016-10-06 22:09:11 +02:00
logmanoriginal
aa2442602a [Webfail] Fix titles with single quotes 2016-10-06 22:04:38 +02:00
niawag
f8dafe6b10 Update ReadComicsBridge.php 2016-10-06 16:39:18 +02:00
niawag
952bde0425 Update ReadComicsBridge.php 2016-10-06 16:22:39 +02:00
niawag
41e85bd4a6 Create ReadComicsBridge.php
Hi, I created a Bridge for ReadComics.tv website, I put myself as "maintainer" but I'm not sure if this is the way you're doing it!
If there is a need to improve/change things, please tell me!
2016-10-06 15:43:04 +02:00
logmanoriginal
5662dff5cb [Webfail] Fix titles with umlauts 2016-10-05 18:56:54 +02:00
logmanoriginal
9e209608c8 [TheOatMeal] Remove bridge
RSS feeds are provided on the main page at http://theoatmeal.com/
2016-10-03 19:35:54 +02:00
logmanoriginal
c0df82c303 [TwitchApi] Remove bridge
Since August 6th, 2016 Twitch requires a client ID
(oauth token) to do API requests, which makes this
bridge useless for most people.

See also: https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.xrc1h2apk
2016-10-03 19:29:39 +02:00
logmanoriginal
95bd44e3fb Merge branch 'WebfailBridge' of https://github.com/logmanoriginal/rss-bridge 2016-10-03 11:49:35 +02:00
logmanoriginal
885198d8d2 [Webfail] Add new bridge 2016-10-03 11:47:27 +02:00
logmanoriginal
8b6ee19aba Merge branch 'VisualizeDebugMode' of https://github.com/logmanoriginal/rss-bridge 2016-10-02 18:45:45 +02:00
logmanoriginal
b61ea84950 [index] Show debug status on main page 2016-10-02 18:43:20 +02:00
logmanoriginal
ee7ddcf992 [FeedExpander] Fix SimplXMLElement serialization error
Previously FeedExpander stored SimpleXMLElement objects into
the items array. These objects cannot be serialized using the
serialize function.
2016-10-02 18:07:56 +02:00
logmanoriginal
f0f0ffb96a Merge branch 'DebugDisableCaching' of https://github.com/logmanoriginal/rss-bridge 2016-10-02 17:21:16 +02:00
logmanoriginal
b32cfd5dc3 [index] Explicitly define DEBUG with Boolean value 2016-10-02 17:16:21 +02:00
logmanoriginal
b0784e5a42 [BridgeAbstract] Don't load cache file in DEBUG mode 2016-10-02 17:00:53 +02:00
logmanoriginal
978e5cdbf5 [index] Define cache even in DEBUG mode 2016-10-02 16:43:08 +02:00
logmanoriginal
4b171f8f46 Merge branch 'fixIndividualBridges' of https://framagit.org/peetah/rss-bridge 2016-10-02 16:13:57 +02:00
logmanoriginal
970e216c1f Merge branch 'methods2functions' of https://framagit.org/peetah/rss-bridge 2016-10-02 16:05:58 +02:00
logmanoriginal
9020b09fc2 Merge branch 'sysadminstory-patch-AllocineFRBridge' of https://github.com/sysadminstory/rss-bridge 2016-10-02 15:57:24 +02:00
Mitsu
7bb464350c Merge pull request #413 from niawag/patch-1
Add category and uploader feed
2016-10-02 15:47:12 +02:00
logmanoriginal
177d3d1c5f Merge branch 'cacheConstant' of https://framagit.org/peetah/rss-bridge 2016-10-02 15:41:54 +02:00
niawag
a4db8dc495 Add user feed, category feed and search in category feed
I tested it and everything is working, I incorporated the changes suggested by mitsukarenai, thank a lot!
2016-10-02 15:09:51 +02:00
niawag
b50652e6ac Add category and uploader feed
I made some changes to returne category and uploader feed. I also changed the URI to the magnet link to be able to use the feed in a torrent client. As discussed here (https://github.com/RSS-Bridge/rss-bridge/issues/412), I'd rather use the <torrent:magnetURI> item but it's not possible with RSS-Bridge ATM.

If I find time to work on it I'll try to add combination possibilities: search term in a certain category or for a specific uploader

Hope my changes will be appreciated!
2016-09-30 11:07:43 +02:00
Pierre Mazière
3dcdaa1595 [CourrierInternationalBridge] fix content parsing
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-26 00:50:26 +02:00
Pierre Mazière
a1ef589ffe [core] extract BridgeAbstract methods to make them functions
Method validateData is now afunction in lib/validation.php
validateTextValue, validateNumberValue, validateCheckboxValue
and validateListValue are now anonymous functions
defined in validateData

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-26 00:09:29 +02:00
Pierre Mazière
747be13849 [core] extract HTMLUtils methods to make them functions
Methods displayBridgeCard, sanitize, defaultImageSrcTo are now
functions in lib/html.php
getHelperButtinsFormat and getFormHeader are now anonymous functions
defined in displayBridgeCard

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 23:58:52 +02:00
Pierre Mazière
f1fb95b257 [core] extract BridgeAbstract methods to make them functions
- returnError, returnServerError, returnClientError ,debugMessage are
  moved to lib/error.php

- getContents, getSimpleHTMLDOM, getSimpleHTMLDOMCached are moved to
  lib/contents.php

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 23:22:33 +02:00
Pierre Mazière
235c985901 [BridgeAbstract] replace getCacheDuration method by CACHE_TIMEOUT class constant
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-09-25 17:04:28 +02:00
sysadminstory
41540e24ef Update AllocineFRBridge.php 2016-09-25 12:31:58 +02:00
sysadminstory
69d30ad125 Fix URL & Change to the lastest Season
The leading slash was missing for the Bridge URL (URL where therefore malformed)
Changed the URL to get the lastest for 'Faux Raccord' and 'Top 5'
2016-09-25 12:28:01 +02:00
sysadminstory
c5831e384f Merge pull request #2 from RSS-Bridge/master
Update from base
2016-09-25 12:21:27 +02:00
LogMANOriginal
ad534444fa Merge pull request #407 from sysadminstory/leboncoin-toute-la-france
Allow "Toute la France" as a "Région"
2016-09-24 19:24:16 +02:00
logmanoriginal
43aeb61a7b Merge branch 'fixIndividualBridges' of https://framagit.org/peetah/rss-bridge 2016-09-23 19:44:06 +02:00