This commit is contained in:
tonyrewin 2022-07-08 10:42:33 +03:00
parent d451f9caff
commit cb798dc554
7 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ def extract_html(entry):
# else: print('[extract] cover: ' + cover) # else: print('[extract] cover: ' + cover)
title = m.get('title','').replace('\n', ' ').replace(' ', ' ') title = m.get('title','').replace('\n', ' ').replace(' ', ' ')
u = m.get('thumborId') or cover or '' u = m.get('thumborId') or cover or ''
addon = '<h4>' + title + '</h4>\n' if title: addon += '<h4>' + title + '</h4>\n'
if not u.startswith('http'): u = s3 + u if not u.startswith('http'): u = s3 + u
if not u: print('[extract] no image url for ' + str(m)) if not u: print('[extract] no image url for ' + str(m))
if 'cloudinary' in u: u = 'img/lost.svg' if 'cloudinary' in u: u = 'img/lost.svg'