forked from indymedia/epicyon
Taller
parent
05c1c5f860
commit
3edb4d4a59
|
@ -1023,7 +1023,7 @@ def addEmbeddedVideo(content: str) -> str:
|
||||||
url=content.split('"https://www.youtube.com')[1]
|
url=content.split('"https://www.youtube.com')[1]
|
||||||
if '"' in url:
|
if '"' in url:
|
||||||
url=url.split('"')[0].replace('/watch?v=','/embed/')
|
url=url.split('"')[0].replace('/watch?v=','/embed/')
|
||||||
content=content+"<center><iframe src=\"https://www.youtube.com"+url+"\" width=\"300\" height=\"150\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
content=content+"<center><iframe src=\"https://www.youtube.com"+url+"\" width=\"300\" height=\"180\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
||||||
return content
|
return content
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
Loading…
Reference in New Issue