mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9fe3cbacec
commit
1829e698f5
@ -63,7 +63,7 @@ class FinancialTimes(BasicNewsRecipe):
|
|||||||
return br
|
return br
|
||||||
|
|
||||||
def get_cover_url(self):
|
def get_cover_url(self):
|
||||||
from datetime import timedelta, date
|
from datetime import date
|
||||||
cover = 'http://img.kiosko.net/' + str(date.today().year) + '/' + date.today().strftime('%m') + '/' + date.today().strftime('%d') + '/uk/ft_uk.750.jpg'
|
cover = 'http://img.kiosko.net/' + str(date.today().year) + '/' + date.today().strftime('%m') + '/' + date.today().strftime('%d') + '/uk/ft_uk.750.jpg'
|
||||||
br = BasicNewsRecipe.get_browser(self)
|
br = BasicNewsRecipe.get_browser(self)
|
||||||
try:
|
try:
|
||||||
@ -72,7 +72,7 @@ class FinancialTimes(BasicNewsRecipe):
|
|||||||
index = 'http://en.kiosko.net/uk/np/ft_uk.html'
|
index = 'http://en.kiosko.net/uk/np/ft_uk.html'
|
||||||
soup = self.index_to_soup(index)
|
soup = self.index_to_soup(index)
|
||||||
for image in soup.findAll('img', src=True):
|
for image in soup.findAll('img', src=True):
|
||||||
if image['src'].endswith('750.jpg'):
|
if image['src'].endswith('750.jpg'):
|
||||||
return image['src']
|
return image['src']
|
||||||
self.log("\nCover unavailable")
|
self.log("\nCover unavailable")
|
||||||
cover = None
|
cover = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user