mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:55:56 +00:00
plugins: remove obsolete plugin_data/stored stuff
This commit is contained in:
@@ -9,7 +9,7 @@ class Af_Comics_Cad extends Af_ComicFilter {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "cad-comic.com/cad/") !== FALSE) {
|
||||
if (strpos($article["title"], "News:") === FALSE && strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
if (strpos($article["title"], "News:") === FALSE) {
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
@@ -22,12 +22,9 @@ class Af_Comics_Cad extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -16,8 +16,6 @@ class Af_Comics_ComicPress extends Af_ComicFilter {
|
||||
strpos($article["guid"], "happyjar.com") !== FALSE ||
|
||||
strpos($article["guid"], "csectioncomics.com") !== FALSE) {
|
||||
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
|
||||
// lol at people who block clients by user agent
|
||||
// oh noes my ad revenue Q_Q
|
||||
|
||||
@@ -36,12 +34,8 @@ class Af_Comics_ComicPress extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -9,9 +9,6 @@ class Af_Comics_DarkLegacy extends Af_ComicFilter {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["guid"], "darklegacycomics.com") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
|
||||
print "DLC!" . $article["link"] . "\n";
|
||||
|
||||
$res = fetch_file_contents($article["link"], false, false, false,
|
||||
false, false, 0,
|
||||
@@ -34,12 +31,8 @@ class Af_Comics_DarkLegacy extends Af_ComicFilter {
|
||||
if ($basenode) {
|
||||
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["guid"], "dilbert.com") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
|
||||
@@ -36,12 +35,8 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class Af_Comics_Explosm extends Af_ComicFilter {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "explosm.net/comics") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
@@ -33,12 +32,8 @@ class Af_Comics_Explosm extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class Af_Comics_GoComics extends Af_ComicFilter {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["guid"], "gocomics.com") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
|
||||
@@ -42,12 +41,8 @@ class Af_Comics_GoComics extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -6,10 +6,7 @@ class Af_Comics_Pa extends Af_ComicFilter {
|
||||
}
|
||||
|
||||
function process(&$article) {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
|
||||
if ($debug_enabled) {
|
||||
_debug("af_pennyarcade: Processing comic");
|
||||
@@ -26,18 +23,13 @@ class Af_Comics_Pa extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "News Post:") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
if ($debug_enabled) {
|
||||
_debug("af_pennyarcade: Processing news post");
|
||||
}
|
||||
@@ -73,12 +65,8 @@ class Af_Comics_Pa extends Af_ComicFilter {
|
||||
|
||||
if ($basenode){
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -6,10 +6,8 @@ class Af_Comics_Twp extends Af_ComicFilter {
|
||||
}
|
||||
|
||||
function process(&$article) {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
if (strpos($article["link"], "threewordphrase.com") !== FALSE) {
|
||||
if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML(fetch_file_contents($article["link"]));
|
||||
@@ -23,12 +21,8 @@ class Af_Comics_Twp extends Af_ComicFilter {
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
$article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
|
||||
}
|
||||
}
|
||||
} else if (isset($article["stored"]["content"])) {
|
||||
$article["content"] = $article["stored"]["content"];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user