浏览代码

remove unwanted title text

Pablo Barrera Yaksic 2 月之前
父节点
当前提交
3879e1519b
共有 1 个文件被更改,包括 7 次插入9 次删除
  1. 7 9
      src/portales/portal.ts

+ 7 - 9
src/portales/portal.ts

@@ -53,15 +53,13 @@ export default class Portal {
           continue;
           continue;
         }
         }
 
 
-        if (this._name == "La Tercera") {
-          // To avoid publiposts (I'm lookint at you La Tercera >:-|)
-          if (article.link.includes("publirreportajes")) {
-            continue;
-          }
-
-          if (article.title.includes("Exclusivo suscriptor")) {
-            article.title = article.title.replace("Exclusivo suscriptor", "");
-          }
+        // To avoid publiposts (I'm lookint at you La Tercera >:-|)
+        if (article.link.includes("publirreportajes")) {
+          continue;
+        }
+
+        if (article.title.includes("Exclusivo suscriptor")) {
+          article.title = article.title.replace("Exclusivo suscriptor", "");
         }
         }
 
 
         // If the message is more than 400 characters long, its very likely due to the article.content
         // If the message is more than 400 characters long, its very likely due to the article.content