Dag
97808abca1
refactor: rename rssbridge.php to bootstrap.php ( #2987 )
...
Fix #2986
2022-08-27 23:01:06 +02:00
Korytov Pavel
1ca4dd69f7
[InstituteForTheStudyOfWarBridge] Do not put HTML tags into title ( #2985 )
2022-08-25 19:48:16 +02:00
Korytov Pavel
c079dbb521
[InstituteForTheStudyOfWarBridge] Add bridge ( #2984 )
2022-08-25 19:22:19 +02:00
Eugene Molotov
43ad54dba0
[PikabuBridge] Skip sponsored posts ( #2983 )
...
* [PikabuBridge] Skip sponsored posts
Sponsored posts appear very rarely in html code.
But when they appear, they always have different url that results junk feed.
One of the example is [1]. After visiting it, you will be redirected to [2] that is marked as
"Партнёрский материал" in Russian, or "Sponsored post" in English.
[1] https://pikabu.ru/story/a_mla_posa_m_memu_seyla_otorathche_idomikhlenonoikhmyav_sseyla_otoratazoed__9388770?from=cpm
[2] https://pikabu.ru/story/kakim_dolzhen_byit_vash_noutbuk_9388770
* lint
Co-authored-by: Dag <me@dvikan.no>
2022-08-25 18:09:06 +02:00
Eugene Molotov
fd0d5350be
[RutubeBridge] Include timestamp and author in feed ( #2982 )
2022-08-24 14:49:54 +02:00
Dag
5165ea265d
fix: case-insensitive config from env, fix #2935 ( #2973 )
...
* refactor
* fix: case-sensitive config from env, fix #2935
* lowercase all config section and keys
* test: add test for case-insensitivity
2022-08-23 21:19:53 +02:00
Bocki
edbafc6144
[Teefury] Fix occasional problem ( #2974 )
2022-08-20 21:11:27 +02:00
Dag
0de1694371
refactor: extract index.php to RssBridge.php ( #2961 )
...
* refactor: extract entry point into class
* refactor: js
* refactor: extract frontpage action
2022-08-18 22:52:01 +02:00
Christian Schabesberger
372eccd7b2
[Nordbayern] Update regions ( #2966 )
2022-08-13 19:41:05 +02:00
Bocki
e99cbf21b2
[DailyShirts] Add daily shirt sites ( #2962 )
2022-08-12 14:51:38 +02:00
Miika Launiainen
08c1f55f4a
Created Hanime bridge ( #2958 )
...
* Created Hanime bridge
* Moved cover image from enclosures to content as dvikan suggested
2022-08-10 23:46:17 +02:00
Dag
6253538342
docs: revamp README ( #2954 )
2022-08-06 23:22:50 +02:00
Dag
502799a74c
feat: use bridge description and short name in search ( #2952 )
...
* refactor: search.js
* feat: use bridge description and short name in search
* fix bug in previous merge commit
Also reformat string from tabs to spaces
2022-08-06 23:12:30 +02:00
Dag
eef45d4e8d
fix: TypeError (0): setlocale(): Argument #1 ($category) must be of type int, string given ( #2951 )
...
This was upgraded from a warning to an error in php 8.
2022-08-06 22:46:49 +02:00
Dag
2bbce8ebef
refactor: general code base refactor ( #2950 )
...
* refactor
* fix: bug in previous refactor
* chore: exclude phpcompat sniff due to bug in phpcompat
* fix: do not leak absolute paths
* refactor/fix: batch extensions checking, fix DOS issue
2022-08-06 22:46:28 +02:00
Dag
b042412416
fix: force HTTP 1.1 in curl requests ( #2949 )
...
Since curl 7.62.0 the default option is: CURL_HTTP_VERSION_2TLS
Before that the default used to be: CURL_HTTP_VERSION_1_1
Fix #2947
2022-08-05 11:46:32 +02:00
Eugene Molotov
205f0a7239
[RutubeBridge] Fix regex for retreiving reduxState ( #2955 )
...
Before this commit regex captured window.reduxState value until first semicolon.
This is incorrect since it produces invalid json, if semicolon is
also somethere in the middle of stringified json.
After this commit regex will capture window.reduxState value until last semicolon.
2022-08-05 11:45:50 +02:00
Dag
3984427f44
feat: include os and php version in github issue body ( #2948 )
2022-08-03 17:05:13 +02:00
Dag
ecb486794b
refactor: use static values for cache scope
...
This fixes a future problem when code is placed under a namespace because `get_class($bridge)` will then return e.g. `RssBridge\Bridge\TwitterBridge` instead of the the current value `TwitterBridge`.
Also a bit refactoring of `Configuration.php`.
2022-08-02 15:03:54 +02:00
Loïc Fürhoff
a0a0d5235b
Remove MAINTAINER ( #2946 )
2022-07-31 21:42:40 +02:00
Dag
afcc38786e
fix: use default headers in getContents() ( #2927 )
2022-07-31 04:21:56 +02:00
Dag
cd0ca7f645
fix: change default curl user agent ( #2926 )
2022-07-31 03:58:07 +02:00
Dag
0a060b2ad6
[Gab] feat: add new bridge GabBridge ( #2920 )
2022-07-31 03:52:27 +02:00
Jan Tojnar
5b5f3b4254
Do not use constants for configuration ( #2938 )
...
* docs: Do not use constant names when referring to config options
The options are customizable using a config file and no longer hardcoded in index.php since 8ac8e08abf
* Do not use constants for configuration
Since <8ac8e08abf
>, they are just set to the configuration object values.
2022-07-24 19:26:12 +02:00
Dawid Wróbel
499d5c2b77
[Amazon & AmazonPriceTracker] Add Poland ( #2930 )
2022-07-21 20:41:15 +02:00
llamasblade
2c63d5707d
[HytaleBridge] Improve bridge performance ( #2928 )
2022-07-21 20:33:00 +02:00
llamasblade
9b0f8095c2
[YandexZenBridge] Fix feed title if username not specified ( #2922 )
2022-07-13 12:08:11 +02:00
llamasblade
1294d3b953
[YandexZenBridge] Add bridge ( #2921 )
2022-07-13 01:08:05 +02:00
llamasblade
64c8d4ad37
[HytaleBridge] Improve bridge contents ( #2912 )
...
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2022-07-10 21:06:41 +02:00
Dag
5e52ecc3f8
test: add new test for Configuration ( #2915 )
2022-07-10 20:05:27 +02:00
Dag
c33f84fcc2
fix: disallow non-strings in GET parameters ( #2908 )
2022-07-10 19:50:51 +02:00
Dag
003ab58514
[FurAffinity] fix: errror ( #2887 )
...
They changed parts of the dom.
Fix error:
Error: Call to a member function find() on null
Fixes #2868
2022-07-10 19:48:37 +02:00
Loïc Fürhoff
87f8571ccf
[Mailman2] Add bridge ( #2877 )
2022-07-10 19:40:03 +02:00
floviolleau
f1319f5b2b
[PanneauPocket] add new bridge ( #2823 )
2022-07-10 19:36:01 +02:00
Dag
40dc0a2e5f
[Euronews] fix: use correct url ( #2916 )
...
The non-www domain has a tls config error.
2022-07-09 22:50:03 +02:00
Bocki
e89329b2c6
[core] Fix daux generation ( #2914 )
2022-07-09 20:33:07 +02:00
Jan Tojnar
e07a94d480
Normalize some method calls ( #2911 )
...
The methods were called as static even though they were not.
2022-07-09 08:13:07 +02:00
Dag
a966213cd7
refactor: inject the action params via its execute method ( #2907 )
2022-07-08 21:06:14 +02:00
Jan Tojnar
22c10941dc
docs: Update directory structure description ( #2906 )
...
- The css directory was moved in 1a4c3f4418
2022-07-08 21:00:32 +02:00
Dag
abc4af43b3
feat: improve error handling ( #2902 )
2022-07-08 20:39:13 +02:00
Dag
c992bcc8bf
[AssociatedPressNews] fix: prepend lead photo to items ( #2905 )
2022-07-08 18:42:45 +02:00
Jan Tojnar
f672902896
Add .git-blame-ignore-revs file ( #2903 )
...
This will ignore coding style change commits in GitHub’s blame UI.
Same thing can be achieved locally using either `git blame --ignore-revs-file .git-blame-ignore-revs`
or `git config blame.ignoreRevsFile .git-blame-ignore-revs`
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
2022-07-08 17:00:34 +02:00
Dag
abfc6b4633
feat: introduce template engine ( #2899 )
2022-07-08 14:17:25 +02:00
Jan Tojnar
951092eef3
Fix coding style missed by phpbcf ( #2901 )
...
$ composer require --dev friendsofphp/php-cs-fixer
$ echo >.php-cs-fixer.dist.php "<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$rules = [
'@PSR12' => true,
// '@PSR12:risky' => true,
'@PHP74Migration' => true,
// '@PHP74Migration:risky' => true,
// buggy, duplicates existing comment sometimes
'no_break_comment' => false,
'array_syntax' => true,
'lowercase_static_reference' => true,
'visibility_required' => false,
// Too much noise
'binary_operator_spaces' => false,
'heredoc_indentation' => false,
'trailing_comma_in_multiline' => false,
];
$config = new PhpCsFixer\Config();
return $config
->setRules($rules)
// ->setRiskyAllowed(true)
->setFinder($finder);
"
$ vendor/bin/php-cs-fixer --version
PHP CS Fixer 3.8.0 BerSzcz against war! by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.1.7
$ vendor/bin/php-cs-fixer fix
$ rm .php-cs-fixer.cache
$ vendor/bin/php-cs-fixer fix
2022-07-08 13:00:52 +02:00
Jan Tojnar
dbf8c5b7ae
refactor(BridgeFactory): make methods only accept valid class names ( #2897 )
...
This moves the responsibility for getting a valid class name
to the users of BridgeFactory, avoiding the repeated sanitation.
Improper use can also be checked statically.
2022-07-08 12:54:23 +02:00
sal0max
20bf2aa4fe
[ExplosmBridge] merge ExplosmBridge and CyanideAndHappinessBridge ( #2844 )
2022-07-08 00:23:29 +02:00
llamasblade
f887ce8f63
[HytaleBridge] Add bridge ( #2900 )
2022-07-07 15:12:35 +02:00
Tokariew
ea45717a28
[Instagram] fix: add ds_user_id ( #2881 )
...
Fix #2876
2022-07-07 12:08:21 +02:00
Jan Tojnar
d107f8ed30
Improve Factory variable names ( #2895 )
2022-07-06 12:14:04 +02:00
Bocki
e3dad86bca
[core] prtester fix for optgroups ( #2896 )
2022-07-06 11:26:53 +02:00