Update Gosc Niedzielny

Merge branch 'recipes' of https://github.com/t3d/calibre
This commit is contained in:
Kovid Goyal 2016-07-21 08:37:50 +05:30
commit 377d75a5f4
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class GN(BasicNewsRecipe):
def find_last_issue(self): def find_last_issue(self):
raw = self.index_to_soup('http://m.gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True) raw = self.index_to_soup('http://m.gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
doc = html.fromstring(raw) 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']: if time.strftime("%w") in ['3','4']:
return page[5] return page[5]

View File

@ -22,7 +22,7 @@ class GN(BasicNewsRecipe):
def find_last_issue(self): def find_last_issue(self):
raw = self.index_to_soup('http://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True) raw = self.index_to_soup('http://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
doc = html.fromstring(raw) 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] return page[0]