1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00:00

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

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):
"""