diff --git a/app/event/models.py b/app/event/models.py index 393a486..83397f4 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -37,7 +37,10 @@ class Event(models.Model): elif '<' in self.media: html = self.media else: - html += '' % self.media + url = self.media + if 'youtube.com/watch' in url: + url = url.replace('/watch', '/embed') + html += '' % url if self.media_caption: html = '
%s
%s
' % (html, self.media_caption) return html