Commit Graph

27 Commits

Author SHA1 Message Date
Benjamin Brahmer b99320dd4a
Check available compression types of curl (#2328)
Check an use available compression types of curl
use compression when downloading feed logo

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-25 09:37:29 +02:00
Mynacol 48e1ad1583 Use HTTP compression for downloads
As long as we use Feed-io < 6, we always use Guzzle (with Feed-io 6, we
need to choose a [HTTPlug](https://httplug.io/) library ourselves). Guzzle
[supports](https://docs.guzzlephp.org/en/stable/request-options.html#decode-content)
transparently decompressing gzip or deflate compressed responses, which is enabled by default.

Feed-io does this [by default](ffef9eaabe),
but as we override the headers, we have to add a fitting `Accept-Encoding` header as well.

Previously, my feed collection caused up to 45.9 MB download traffic per cronjob,
with this commit it is as low as 23.6 MB.

Signed-off-by: Mynacol <Mynacol@users.noreply.github.com>
2023-06-22 11:31:42 +02:00
Sean Molenaar 469807a091 Chore: implement removals from #935
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-06-01 11:23:04 +02:00
Sean Molenaar 2baa7a2b91 Make PHPstan stricter
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-25 18:47:38 +01:00
Sean Molenaar 67b6c4e1b0 Fix psalm issues
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-12 13:29:08 +01:00
Benjamin Brahmer 7180e11bdb fixes done by psalm
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-01-08 22:45:10 +01:00
Benjamin Brahmer f7a3581f45 remove loggerParams
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-10-03 14:01:36 +02:00
Sean Molenaar 167dc70238 Fix various 15.0 bugs
Issue #821,#820,#819

Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-03 14:01:36 +02:00
Sean Molenaar 35b53ecd40 OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 14:56:07 +02:00
Sean Molenaar bc01761221 Fix repair step and test it
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 13:02:03 +02:00
Sean Molenaar 60ab4941cc Move to nextcloud config and update phpunit
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-25 19:18:04 +02:00
Benjamin Brahmer 3a62ffbe88 run phpcbf
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-09-17 10:23:43 +02:00
Benjamin Brahmer 9bb6bf691c Fix UpdateInteval not being saved to config
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-09-02 08:31:10 +02:00
Benjamin Brahmer 4ebc906fef Update to new BackgroudJob logic
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-08-14 18:22:57 +02:00
Carlos Silva 6c01164b9b Add the 'Accept' header to the request (#525)
* Add the 'Accept' header to the request

Some firewalls block requests without the Accept header on the HTTP(s) request as seen on issue #517,
so, just add the header to all requests and say we accept anything.

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>

* Use a more detailed Accept Header

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>

* Split up long line

Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>
2019-08-16 07:14:20 +02:00
Sean Molenaar 9b915e24af Use a copy of the FeedIO client that doesn't specify a useragent 2019-03-18 10:39:32 +01:00
Sean Molenaar 6ed63bdedd Set nextcloud user agent 2019-03-18 10:39:32 +01:00
Sean Molenaar 2698214c41 fix/allow CDATA encoding (#428) 2019-03-17 08:23:37 +01:00
Simon Gilliot 67799e07b8 #413 DateTime::createFromFormat() 2019-03-11 08:33:14 +01:00
Sean Molenaar a3246a927d
Parser: Switch to feedIO for parsing instead of picoFeed 2019-01-30 20:36:40 +01:00
Sean Molenaar becce6b752 Define an official codestyle and adhere to it. 2018-12-14 07:54:43 +01:00
Sean Molenaar 5b94705cf3 Core: Fix compatibility with nextcloud codestyle (#280) 2018-03-27 15:35:06 +02:00
Bernhard Posselt 53822bb4bc add new apis 2017-05-13 21:35:17 +02:00
Robin Appelman 547b977c49 use non depricated public api to register background job (#59) 2016-11-25 09:57:35 +01:00
Bernhard Posselt 38e657a5d5 removing owncloud references and updating links 2016-07-23 22:02:21 +02:00
Bernhard Posselt 7a3a22bd27 Adjust copyright header 2016-07-23 21:32:42 +02:00
Bernhard Posselt 004fcbbcc7 Move to new directory structure 2016-07-23 21:24:54 +02:00