From 0d0f32d1086d3e679fb0efc256a5f9a60f399266 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 24 Nov 2020 13:13:30 -0500 Subject: [PATCH] Hotfix: update ad filter for portugese config --- app/utils/filter_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/filter_utils.py b/app/utils/filter_utils.py index 7f9e9a5..c8f2447 100644 --- a/app/utils/filter_utils.py +++ b/app/utils/filter_utils.py @@ -13,7 +13,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAD0lEQVR42m BLACKLIST = [ 'ad', 'anuncio', 'annuncio', 'annonce', 'Anzeige', '广告', '廣告', 'Reklama', 'Реклама', 'Anunț', '광고', 'annons', 'Annonse', 'Iklan', '広告', 'Augl.', 'Mainos', 'Advertentie', 'إعلان', 'Գովազդ', 'विज्ञापन', 'Reklam', - 'آگهی', 'Reklāma', 'Reklaam', 'Διαφήμιση', 'מודעה', 'Hirdetés' + 'آگهی', 'Reklāma', 'Reklaam', 'Διαφήμιση', 'מודעה', 'Hirdetés', 'Anúncio' ] SITE_ALTS = { @@ -76,4 +76,4 @@ def gen_nojs(sibling): nojs_link['style'] = 'display:block;width:100%;' nojs_link.string = 'NoJS Link: ' + nojs_link['href'] sibling.append(BeautifulSoup('


', 'html.parser')) - sibling.append(nojs_link) \ No newline at end of file + sibling.append(nojs_link)