af_comics_cad: do not process news posts

This commit is contained in:
Andrew Dolgov 2014-04-02 05:17:02 +00:00
parent 463bcb7769
commit 98c7f6299a

View file

@ -9,7 +9,7 @@ class Af_Comics_Cad extends Af_ComicFilter {
$owner_uid = $article["owner_uid"]; $owner_uid = $article["owner_uid"];
if (strpos($article["link"], "cad-comic.com/cad/") !== FALSE) { if (strpos($article["link"], "cad-comic.com/cad/") !== FALSE) {
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) { if (strpos($article["title"], "News:") === FALSE && strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
$doc = new DOMDocument(); $doc = new DOMDocument();
@$doc->loadHTML(fetch_file_contents($article["link"])); @$doc->loadHTML(fetch_file_contents($article["link"]));