94 Commits

Author SHA1 Message Date
vjkcxl
c914d0710f Fix Danby Draws 2025-09-02 11:15:21 -05:00
vjkcxl
17bd835530 Revert whitespace changes 2025-09-02 10:59:59 -05:00
vjkcxl
17c6d7af8d Hopefully fix PHPStan 2025-09-01 14:42:00 -05:00
vjkcxl
6c0bcd90ed Try to add types 2025-09-01 14:32:23 -05:00
vjkcxl
efe6fbd3fa Update ComicPress logic
This updates the logic to work across a variety of additional sites.
Additionally, it grabs the author's comments from comics, such as the text on Buttersafe.

This does not update the list of supported comics.
There are too many comic sites to enumerate all of them anyway.
2025-09-01 14:06:10 -05:00
Andrew Dolgov
aa58ab1ce0 drop gocomics and other inactive af_comics filters - third time the charm 2025-05-17 08:03:09 +03:00
Andrew Dolgov
2e50f96901 Revert "drop gocomics and other inactive af_comics filters"
This reverts commit 5f064b4477.
2025-05-17 08:02:42 +03:00
Andrew Dolgov
5f064b4477 drop gocomics and other inactive af_comics filters 2025-05-17 08:00:04 +03:00
Andrew Dolgov
a931b91099 af_comics - fix penny arcade to new markup 2025-05-17 07:57:39 +03:00
wn_
7cef3a5ac2 Use the correct suffix for GoComics permalinks. 2025-04-04 17:40:24 +00:00
wn_
c4788023a4 Handle changes to GoComics. 2025-04-04 17:33:05 +00:00
Nathan Neulinger
ebe080dfe4 Add processing of dumbingofage.com images 2025-01-05 12:27:37 -06:00
Andrew Dolgov
3dd71e41a1 also deal with The Oatmeal posts, not just comics 2024-11-26 20:15:34 +03:00
Andrew Dolgov
b045da0e5e add af_comics filter for The Oatmeal 2024-11-26 20:08:44 +03:00
wn_
667528d5b9 Use PHP 8 'str_' functions.
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +00:00
Andrew Dolgov
eb841b761c af_comics - fix for Danby Draws and maybe other similar wodpress-based sites 2024-11-01 10:59:57 +03:00
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