mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-04-23 18:12:40 +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.
|
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-_]*)?.*?")\
|
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):
|
def as_iframe(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user