Commit Graph

45 Commits

Author SHA1 Message Date
wn_ 90e7bf7cc3 Update all UrlHelper::fetch() calls to use the associative array approach.
The other approach (passing in individual params) was marked as deprecated a few years ago.
2023-12-30 15:39:17 +00:00
Andrew Dolgov d373b7b452
* bring back cache-busting for feed icons based on timestamp
* DiskCache: use singleton pattern to create less cache object instances
 * DiskCache: implement ETag
2022-12-19 21:36:50 +03:00
Eduardo M KALINOWSKI fdd1831c5d Fix af_comics for explosm after site changes 2022-03-28 12:32:30 -03:00
Andrew Dolgov 57b0413a3a af_comics: add Powerup Comics and Danby Draws 2021-12-06 08:14:29 +03:00
Andrew Dolgov b2952843f5 * DiskCache: add download() helper
* Af_Comics_Gocomics_FarSide: cache linked images because it seems to
be required anyway
2021-11-15 23:22:21 +03:00
wn_ 109b702ed0 Minor fix to DOMNodeList#item() potential type (null vs false) 2021-11-15 12:24:38 +00:00
Andrew Dolgov aa924d9ee7 deal with several DOMElement-related errors 2021-11-15 08:26:02 +03:00
Andrew Dolgov d17b79311e set missing annotations in af_comics 2021-11-14 20:33:37 +03:00
Andrew Dolgov c8883d3440 af_comics filters: don't try to load empty html 2021-03-05 10:07:34 +03:00
Andrew Dolgov 320503dd39 move version-related stuff to Config; fix conditional feed requests 2021-03-01 13:43:37 +03:00
Andrew Dolgov afc7142250 move all $fetch globals to UrlHelper 2021-02-28 10:12:57 +03:00
Andrew Dolgov 020f062a76 feeds: unify naming 2021-02-15 15:43:07 +03:00
Andrew Dolgov 74568df4ff remove a lot of stuff from global context (functions.php), add a few helper classes instead 2020-09-22 09:04:33 +03:00
Andrew Dolgov a4525d31b2 replace FALSE with false so that static analyzer shuts up about it 2020-09-17 19:02:27 +03:00
Andrew Dolgov 1f2a721905 allow overriding built-in templates via templates.local 2020-03-13 14:40:35 +03:00
Andrew Dolgov 96fa6e3002 af_comics: split contents of subscribe/basic_info/fetch hooks into appropriate per-comic filters 2020-02-27 12:15:56 +03:00
Andrew Dolgov ffa3f9309f af_comics: support buni webtoon episodes 2019-11-18 19:00:08 +03:00
Andrew Dolgov b68ee9adf4 af_comics: add Stonetoss 2018-12-07 12:02:38 +03:00
Andrew Dolgov c10a43069e debug logging system rework:
* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
2018-11-30 08:34:29 +03:00
Andrew Dolgov e0dff9134b af_comics: nedroid broke their rss feed, might as well plug them into generic comicpress filter 2018-04-26 11:46:56 +03:00
wn_ f3774b9d65 Use 'saveHTML' when generating HTML from a DOMDocument.
This primarily occurs when modifying article content.  If 'saveXML' is
used following 'loadHTML' there is the possibility of strangeness, such
as a self-closing anchor tag.

Note that the DOMDocument used in 'classes/feeditem/atom.php' came from
'loadXML', but we use 'saveHTML' since we're returning HTML content.
2017-09-09 13:51:59 -05:00
Andrew Dolgov 6f398dcfc6 af_comics updates:
1. move preferences to Feeds tab
2. update CAD comic with support for sillies
3. add support for loading updated/third-party filters from filters.local (would override bundled filters)
2017-06-05 12:53:06 +03:00
Andrew Dolgov 1d61994776 fix dilbert plugin not working because of changed GUIDs or w/e 2017-06-05 10:28:59 +03:00
aeritir ea8d0fd571 af_comics_dilbert: More details (title, tags, transcript) 2017-06-04 19:55:04 +02:00
Andrew Dolgov 21ce7d9ec0 update phpmd ruleset to use (subset) of cleancode
fix various minor issues reported by static analysis
remove redundant php closing tag from several more files
2017-04-26 20:57:36 +03:00
Bill Bagdon 32024bdf21 Fix the TFD filter and add Married to the sea 2017-04-08 12:59:03 -04:00
JustAMacUser 5800d3d505 Update af_comics to handle new GoComics site. 2017-01-22 02:14:02 -05:00
Andrew Dolgov 73963a21b2 af_comics: fix for whomp 2015-09-21 12:25:04 +03:00
Andrew Dolgov 610914d4d6 af_comics: add pvponline 2015-08-14 08:51:53 +03:00
Andrew Dolgov 5613bb3584 fix toothpastefordinner valiant efforts to prevent scraping 2015-06-18 08:28:54 +03:00
Andrew Dolgov 7624aa6e40 add a generic af_comics filter for .comic class sites (much like comicpress handles id comic, i guess) 2015-06-12 12:19:50 +03:00
Andrew Dolgov 1929149661 Revert "Add support for sillies"
idiot submitter breaks all embedding with his genius strategy of
handling all posts with now News: in title

This reverts commit a3013adedd.
2015-05-15 09:31:02 +03:00
aliz27 a3013adedd Add support for sillies 2015-05-13 18:19:32 +02:00
Andrew Dolgov b1bb951fb8 fix for yet another dilbert changes 2015-01-15 09:23:45 +03:00
Andrew Dolgov 945ecd7db6 fix explosm comics plugin 2014-12-12 12:23:33 +03:00
Andrew Dolgov 9fd581336e fetch_file_contents: support retarded schema-less urls
af_comics_dilbert: fix for new dilbert.com shenanigans
2014-12-03 22:43:25 +03:00
Andrew Dolgov 2681f684c7 af_comics_pa: check node exists before trying to manipulate it 2014-12-03 18:06:22 +03:00
Andrew Dolgov 110ce72a72 add af_comics filter for toothpastefordinner 2014-10-21 16:53:17 +04:00
Andrew Dolgov 129d626354 plugins: remove obsolete plugin_data/stored stuff 2014-08-18 18:41:19 +04:00
Andrew Dolgov 694f96abb6 add af_comics_darklegacy 2014-08-12 19:36:57 +04:00
Andrew Dolgov 9203929c28 af_comics_gocomics: fix indenting 2014-08-08 11:10:52 +04:00
mcbyte-it d35bd9a233 fix zoomed version
Fixed the gocomics filter to get the zoomed version of the comic
2014-08-06 20:13:01 +02:00
Andrew Dolgov 66c6f91c14 af_comics: add extra fabulous comics 2014-06-16 12:24:51 +04:00
Andrew Dolgov 98c7f6299a af_comics_cad: do not process news posts 2014-04-02 05:17:02 +00:00
Andrew Dolgov 901dd67a1a af_comics: split filters to separate files to ease maintenance 2014-02-17 13:00:25 +04:00