diff --git a/recipes/biweekly.recipe b/recipes/biweekly.recipe index 8a9d280635..09b7af5bcd 100644 --- a/recipes/biweekly.recipe +++ b/recipes/biweekly.recipe @@ -30,7 +30,7 @@ class biweekly(BasicNewsRecipe): browser.open('http://www.biweekly.pl/') # find the link - epublink = browser.find_link(text_regex=re.compile('ePUB VERSION')) + epublink = browser.find_link(text_regex=re.compile('EPUB')) # download ebook self.report_progress(0, _('Downloading ePUB')) diff --git a/recipes/dwutygodnik.recipe b/recipes/dwutygodnik.recipe index 2a911e9cc3..ce6ab2bab2 100644 --- a/recipes/dwutygodnik.recipe +++ b/recipes/dwutygodnik.recipe @@ -32,7 +32,7 @@ class dwutygodnik(BasicNewsRecipe): browser.open('http://www.dwutygodnik.com/') # find the link - epublink = browser.find_link(text_regex=re.compile('Wersja ePub')) + epublink = browser.find_link(text_regex=re.compile('Wydanie EPUB')) # download ebook self.report_progress(0, _('Downloading ePUB')) diff --git a/recipes/dziennik_baltycki.recipe b/recipes/dziennik_baltycki.recipe index 104822e3a2..858921239a 100644 --- a/recipes/dziennik_baltycki.recipe +++ b/recipes/dziennik_baltycki.recipe @@ -7,7 +7,6 @@ class DziennikBaltycki(BasicNewsRecipe): description = u'Gazeta Regionalna Dziennik Bałtycki. Najnowsze Wiadomości Trójmiasto i Wiadomości Pomorskie. Czytaj!' category = 'newspaper' language = 'pl' - encoding = 'iso-8859-2' masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/dziennikbaltycki.png?24' oldest_article = 7 max_articles_per_feed = 100 @@ -15,8 +14,10 @@ class DziennikBaltycki(BasicNewsRecipe): no_stylesheets = True use_embedded_content = False ignore_duplicate_articles = {'title', 'url'} - remove_tags_after = dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'}) - remove_tags = [dict(id='mat-podobne'), dict(name='a', attrs={ + keep_only_tags = [dict(name='section', attrs={'class': 'zajawka'}), + dict(name='section', attrs={'id': 'tresc'}) +] + remove_tags = [dict(name='div', attrs={'class':['materialyZKategorii','materialyPodobne']}), dict(name='a', attrs={ 'class': 'czytajDalej'}), dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})] feeds = [