Merge branch 'more-af-comics' into 'master'

Support hyphens in GoComics URLs.



See merge request !44
This commit is contained in:
Andrew Dolgov 2017-01-24 23:08:21 +03:00
commit e3cdbd87bc
1 changed files with 1 additions and 1 deletions

View File

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