From: JustAMacUser Date: Thu, 16 Nov 2017 17:14:20 +0000 (-0500) Subject: Updated af_comics GoComics handling to support comics with numbers and use the main... X-Git-Tag: 17.12~112^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d1d05f7a12e3f044e76aefae9e2847e224469baf;p=tt-rss.git 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). --- diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 6bd3c23e..54054399 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -65,7 +65,7 @@ class Af_Comics extends Plugin { } print ""; - print "

".__('GoComics requires a specific URL to workaround their lack of feed support: http://feeds.feedburner.com/uclick/comic_name (e.g. http://www.gocomics.com/garfield uses http://feeds.feedburner.com/uclick/garfield).')."

"; + print "

".__("To subscribe to GoComics use the comic's regular web page as the feed URL (e.g. for the Garfield comic use http://www.gocomics.com/garfield).")."

"; print "

".__('Drop any updated filters into filters.local in plugin directory.')."

"; @@ -89,7 +89,7 @@ class Af_Comics extends Plugin { if ($auth_login || $auth_pass) return $feed_data; - if (preg_match('#^https?://feeds.feedburner.com/uclick/([-a-z]+)#', $fetch_url, $comic)) { + if (preg_match('#^https?://(?:feeds\.feedburner\.com/uclick|www\.gocomics\.com)/([-a-z0-9]+)$#i', $fetch_url, $comic)) { $site_url = 'http://www.gocomics.com/' . $comic[1]; $article_link = $site_url . date('/Y/m/d');