Video width

master
Bob Mottram 2019-08-21 12:37:22 +01:00
parent cfc2664298
commit 444137e915
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str:
url=content.split('"'+videoSite)[1]
if '"' in url:
url=url.split('"')[0]
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\""+str(width)+"\" height=\""+str(height)+"\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\"50%\" frameborder=\"0\" allowfullscreen></iframe></center>"
return content
# A selection of the current larger peertube sites, mostly French and German language