mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
b6812939c9
@ -41,6 +41,7 @@ class TheWeek(BasicNewsRecipe):
|
||||
url = 'https://usmagazine.theweek.com/timelines.json'
|
||||
data = json.loads(self.index_to_soup(url, raw=True))
|
||||
for x in data['timelines'][:5]:
|
||||
if 'image' in x:
|
||||
if '-cover-' in x['image']:
|
||||
return 'https://usmagazine.theweek.com' + x['image'][1:]
|
||||
|
||||
|
@ -41,6 +41,7 @@ class TheWeek(BasicNewsRecipe):
|
||||
url = 'https://ukmagazine.theweek.com/timelines.json'
|
||||
data = json.loads(self.index_to_soup(url, raw=True))
|
||||
for x in data['timelines'][:5]:
|
||||
if 'image' in x:
|
||||
if '-cover-' in x['image']:
|
||||
return 'https://ukmagazine.theweek.com' + x['image'][1:]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user