forked from indymedia/epicyon
Replace watch with embed
parent
edb8746d84
commit
ab13617415
|
@ -1022,7 +1022,7 @@ def addEmbeddedVideo(content: str) -> str:
|
|||
if '"https://www.youtube.com' in content:
|
||||
url=content.split('"https://www.youtube.com')[1]
|
||||
if '"' in url:
|
||||
url=url.split('"')[0]
|
||||
url=url.split('"')[0].replace('/watch?v=','/embed/')
|
||||
content=content+"<iframe src=\"https://www.youtube.com"+url+"\" width=\"100%\" height=\"100%\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>"
|
||||
return content
|
||||
|
||||
|
|
Loading…
Reference in New Issue