From fb0a290127d7ce136829aeaa8a1eff339b70aa3f Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:14:22 +0100 Subject: [PATCH] remove duplicate class field definition (manual) ruff 'PIE794' --- pyproject.toml | 3 ++- recipes/afr.recipe | 1 - recipes/albert_mohler.recipe | 1 - recipes/altomdata_dk.recipe | 1 - recipes/aprospect.recipe | 2 -- recipes/arbetaren.recipe | 4 +--- recipes/berfreunde_blog.recipe | 1 - recipes/business_standard_print.recipe | 2 -- recipes/calcalist.recipe | 2 -- recipes/canardpc.recipe | 1 - recipes/cbn.recipe | 1 - recipes/christian_post.recipe | 1 - recipes/colta.recipe | 1 - recipes/den_of_geek.recipe | 1 - recipes/descopera.recipe | 2 -- recipes/desiring_god.recipe | 1 - recipes/deutsche_welle_de.recipe | 2 -- recipes/dobreprogamy.recipe | 6 +----- recipes/economist_search.recipe | 4 +--- recipes/el_colombiano.recipe | 6 ++++-- recipes/el_correo.recipe | 9 --------- recipes/eso_pl.recipe | 8 ++++---- recipes/fairbanks_daily.recipe | 1 - recipes/faz_net.recipe | 3 +-- recipes/gates_notes.recipe | 1 - recipes/glasgow_herald.recipe | 1 - recipes/hannoversche_zeitung.recipe | 3 +-- recipes/harpers.recipe | 1 - recipes/high_country_news.recipe | 4 +--- recipes/hna.recipe | 1 - recipes/in_gr.recipe | 1 - recipes/independent.recipe | 1 - recipes/independent_australia.recipe | 9 --------- recipes/inquirer_net.recipe | 3 --- recipes/jpost.recipe | 1 - recipes/kosmonauta_pl.recipe | 1 - recipes/le_monde.recipe | 1 - recipes/lwn.recipe | 1 - recipes/mateusz_czytania.recipe | 1 - recipes/modoros.recipe | 1 - recipes/myapple_pl.recipe | 1 - recipes/natgeo.recipe | 4 ++-- recipes/natgeo_kids.recipe | 4 ++-- recipes/natgeo_traveller.recipe | 4 ++-- recipes/natgeohis.recipe | 8 +++----- recipes/natgeomag.recipe | 4 ++-- recipes/nme.recipe | 1 - recipes/novinite_bg.recipe | 6 ++++-- recipes/nytimes_sports.recipe | 1 - recipes/optyczne_pl.recipe | 1 - recipes/orfonline.recipe | 1 - recipes/people_daily.recipe | 1 - recipes/ppe_pl.recipe | 1 - recipes/readers_digest.recipe | 1 - recipes/skai.recipe | 1 - recipes/theoldie.recipe | 2 +- recipes/usatoday.recipe | 1 - recipes/walla.recipe | 1 - recipes/woz_die.recipe | 8 +++++--- ruff-strict-pep8.toml | 3 ++- src/calibre/devices/mtp/driver.py | 1 - src/calibre/gui2/viewer/web_view.py | 2 -- 62 files changed, 39 insertions(+), 113 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fd908ac9d7..c6bc3082fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,8 @@ quote-style = 'single' [tool.ruff.lint] ignore = ['E402', 'E722', 'E741'] -select = ['E', 'F', 'I', 'W', 'INT'] +select = ['E', 'F', 'I', 'W', 'INT', 'PIE794'] +unfixable = ['PIE794'] [tool.ruff.lint.per-file-ignores] "src/calibre/ebooks/unihandecode/*codepoints.py" = ['E501'] diff --git a/recipes/afr.recipe b/recipes/afr.recipe index cbba5b9817..000d83f66a 100644 --- a/recipes/afr.recipe +++ b/recipes/afr.recipe @@ -25,7 +25,6 @@ class afr(BasicNewsRecipe): timefmt = ' [%d %b %Y]' max_articles_per_feed = 25 no_stylesheets = True - remove_empty_feeds = True remove_attributes = ['style', 'height', 'width'] keep_only_tags = [ diff --git a/recipes/albert_mohler.recipe b/recipes/albert_mohler.recipe index f92c54a9db..6babd67c0f 100644 --- a/recipes/albert_mohler.recipe +++ b/recipes/albert_mohler.recipe @@ -13,7 +13,6 @@ class AlbertMohlersBlog(BasicNewsRecipe): auto_cleanup = True cover_url = 'http://www.albertmohler.com/wp-content/themes/albert-mohler-v5/img/logo-am-lg.gif' publisher = 'Albert Mohler' - language = 'en' author = 'Albert Mohler' feeds = [(u"Albert Mohler's Blog", diff --git a/recipes/altomdata_dk.recipe b/recipes/altomdata_dk.recipe index 1f771e8d94..3dbdd41a0d 100644 --- a/recipes/altomdata_dk.recipe +++ b/recipes/altomdata_dk.recipe @@ -21,7 +21,6 @@ class WwwAltomdata_dk(BasicNewsRecipe): resolve_internal_links = True remove_empty_feeds = True auto_cleanup = True - language = 'da' feeds = [ ('Alt om DATA, Datatid TechLife', 'http://www.altomdata.dk/feed'), diff --git a/recipes/aprospect.recipe b/recipes/aprospect.recipe index de904a2dca..5de1cefe7d 100644 --- a/recipes/aprospect.recipe +++ b/recipes/aprospect.recipe @@ -19,8 +19,6 @@ class AmericanProspect(BasicNewsRecipe): use_embedded_content = False - no_stylesheets = True - keep_only_tags = [ dict(id=['title', 'content']), ] diff --git a/recipes/arbetaren.recipe b/recipes/arbetaren.recipe index e22ed5e23f..7e34597917 100644 --- a/recipes/arbetaren.recipe +++ b/recipes/arbetaren.recipe @@ -18,8 +18,6 @@ class Arbetaren_SE(BasicNewsRecipe): encoding = 'utf-8' language = 'sv' auto_cleanup = True - auto_cleanup_keep = '//div[@class="thumbnail"]' - auto_cleanup_keep = '//div[@id="article-image"]' - auto_cleanup_keep = '//div[@id="article-image"]|//span[@class="important"]' + auto_cleanup_keep = '//div[@class="thumbnail"]|//div[@id="article-image"]|//span[@class="important"]' feeds = [(u'Nyheter', u'https://www.arbetaren.se/feed')] diff --git a/recipes/berfreunde_blog.recipe b/recipes/berfreunde_blog.recipe index 997588ecd8..cebf908515 100644 --- a/recipes/berfreunde_blog.recipe +++ b/recipes/berfreunde_blog.recipe @@ -25,7 +25,6 @@ class bergfreunde_blog(BasicNewsRecipe): __author__ = 'VoHe' no_stylesheets = True remove_javascript = True - remove_javascript = True remove_empty_feeds = True ignore_duplicate_articles = {'title', 'url'} diff --git a/recipes/business_standard_print.recipe b/recipes/business_standard_print.recipe index eafe84282e..439284b28d 100644 --- a/recipes/business_standard_print.recipe +++ b/recipes/business_standard_print.recipe @@ -15,8 +15,6 @@ class BusinessStandardPrint(BasicNewsRecipe): language = 'en_IN' masthead_url = 'https://bsmedia.business-standard.com/include/_mod/site/html5/images/business-standard-logo.png' encoding = 'utf-8' - resolve_internal_links = True - remove_empty_feeds = True no_stylesheets = True remove_javascript = True diff --git a/recipes/calcalist.recipe b/recipes/calcalist.recipe index 933eddaf78..32f80cdb25 100644 --- a/recipes/calcalist.recipe +++ b/recipes/calcalist.recipe @@ -10,7 +10,6 @@ class AdvancedUserRecipe1283848012(BasicNewsRecipe): language = 'he' __author__ = 'marbs' extra_css = 'img {max-width:100%;} body{direction: rtl;},title{direction: rtl; } ,article_description{direction: rtl; }, a.article{direction: rtl; } ,calibre_feed_description{direction: rtl; }' # noqa: E501 - simultaneous_downloads = 5 remove_javascript = True timefmt = '[%a, %d %b, %Y]' oldest_article = 1 @@ -23,7 +22,6 @@ class AdvancedUserRecipe1283848012(BasicNewsRecipe): dict(name='div', attrs={'class': 'ArticleBodyComponent'}), ] remove_tags = [dict(name='p', attrs={'text': [' ']})] - max_articles_per_feed = 100 preprocess_regexps = [ (re.compile(r'
', re.DOTALL | re.IGNORECASE), lambda match: '') ] diff --git a/recipes/canardpc.recipe b/recipes/canardpc.recipe index be8a3267b4..839165dd63 100644 --- a/recipes/canardpc.recipe +++ b/recipes/canardpc.recipe @@ -4,7 +4,6 @@ from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1271446252(BasicNewsRecipe): title = u'CanardPC' oldest_article = 7 - max_articles_per_feed = 100 language = 'fr' __author__ = 'zorgluf' max_articles_per_feed = 25 diff --git a/recipes/cbn.recipe b/recipes/cbn.recipe index 36a4f5a255..834f5d57ae 100644 --- a/recipes/cbn.recipe +++ b/recipes/cbn.recipe @@ -31,7 +31,6 @@ class CBN(BasicNewsRecipe): remove_javascript = True use_embedded_content = False no_stylesheets = True - language = 'en' encoding = 'iso-8859-1' conversion_options = {'linearize_tables': True} diff --git a/recipes/christian_post.recipe b/recipes/christian_post.recipe index e924984dac..9ab4a639d2 100644 --- a/recipes/christian_post.recipe +++ b/recipes/christian_post.recipe @@ -9,7 +9,6 @@ class ChristianPost(BasicNewsRecipe): __author__ = 'sexymax15' description = 'Homepage' language = 'en' - no_stylesheets = True use_embedded_content = False oldest_article = 30 max_articles_per_feed = 15 diff --git a/recipes/colta.recipe b/recipes/colta.recipe index ea86cda905..d2ce698c40 100644 --- a/recipes/colta.recipe +++ b/recipes/colta.recipe @@ -12,7 +12,6 @@ class Colta(BasicNewsRecipe): publisher = 'OpenSpace.ru' category = 'news' cover_url = u'http://www.colta.ru/assets/logo-afb684c3d35fc1f6f103f9fb638c8ec1.png' - language = 'ru' no_stylesheets = True remove_javascript = True diff --git a/recipes/den_of_geek.recipe b/recipes/den_of_geek.recipe index e084499942..4274a50737 100644 --- a/recipes/den_of_geek.recipe +++ b/recipes/den_of_geek.recipe @@ -7,7 +7,6 @@ class AdvancedUserRecipe1316944753(BasicNewsRecipe): language = 'en' description = 'From science fiction enthusiasts through to gaming fanatics, Den of Geek has become the one-stop UK website for people genuinely passionate about their entertainment media. Den of Geek covers popular culture but always with an edgy, UK centric slant that sets it apart from the crowd.' # noqa: E501 category = 'Movies, TV, Games, Comics, Cult, News, Reviews' - language = 'en' oldest_article = 7 max_articles_per_feed = 100 diff --git a/recipes/descopera.recipe b/recipes/descopera.recipe index 3186b28ecb..949dc006a9 100644 --- a/recipes/descopera.recipe +++ b/recipes/descopera.recipe @@ -18,12 +18,10 @@ class Descopera(BasicNewsRecipe): oldest_article = 5 language = 'ro' max_articles_per_feed = 100 - no_stylesheets = True use_embedded_content = False category = 'Ziare,Reviste,Descopera' encoding = 'utf-8' cover_url = 'http://www.descopera.ro/images/header_images/logo.gif' - use_embedded_content = False no_stylesheets = True auto_cleanup = True diff --git a/recipes/desiring_god.recipe b/recipes/desiring_god.recipe index bd287217ef..579ce6d873 100644 --- a/recipes/desiring_god.recipe +++ b/recipes/desiring_god.recipe @@ -11,7 +11,6 @@ class DesiringGodEnglish(BasicNewsRecipe): cover_url = 'http://cdn0.desiringgod.org/images/layout/breadcrumbs_dg_mark.png' masthead_url = 'http://cdn0.desiringgod.org/images/layout/breadcrumbs_dg_mark.png' - language = 'en' oldest_article = 7 max_articles_per_feed = 50 auto_cleanup = True diff --git a/recipes/deutsche_welle_de.recipe b/recipes/deutsche_welle_de.recipe index 985b43e59c..b70b58fb9f 100644 --- a/recipes/deutsche_welle_de.recipe +++ b/recipes/deutsche_welle_de.recipe @@ -11,8 +11,6 @@ class DeutscheWelle(BasicNewsRecipe): max_articles_per_feed = 200 no_stylesheets = True remove_javascript = True - no_stylesheets = True - remove_javascript = True remove_empty_feeds = True ignore_duplicate_articles = {'title', 'url'} remove_attributes = ['height', 'width', 'style'] diff --git a/recipes/dobreprogamy.recipe b/recipes/dobreprogamy.recipe index 2d454553d0..b9b7bfa220 100644 --- a/recipes/dobreprogamy.recipe +++ b/recipes/dobreprogamy.recipe @@ -15,7 +15,7 @@ class Dobreprogramy_pl(BasicNewsRecipe): index = 'http://www.dobreprogramy.pl/' no_stylesheets = True language = 'pl' - extra_css = '.title {font-size:22px;}' + extra_css = '.title {font-size:22px;}, h1 { font-size:130% }' oldest_article = 8 max_articles_per_feed = 100 remove_attrs = ['style', 'width', 'height'] @@ -41,7 +41,3 @@ class Dobreprogramy_pl(BasicNewsRecipe): if not r.string: r.extract() return soup - - extra_css = ''' - h1 { font-size:130% } - ''' diff --git a/recipes/economist_search.recipe b/recipes/economist_search.recipe index c6ca84f630..b8ad8dfb97 100644 --- a/recipes/economist_search.recipe +++ b/recipes/economist_search.recipe @@ -121,7 +121,7 @@ class econ_search(BasicNewsRecipe): 'Use the Advanced section of the recipe to search.' ) - remove_attributes = ['style', 'height', 'width'] + remove_attributes = ['data-reactid', 'style', 'height', 'width'] no_stylesheets = True ignore_duplicate_articles = {'url'} extra_css = ''' @@ -154,8 +154,6 @@ class econ_search(BasicNewsRecipe): ) ] keep_only_tags = [dict(name='article', id=lambda x: not x)] - no_stylesheets = True - remove_attributes = ['data-reactid', 'width', 'height'] # economist.com has started throttling after about 60% of the total has # downloaded with connection reset by peer (104) errors. delay = 3 diff --git a/recipes/el_colombiano.recipe b/recipes/el_colombiano.recipe index 81c888bff9..3a39cb0fbb 100644 --- a/recipes/el_colombiano.recipe +++ b/recipes/el_colombiano.recipe @@ -9,8 +9,10 @@ class AdvancedUserRecipe1311790237(BasicNewsRecipe): language = 'es_CO' cover_url = 'http://www.elcolombiano.com/images/logoElColombiano348x46.gif' remove_tags_before = dict(id='contenidoArt') - remove_tags_after = dict(id='enviaTips') - remove_tags_after = dict(id='zonaPata') + remove_tags_after = [ + dict(id='enviaTips'), + dict(id='zonaPata'), + ] oldest_article = 1 max_articles_per_feed = 100 remove_javascript = True diff --git a/recipes/el_correo.recipe b/recipes/el_correo.recipe index 63d05274ba..c364abeee4 100644 --- a/recipes/el_correo.recipe +++ b/recipes/el_correo.recipe @@ -18,7 +18,6 @@ class elcorreo(BasicNewsRecipe): ignore_duplicate_articles = {'url'} encoding = 'utf-8' masthead_url = 'https://s1.ppllstatics.com/starfish/1.3.76/assets/images/logos/logo-elcorreo.svg' - encoding = 'utf-8' remove_empty_feeds = True resolve_internal_links = True max_articles_per_feed = 25 # articles @@ -88,14 +87,6 @@ class elcorreo(BasicNewsRecipe): p.name = 'div' return soup - recipe_specific_options = { - 'days': { - 'short': 'Oldest article to download from this news source. In days ', - 'long': 'For example, 0.5, gives you articles from the past 12 hours', - 'default': str(oldest_article) - } - } - def get_browser(self, *args, **kwargs): kwargs['user_agent'] = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' br = BasicNewsRecipe.get_browser(self, *args, **kwargs) diff --git a/recipes/eso_pl.recipe b/recipes/eso_pl.recipe index e4e1143c7f..5f0dbb5456 100644 --- a/recipes/eso_pl.recipe +++ b/recipes/eso_pl.recipe @@ -13,7 +13,10 @@ class ESO(BasicNewsRecipe): remove_empty_feeds = True use_embedded_content = False cover_url = 'https://www.eso.org/public/archives/logos/medium/eso-logo-black-outline.jpg' - keep_only_tags = [dict(attrs={'class': 'subcl'})] + keep_only_tags = [ + dict(attrs={'class': 'subcl'}), + dict(name='div',attrs={'class':'col-md-9 left-column'}), + ] remove_tags = [dict(id='lang_row'), dict( attrs={'class': ['pr_typeid', 'pr_news_feature_link', 'outreach_usage', 'hidden']})] feeds = [ @@ -21,9 +24,6 @@ class ESO(BasicNewsRecipe): (u'Og\u0142oszenia', u'http://www.eso.org/public/poland/announcements/feed/'), (u'Zdj\u0119cie tygodnia', u'http://www.eso.org/public/poland/images/potw/feed/')] - keep_only_tags = [ - dict(name='div',attrs={'class':'col-md-9 left-column'})] - def preprocess_html(self, soup): for a in soup.findAll('a', href=True): if a['href'].startswith('/'): diff --git a/recipes/fairbanks_daily.recipe b/recipes/fairbanks_daily.recipe index 6435406cb5..f72f612891 100644 --- a/recipes/fairbanks_daily.recipe +++ b/recipes/fairbanks_daily.recipe @@ -13,7 +13,6 @@ class FairbanksDailyNewsminer(BasicNewsRecipe): remove_javascript = True use_embedded_content = False no_stylesheets = True - language = 'en' encoding = 'utf8' conversion_options = {'linearize_tables': True} auto_cleanup = True diff --git a/recipes/faz_net.recipe b/recipes/faz_net.recipe index c90eda7651..ae78d7a085 100644 --- a/recipes/faz_net.recipe +++ b/recipes/faz_net.recipe @@ -108,8 +108,7 @@ class FazNet(BasicNewsRecipe): scale_news_images = (10,100) delay = 1 - test_article = 'https://www.faz.net/rss/aktuell/feuilleton/kunst-und-architektur/berlinische-galerie-zeigt-edvard-munch-die-ganze-gefuehlsskala-des-lebens-19180631.html?printPagedArticle=true#pageIndex_2' - test_article = None + test_feed = 'https://www.faz.net/rss/aktuell/feuilleton/kunst-und-architektur/berlinische-galerie-zeigt-edvard-munch-die-ganze-gefuehlsskala-des-lebens-19180631.html?printPagedArticle=true#pageIndex_2' extra_css = ''' .header-title,.scrolly-title {font-size: 1.5em; font-weight:bold; text-align:left;} diff --git a/recipes/gates_notes.recipe b/recipes/gates_notes.recipe index 5b7844f819..40718e8cd2 100644 --- a/recipes/gates_notes.recipe +++ b/recipes/gates_notes.recipe @@ -8,7 +8,6 @@ class AdvancedUserRecipe1716089864(BasicNewsRecipe): description = 'The Blog of Bill Gates.' language = 'en' __author__ = 'Spicy Poison' - description = 'The Blog of Bill Gates' publisher = 'Bill Gates' oldest_article = 30 max_articles_per_feed = 50 diff --git a/recipes/glasgow_herald.recipe b/recipes/glasgow_herald.recipe index 388dff9783..fd48f22e84 100644 --- a/recipes/glasgow_herald.recipe +++ b/recipes/glasgow_herald.recipe @@ -11,7 +11,6 @@ class GlasgowHerald(BasicNewsRecipe): title = u'Glasgow Herald' oldest_article = 1 max_articles_per_feed = 100 - no_stylesheets = True language = 'en_GB' __author__ = 'Kovid Goyal' diff --git a/recipes/hannoversche_zeitung.recipe b/recipes/hannoversche_zeitung.recipe index 9a2525e09a..5b33cec208 100644 --- a/recipes/hannoversche_zeitung.recipe +++ b/recipes/hannoversche_zeitung.recipe @@ -29,9 +29,8 @@ class AdvancedUserRecipe1287519083(BasicNewsRecipe): remove_tags_before = dict(id='modul_artikel') remove_tags_after = dict(id='articlecontent') - remove_tags = dict(id='articlesidebar') - remove_tags = [ + dict(id='articlesidebar'), dict(name='div', attrs={'class': ['articlecomment', 'articlebookmark', 'teaser_anzeige', 'teaser_umfrage', 'navigation', 'subnavigation']}) diff --git a/recipes/harpers.recipe b/recipes/harpers.recipe index c372d55fdc..e8bd34366c 100644 --- a/recipes/harpers.recipe +++ b/recipes/harpers.recipe @@ -35,7 +35,6 @@ class Harpers(BasicNewsRecipe): remove_tags = [ classes('header-controls') ] - remove_attributes = ['style', 'width', 'height'] extra_css = ''' img {display:block; margin:0 auto;} diff --git a/recipes/high_country_news.recipe b/recipes/high_country_news.recipe index 277a516d3a..1972c58b9e 100644 --- a/recipes/high_country_news.recipe +++ b/recipes/high_country_news.recipe @@ -50,7 +50,7 @@ class HighCountryNews(BasicNewsRecipe): auto_cleanup = False remove_javascript = True remove_empty_feeds = True - remove_attributes = ['width', 'height'] + remove_attributes = ['style', 'width', 'height'] use_embedded_content = False masthead_url = 'http://www.hcn.org/logo.jpg' @@ -69,8 +69,6 @@ class HighCountryNews(BasicNewsRecipe): # caption and credit for description & author of pictures # main-topic - remove_attributes = ['style'] - extra_css = ''' h1 {font-size: 1.6em; text-align: left} h2 {font-size: 1em; font-style: italic; font-weight: normal} diff --git a/recipes/hna.recipe b/recipes/hna.recipe index 814476dd9e..d84df3b31d 100644 --- a/recipes/hna.recipe +++ b/recipes/hna.recipe @@ -13,7 +13,6 @@ class hnaDe(BasicNewsRecipe): title = 'HNA' description = 'local news from Hessen/Germany' __author__ = 'Oliver Niesner' - use_embedded_content = False language = 'de' use_embedded_content = False timefmt = ' [%d %b %Y]' diff --git a/recipes/in_gr.recipe b/recipes/in_gr.recipe index 2d76098fc4..7354d7cc18 100644 --- a/recipes/in_gr.recipe +++ b/recipes/in_gr.recipe @@ -14,7 +14,6 @@ class ingr(BasicNewsRecipe): no_stylesheets = True use_embedded_content = False remove_empty_feeds = True - encoding = 'utf8' keep_only_tags = [ dict(name='h1'), diff --git a/recipes/independent.recipe b/recipes/independent.recipe index 6076d506dd..fe2e5c3c69 100644 --- a/recipes/independent.recipe +++ b/recipes/independent.recipe @@ -30,7 +30,6 @@ class TheIndependentNew(BasicNewsRecipe): publisher = 'The Independent' oldest_article = 2.0 ignore_duplicate_articles = {'title', 'url'} - remove_empty_feeds = True category = 'news, UK' no_stylesheets = True use_embedded_content = False diff --git a/recipes/independent_australia.recipe b/recipes/independent_australia.recipe index d1fadf3a4a..f0968398dc 100644 --- a/recipes/independent_australia.recipe +++ b/recipes/independent_australia.recipe @@ -20,8 +20,6 @@ class IndependentAustralia(BasicNewsRecipe): description = ( 'Independent Australia is a progressive journal focusing on politics, democracy, the environment, Australian history and Australian identity.' ' It contains news and opinion from Australia and around the world.') - oldest_article = 7 # days - max_articles_per_feed = 100 feeds = [ ( @@ -67,13 +65,6 @@ class IndependentAustralia(BasicNewsRecipe): extra_css = '.byline{font-size:smaller;margin-bottom:10px;}.inline-caption{display:block;font-size:smaller;text-decoration: none;}' compress_news_images = True - feeds = [ - ( - 'Independent Australia', - 'https://feeds.feedburner.com/IndependentAustralia' - ), - ] - # ************************************ # Break up feed into categories (based on BrianG's code snippet): # ************************************ diff --git a/recipes/inquirer_net.recipe b/recipes/inquirer_net.recipe index 177a2d2fb3..00227b323f 100644 --- a/recipes/inquirer_net.recipe +++ b/recipes/inquirer_net.recipe @@ -15,7 +15,6 @@ class InquirerNet(BasicNewsRecipe): description = 'News from Philipines' oldest_article = 2 max_articles_per_feed = 100 - no_stylesheets = True use_embedded_content = False encoding = 'utf8' publisher = 'inquirer.net' @@ -23,8 +22,6 @@ class InquirerNet(BasicNewsRecipe): lang = 'en' language = 'en' - use_embedded_content = False - no_stylesheets = True auto_cleanup = True diff --git a/recipes/jpost.recipe b/recipes/jpost.recipe index 2c94daead2..ef8281a4cb 100644 --- a/recipes/jpost.recipe +++ b/recipes/jpost.recipe @@ -25,7 +25,6 @@ class JerusalemPost(BasicNewsRecipe): __author__ = 'Kovid Goyal' max_articles_per_feed = 10 - no_stylesheets = True def get_browser(self): return BasicNewsRecipe.get_browser(self, user_agent='common_words/based') diff --git a/recipes/kosmonauta_pl.recipe b/recipes/kosmonauta_pl.recipe index 2e7c23ac8f..a262723abb 100644 --- a/recipes/kosmonauta_pl.recipe +++ b/recipes/kosmonauta_pl.recipe @@ -10,7 +10,6 @@ class Kosmonauta(BasicNewsRecipe): category = 'astronomy' language = 'pl' cover_url = 'http://bi.gazeta.pl/im/4/10393/z10393414X,Kosmonauta-net.jpg' - no_stylesheets = True oldest_article = 7 no_stylesheets = True remove_javascript = True diff --git a/recipes/le_monde.recipe b/recipes/le_monde.recipe index ad5dcdb11c..ab4e9852c4 100644 --- a/recipes/le_monde.recipe +++ b/recipes/le_monde.recipe @@ -27,7 +27,6 @@ class LeMonde(BasicNewsRecipe): oldest_article = 1 no_stylesheets = True - remove_empty_feeds = True ignore_duplicate_articles = {'title', 'url'} reverse_article_order = True remove_empty_feeds = True diff --git a/recipes/lwn.recipe b/recipes/lwn.recipe index cee5c92b3f..e21efdfb33 100644 --- a/recipes/lwn.recipe +++ b/recipes/lwn.recipe @@ -14,7 +14,6 @@ class LWN(BasicNewsRecipe): __author__ = 'Oliver Niesner' description = 'Linux Weekly News' oldest_article = 54 - language = _('English') max_articles_per_feed = 100 needs_subscription = True language = 'en' diff --git a/recipes/mateusz_czytania.recipe b/recipes/mateusz_czytania.recipe index 9717176efb..4a40aeb1f3 100644 --- a/recipes/mateusz_czytania.recipe +++ b/recipes/mateusz_czytania.recipe @@ -23,7 +23,6 @@ class czytania_mateusz(BasicNewsRecipe): remove_javascript = True simultaneous_downloads = 2 max_articles_per_feed = 100 - auto_cleanup = True feeds = [(u'Czytania', u'http://mateusz.pl/rss/czytania/')] diff --git a/recipes/modoros.recipe b/recipes/modoros.recipe index a65499f08c..c9d1269630 100644 --- a/recipes/modoros.recipe +++ b/recipes/modoros.recipe @@ -24,7 +24,6 @@ class ModorosBlogHu(BasicNewsRecipe): remove_empty_feeds = True no_stylesheets = True feeds = [(u'Modoros Blog', u'http://modoros.blog.hu/rss')] - remove_javascript = True use_embedded_content = False preprocess_regexps = [ (re.compile(r'.*?