Commit Graph

78 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
wn_ 3487c922b3 Replace use of 'array_merge' with the spread operator and 'array_push' in various places.
This isn't supported for arrays with string keys until PHP 8.1.

https://wiki.php.net/rfc/spread_operator_for_array
2022-08-12 17:58:38 +00: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 01b39d985c deal with the rest of warnings in plugin.php 2021-11-14 18:00:03 +03:00
Andrew Dolgov 87a30d88d3 plugin cleanup re: phpstan 1.0 warnings 2021-11-10 20:58:40 +03:00
Andrew Dolgov dd30825b94 af_comics: pass PluginHost to filter constructors 2021-10-18 07:41:24 +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 20a844085f hide version for bundled plugins because it's meaningless; for everything else support showing version using git (if about[0] is null) 2021-03-01 12:11:42 +03:00
Andrew Dolgov afc7142250 move all $fetch globals to UrlHelper 2021-02-28 10:12:57 +03:00
Andrew Dolgov 9ac6741d24 af_comics: markup cleanup 2021-02-17 12:25:33 +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 ba7f7e72db af_comics: mention that Far Side needs cached media 2020-02-27 11:44:18 +03:00
Andrew Dolgov 61168847ac af_comics: escape all template urls 2020-02-27 10:25:00 +03:00
Andrew Dolgov 3b62150abd use canonical fetch url for Far Side 2020-02-27 10:24:12 +03:00
Andrew Dolgov db8a1f76c7 remove unnecessary debugging from previous 2020-02-27 10:20:16 +03:00
Andrew Dolgov 9b4053b1ea af_comics: add experimental support for The Far Side 2020-02-27 10:19:09 +03:00
Andrew Dolgov 72d0fac80c remove version.php and VERSION global constant, do version-related things in a slightly less ridiculous way 2019-12-18 14:27:40 +03:00
Andrew Dolgov ffa3f9309f af_comics: support buni webtoon episodes 2019-11-18 19:00:08 +03:00
JustAMacUser 8459238f6c af_comics: Use a fixed time of day when generating fake feed for GoComics. Without this the timestamp is always updated to be the time the feed is fetched, which causes the comics to keep moving to the top/bottom of the article list depending on the sort order. (Using 11:00 a.m. UTC as that should keep the date the same across the majority of time zones.)
Try to get the actual title for GoComics comics.

Also a little code clean up.
2019-10-06 16:19:21 -04:00
Rodney Stromlund 7daf009a7f Add set_basic_feed_info hook to af_comics to fix GoComics title and url. 2019-03-12 12:16:24 -05:00
Andrew Dolgov a68b150601 remove separate classes for various panels, unify under .panel
remove a few other unnecessary css classes/ids
2018-12-07 14:03:33 +03:00
Andrew Dolgov b68ee9adf4 af_comics: add Stonetoss 2018-12-07 12:02:38 +03:00
Andrew Dolgov 814e49f8f7 add icons to accordion panels in preferences
fix typo in pref-prefs closing panel tag
2018-12-06 08:56:28 +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 de1b9acba1 af_comics: simplify srcset attribute handling for gocomics pseudo-feeds 2018-08-31 08:33:36 +03:00
JustAMacUser aedcbfd9c5 af_comics: Go Comics now uses HTTPS. 2018-05-12 13:31:52 -04: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
JustAMacUser 3f5f5bc73f af_comics: Fix typo -- call to undefined method. 2018-02-11 07:01:29 +00:00
Dave Z d92fcaa9c8 af_comics: Workaround for GoComics' lazy loading images in srcset. 2018-02-07 16:57:32 +00:00
Dave Z fc756975ab af_comics: Allow subscribing to GoComics URLs via page (only this time, *actually allow* it). 2018-02-07 06:52:36 +00:00
Andrew Dolgov e038374608 gocomics: remove width attribute to fix improper scaling of images 2018-01-27 09:50:49 +03:00
JustAMacUser d1d05f7a12 Updated af_comics GoComics handling to support comics with numbers and use the main web URL as a feed URL (legacy FeedBurner URL support still exists). 2017-11-16 12:14:20 -05: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 b0113adac4 af_comics: add .gitignore 2017-06-05 13:10:02 +03: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