mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Gosc Niedzielny: get articles from current issue instead of the previous
This commit is contained in:
parent
693b799df8
commit
27532d2323
@ -13,7 +13,7 @@ class GN(BasicNewsRecipe):
|
||||
|
||||
__author__ = 'Piotr Kontek, Tomasz Długosz'
|
||||
title = u'Gość Niedzielny'
|
||||
description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z poprzedniego numeru'
|
||||
description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z aktualnego numeru'
|
||||
encoding = 'utf-8'
|
||||
no_stylesheets = True
|
||||
language = 'pl'
|
||||
@ -24,7 +24,7 @@ class GN(BasicNewsRecipe):
|
||||
doc = html.fromstring(raw)
|
||||
page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href')
|
||||
|
||||
return page[1]
|
||||
return page[0]
|
||||
|
||||
def parse_index(self):
|
||||
soup = self.index_to_soup('http://gosc.pl' + self.find_last_issue())
|
||||
|
Loading…
x
Reference in New Issue
Block a user