aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
Commit message (Collapse)AuthorAgeFilesLines
* Fallback to default solution if Imagick failsJeremy Benoist2019-05-101-4/+9
|
* Use Imagick to keep GIF animationJeremy Benoist2019-05-101-1/+10
| | | | | If Imagick is available, GIF will be saved using it to keep animation. Otherwise the previous method will be used and the animation won't be kept.
* Changed RSS to Atom feed and improve pagingThomas Citharel2019-04-251-1/+1
|
* Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-04-012-15/+16
|\
| * Merge pull request #3909 from wallabag/fix/html-not-definedJérémy Benoist2019-03-181-7/+6
| |\ | | | | | | Fix PHP warning
| | * Fix PHP warningJeremy Benoist2019-03-181-7/+6
| | | | | | | | | | | | Looks like sometimes (usually from import) the `html` key isn’t available.
| * | epub: fix exception when articles have the same titleKevin Decherf2019-03-171-1/+1
| |/ | | | | | | | | | | | | | | | | | | This commit fixes an exception occuring when exporting as epub several articles with the same title. The chapter filename is now derived from title and url. Fixes #3642 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
| * epub export: fix missing cover image, only for exports of one articleKevin Decherf2019-02-181-7/+9
| | | | | | | | | | | | Fixes #3602 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
| * CSJeremy Benoist2019-02-111-1/+1
| |
* | Enable PHPStanJeremy Benoist2019-01-181-0/+1
| | | | | | | | | | - Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
* | CSJeremy Benoist2019-01-151-1/+1
|/
* EntriesExport: avoid else on $authorsKevin Decherf2019-01-091-4/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: sanitize filename and fix testsKevin Decherf2019-01-081-10/+18
| | | | | | | | Filename will now only use a-zA-Z0-9-' and space. Fixes remaining filename issue on #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/pdf: move notice to the end, add metadata coverKevin Decherf2019-01-071-8/+25
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: add metadata to each entry's coverKevin Decherf2019-01-071-1/+16
| | | | | | | | | | | | | Add metadata to the cover of each entry: - Publishers - Estimated reading time - Date of creation ("Added on") - Address (URL) Related to #2821 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: change authors and title when not single entry exportKevin Decherf2019-01-071-1/+1
| | | | | | | | | | Change '{method} authors' (which gives 'Tag_entries authors' when exporting a tag) to 'Various authors'. When exporting a tag (tag_entries), change the title from 'Tag_entries articles' to 'Tag {tag} articles'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: revert c779373f, move exportinfo to the end of the bookKevin Decherf2019-01-071-1/+3
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: use sha1 sums for filenames, fix and rename title chaptersKevin Decherf2019-01-071-6/+6
| | | | | | | | This commit renames entry chapters file using a sha1 sum of their title for simplicity. Also we fix the 'Title' chapter duplicate issue by using the hash of the related entry and the suffix '_title'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: remove TOC pageKevin Decherf2019-01-071-2/+0
| | | | | | | | | This change only remove the rendered page of the TOC at the end of the book, the TOC remains available to readers. Fixes #3603 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: replace epub identifier with unique urnKevin Decherf2019-01-061-2/+8
| | | | | | | | | | | | | | We replace the title used as the unique identifier of the epub file with a urn following the format: urn:wallabag:{sha1("wallabagUrl:listOfEntryIdsSeparatedByComma")} This format is repeatable: it always gives the same uid for the same list of entries. Fixes #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* phpcsKevin Decherf2018-10-241-1/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: remove 'query string' case from ignore listKevin Decherf2018-10-241-2/+0
| | | | | | | Two urls with a different query string may refer to two different pages so keep them both. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: add comment blocks for the parse_url diff checkKevin Decherf2018-10-241-0/+23
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: rewrite some if, resolving feedbacks from PRKevin Decherf2018-10-241-32/+35
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ignoreOriginUrl: add initial support of ignore listsKevin Decherf2018-10-221-20/+59
| | | | | | | | | | | Add the ability to specify hosts and patterns lists to ignore the given entry url and replace it with the fetched content url without touching to origin_url. This initial support should be reworked in the following months to move the hardcoded ignore lists in the database. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: add behavior when diff is fragment and queryKevin Decherf2018-10-221-0/+1
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Refactor updateOriginUrl to include new behaviors behaviorsKevin Decherf2018-10-221-9/+45
| | | | | | | | - Leave origin_url unchanged if difference is an ending slash - Leave origin_url unchanged if difference is scheme - Ignore (noop) if difference is query string or fragment Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ContentProxy: swap entry url to origin_url and set new url according to ↵Kevin Decherf2018-10-211-4/+11
| | | | | | | | graby content Closes #3529 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ContentProxy: fix a corner case when entry.url is empty in updateEntryKevin Decherf2018-10-211-0/+8
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Run php-cs-fixer for fixing coding standard issuesTobi8232018-09-231-41/+53
|
* Override the value of the given parameter ($title) with the (hopefully)Tobi8232018-09-211-2/+1
| | | | correct (to UTF-8) converted PDF title
* Add tests for logicTobi8232018-09-211-2/+2
| | | | Try to translate the title of a PDF from UTF-8 (then UTF-16BE, then WINDOWS-1252) to UTF-8
* Try to detect the character encoding in PDFs and try to translateTobi8232018-09-211-13/+33
| | | | the title from the PDF to UTF-8
* Remove type declaration for PHP 5 compatibilityTobi8232018-09-211-1/+1
|
* Bugfix: Sanitize the title of a saved webpage from invalid UTF-8 charactersTobi8232018-09-211-0/+23
|
* php-cs-fixerKevin Decherf2018-09-057-13/+13
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* More robust srcset image attribute handlingSimounet2018-07-121-3/+8
| | | | Linked to HTMLawed PR https://github.com/kesar/HTMLawed/pull/17
* Fix image downloading on null image pathSimounet2018-07-051-0/+4
|
* Fix srcset attribute on images downloadedSimounet2018-06-011-3/+33
|
* Fix empty title and domain_name when exception is thrown during fetchKevin Decherf2017-12-131-4/+33
| | | | | | | | | | Add a new helper to set a default title when it's empty: 1/ use basename part of entry's path, if any 2/ or use domain name Fixes #2053 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Define storeArticleHeaders false by defaultJeremy Benoist2017-11-211-1/+1
| | | | | Fix tests which must use `$storeArticleHeaders`. Fix CS
* Added internal setting to enable/disable headers storageNicolas Lœuillet2017-11-201-2/+4
|
* Properly run php-cs-fixerJeremy Benoist2017-10-281-23/+23
|
* php-cs-fixerMartin Trigaux2017-10-281-24/+24
| | | | php bin/php-cs-fixer fix src/Wallabag/CoreBundle/Helper/EntriesExport.php
* Set the title in a separated chapterMartin Trigaux2017-10-281-5/+4
| | | | | Set the export option on the same page, same as done in producePdf Move the ToC at the end of the book so the title page is the first one
* add a title pageMartin Trigaux2017-10-281-1/+2
| | | | The first page of the book is the title
* CSJeremy Benoist2017-10-111-3/+3
|
* Fixed @j0k3r's reviewNicolas Lœuillet2017-10-111-0/+1
|
* Fixed @tcitworld's reviewNicolas Lœuillet2017-10-111-6/+2
|
* Translated first page of exported articleNicolas Lœuillet2017-10-111-2/+7
|