forked from MarseyWorld/MarseyWorld
dfsfsdsfd
parent
60af5cee8f
commit
f189ea773d
|
@ -251,6 +251,7 @@ def sanitize(sanitized, noimages=False):
|
|||
htmlsource = f'<div style="padding-top:5px; padding-bottom: 10px;"><iframe style="max-width:100%" frameborder="0" src="{url}?controls=0"></iframe></div>'
|
||||
sanitized = sanitized.replace(replacing, htmlsource)
|
||||
|
||||
print(sanitized)
|
||||
for i in re.finditer('<a target="_blank" rel="nofollow noopener noreferrer" href="(https:.*?\.mp4)"', sanitized):
|
||||
url = i.group(1)
|
||||
replacing = f'<a target="_blank" rel="nofollow noopener noreferrer" href="{url}">{url}</a>'
|
||||
|
|
Loading…
Reference in New Issue