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:
parent
0e9afc780c
commit
0ea51f47b3
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user