From aaa2730cc1b3665475faaa59e9d0292dc1f2c0f4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 31 Dec 2017 09:53:23 +0100 Subject: handle youtu.be https --- backend/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/views.py b/backend/views.py index 1d7d431..971ecd3 100755 --- a/backend/views.py +++ b/backend/views.py @@ -286,6 +286,7 @@ def store_media_str(room, user, msg): music = None image = None for word in words: + word = word.replace("https", "http") if 'youtube.com' in word: ytid = '' match = YT_ID_RE.match(word) -- cgit v1.2.3-70-g09d2