mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
07942bda23
commit
722106531f
@ -51,7 +51,7 @@ class Spectator(BasicNewsRecipe):
|
|||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
soup = self.index_to_soup('https://www.spectator.co.uk/magazine/')
|
soup = self.index_to_soup('https://www.spectator.co.uk/magazine/')
|
||||||
a = soup.find('a', attrs={'class': 'issue-details__cover-link'})
|
a = soup.find('a', attrs={'class': 'issue-details__cover-link'})
|
||||||
self.timefmt = a['title']
|
self.timefmt = ' [%s]' % a['title']
|
||||||
self.cover_url = a['href']
|
self.cover_url = a['href']
|
||||||
if self.cover_url.startswith('//'):
|
if self.cover_url.startswith('//'):
|
||||||
self.cover_url = 'http:' + self.cover_url
|
self.cover_url = 'http:' + self.cover_url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user