mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
24c41ab124
commit
9370fe3ba3
@ -176,14 +176,14 @@ class Bloomberg(BasicNewsRecipe):
|
||||
caption = '<span class="cap">' + data['lede']['alt'] + '</span>'
|
||||
|
||||
if m:
|
||||
time.sleep(5)
|
||||
time.sleep(3)
|
||||
body = data['body']
|
||||
else:
|
||||
body = ''
|
||||
body_data = data['body']['content']
|
||||
for x in body_data:
|
||||
body += get_contents(x)
|
||||
pause = random.choice((4, 5, 6, 7, 8, 9))
|
||||
pause = random.choice((3, 4, 5, 6))
|
||||
self.log('Delay: ', pause, ' seconds')
|
||||
time.sleep(pause)
|
||||
return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>'
|
||||
|
@ -170,14 +170,14 @@ class Bloomberg(BasicNewsRecipe):
|
||||
caption = '<span class="cap">' + data['lede']['alt'] + '</span>'
|
||||
|
||||
if m:
|
||||
time.sleep(5)
|
||||
time.sleep(3)
|
||||
body = data['body']
|
||||
elif m2:
|
||||
body = ''
|
||||
body_data = data['body']['content']
|
||||
for x in body_data:
|
||||
body += get_contents(x)
|
||||
pause = random.choice((4, 5, 6, 7, 8, 9))
|
||||
pause = random.choice((3, 4, 5, 6))
|
||||
self.log('Delay: ', pause, ' seconds')
|
||||
time.sleep(pause)
|
||||
return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>'
|
||||
|
@ -81,7 +81,7 @@ class LiveMint(BasicNewsRecipe):
|
||||
extra_css = '''
|
||||
img {display:block; margin:0 auto;}
|
||||
#img-cap {font-size:small; text-align:center;}
|
||||
.summary, .highlights {
|
||||
.summary, .highlights, .synopsis {
|
||||
font-weight:normal !important; font-style:italic; color:#202020;
|
||||
}
|
||||
h2 {font-size:normal !important;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user