mirror of https://gitlab.com/bashrc2/epicyon
Center video
parent
26a7598c28
commit
50b464049f
|
@ -1023,7 +1023,7 @@ def addEmbeddedVideo(content: str) -> str:
|
|||
url=content.split('"https://www.youtube.com')[1]
|
||||
if '"' in url:
|
||||
url=url.split('"')[0].replace('/watch?v=','/embed/')
|
||||
content=content+"<iframe src=\"https://www.youtube.com"+url+"\" width=\"50%\" height=\"100%\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>"
|
||||
content=content+"<center><iframe src=\"https://www.youtube.com"+url+"\" width=\"30%\" height=\"100%\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
||||
return content
|
||||
|
||||
return content
|
||||
|
|
Loading…
Reference in New Issue