diff --git a/apps/participation/models.py b/apps/participation/models.py index f968b91..b8a3bd5 100644 --- a/apps/participation/models.py +++ b/apps/participation/models.py @@ -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): """