Display the sent video, not the example video...

This commit is contained in:
Yohann D'ANELLO 2020-10-31 13:56:47 +01:00
parent 0e9afc780c
commit 0ea51f47b3
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class Video(models.Model):
If the video is uploaded on Youtube, search in the URL the video code.
"""
return re.compile("(https?://|)(www\\.|)(youtube\\.com/watch\\?v=|youtu\\.be/)([a-zA-Z0-9-_]*)?.*?")\
.match("https://www.youtube.com/watch?v=73nsrixx7eI").group(4)
.match(self.link).group(4)
def as_iframe(self):
"""