diff --git a/recipes/gosc_full.recipe b/recipes/gosc_full.recipe index 1be85bfe74..0857ad5fe8 100644 --- a/recipes/gosc_full.recipe +++ b/recipes/gosc_full.recipe @@ -70,7 +70,7 @@ class GN(BasicNewsRecipe): not_assigned.extend(articles) page += 1 pages = soup.find('span', attrs={'class': 'pgr_nrs'}) - if str(page) not in [self.tag_to_string(x)[1] for x in pages.findAll('a')]: + if str(page) not in [self.tag_to_string(x) for x in pages.findAll('a')]: break feeds.append((u'Nieprzypisane', not_assigned)) @@ -107,9 +107,11 @@ class GN(BasicNewsRecipe): r.extract() for r in soup.findAll(attrs={'class': ['di_dr', 'doc_image']}): del r['style'] + ''' for r in soup.findAll(attrs={'class': 'cm-i-a'}): r.replaceWith('
' + r.prettify() + '') + ''' return soup keep_only_tags = [ diff --git a/recipes/gosc_niedzielny.recipe b/recipes/gosc_niedzielny.recipe index f540276015..c85e35723c 100644 --- a/recipes/gosc_niedzielny.recipe +++ b/recipes/gosc_niedzielny.recipe @@ -66,7 +66,7 @@ class GN(BasicNewsRecipe): not_assigned.extend(articles) page += 1 pages = soup.find('span', attrs={'class': 'pgr_nrs'}) - if str(page) not in [self.tag_to_string(x)[1] for x in pages.findAll('a')]: + if str(page) not in [self.tag_to_string(x) for x in pages.findAll('a')]: break feeds.append((u'Nieprzypisane', not_assigned))