Update Gosc Niedzielny

Merge branch 'master' of https://github.com/t3d/calibre
This commit is contained in:
Kovid Goyal 2018-07-01 07:31:18 +05:30
commit 313b7f3454
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View File

@ -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('<div style="clear:both"></div>' +
r.prettify() + '<div style="clear:both"></div>')
'''
return soup
keep_only_tags = [

View File

@ -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))