This commit is contained in:
Kovid Goyal 2021-10-10 19:15:42 +05:30
parent 65b0bada6f
commit d509d5c453
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)