mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update Gosc Niedzielny
Merge branch 'recipes' of https://github.com/t3d/calibre
This commit is contained in:
commit
377d75a5f4
@ -23,7 +23,7 @@ class GN(BasicNewsRecipe):
|
||||
def find_last_issue(self):
|
||||
raw = self.index_to_soup('http://m.gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
|
||||
doc = html.fromstring(raw)
|
||||
page = doc.xpath('//div[@class="search-result"]/div[1]/div[1]/a/@href')
|
||||
page = doc.xpath('//div[@class="search-result release-result"]/div[1]/div[1]/a/@href')
|
||||
|
||||
if time.strftime("%w") in ['3','4']:
|
||||
return page[5]
|
||||
|
@ -22,7 +22,7 @@ class GN(BasicNewsRecipe):
|
||||
def find_last_issue(self):
|
||||
raw = self.index_to_soup('http://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
|
||||
doc = html.fromstring(raw)
|
||||
page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href')
|
||||
page = doc.xpath('//div[@class="search-result release-result"]/div[1]/div[2]/h1//a/@href')
|
||||
|
||||
return page[0]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user