typo
This commit is contained in:
parent
97a9c7951a
commit
62b9e18ffd
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Event(models.Model):
|
||||||
else:
|
else:
|
||||||
url = self.media
|
url = self.media
|
||||||
if 'youtube.com/watch' in url:
|
if 'youtube.com/watch' in url:
|
||||||
url = url.replace('/watch?=v', '/embed/')
|
url = url.replace('/watch?v=', '/embed/')
|
||||||
html += '<iframe src="%s" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' % url
|
html += '<iframe src="%s" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' % url
|
||||||
if self.media_caption:
|
if self.media_caption:
|
||||||
html = '<figure>%s<figcaption>%s</figcaption></figure>' % (html, self.media_caption)
|
html = '<figure>%s<figcaption>%s</figcaption></figure>' % (html, self.media_caption)
|
||||||
|
|
Loading…
Reference in a new issue