mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
65b0bada6f
commit
d509d5c453
@ -41,7 +41,6 @@ class ElDiplo2020(BasicNewsRecipe):
|
|||||||
masthead_url = 'https://www.eldiplo.org/wp-content/themes/_polenta_/assets/diplo.png'
|
masthead_url = 'https://www.eldiplo.org/wp-content/themes/_polenta_/assets/diplo.png'
|
||||||
INDEX = 'https://www.eldiplo.org/'
|
INDEX = 'https://www.eldiplo.org/'
|
||||||
|
|
||||||
|
|
||||||
extra_css = """
|
extra_css = """
|
||||||
body{font-family: "GT Super", serif}
|
body{font-family: "GT Super", serif}
|
||||||
.autor{font-family: Inter, serif}
|
.autor{font-family: Inter, serif}
|
||||||
@ -66,7 +65,7 @@ class ElDiplo2020(BasicNewsRecipe):
|
|||||||
soup = self.index_to_soup(self.INDEX)
|
soup = self.index_to_soup(self.INDEX)
|
||||||
mylink = soup.find('span', text='Sumario')
|
mylink = soup.find('span', text='Sumario')
|
||||||
if mylink is None:
|
if mylink is None:
|
||||||
return None
|
return None
|
||||||
indexurl = "https://www.eldiplo.org" + mylink.parent['href']
|
indexurl = "https://www.eldiplo.org" + mylink.parent['href']
|
||||||
self.log(indexurl)
|
self.log(indexurl)
|
||||||
parts = indexurl.split('www.eldiplo.org/', 1)
|
parts = indexurl.split('www.eldiplo.org/', 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user