This commit is contained in:
unkn0w7n 2023-09-13 11:09:13 +05:30
parent 24c41ab124
commit 9370fe3ba3
3 changed files with 5 additions and 5 deletions

View File

@ -176,14 +176,14 @@ class Bloomberg(BasicNewsRecipe):
caption = '<span class="cap">' + data['lede']['alt'] + '</span>' caption = '<span class="cap">' + data['lede']['alt'] + '</span>'
if m: if m:
time.sleep(5) time.sleep(3)
body = data['body'] body = data['body']
else: else:
body = '' body = ''
body_data = data['body']['content'] body_data = data['body']['content']
for x in body_data: for x in body_data:
body += get_contents(x) 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') self.log('Delay: ', pause, ' seconds')
time.sleep(pause) time.sleep(pause)
return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>' return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>'

View File

@ -170,14 +170,14 @@ class Bloomberg(BasicNewsRecipe):
caption = '<span class="cap">' + data['lede']['alt'] + '</span>' caption = '<span class="cap">' + data['lede']['alt'] + '</span>'
if m: if m:
time.sleep(5) time.sleep(3)
body = data['body'] body = data['body']
elif m2: elif m2:
body = '' body = ''
body_data = data['body']['content'] body_data = data['body']['content']
for x in body_data: for x in body_data:
body += get_contents(x) 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') self.log('Delay: ', pause, ' seconds')
time.sleep(pause) time.sleep(pause)
return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>' return '<html><body>' + cat + title + subhead + auth + lede + caption + '<div>' + body + '</div></body></html>'

View File

@ -81,7 +81,7 @@ class LiveMint(BasicNewsRecipe):
extra_css = ''' extra_css = '''
img {display:block; margin:0 auto;} img {display:block; margin:0 auto;}
#img-cap {font-size:small; text-align:center;} #img-cap {font-size:small; text-align:center;}
.summary, .highlights { .summary, .highlights, .synopsis {
font-weight:normal !important; font-style:italic; color:#202020; font-weight:normal !important; font-style:italic; color:#202020;
} }
h2 {font-size:normal !important;} h2 {font-size:normal !important;}