summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-31 09:53:23 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-31 09:53:23 +0100
commitaaa2730cc1b3665475faaa59e9d0292dc1f2c0f4 (patch)
tree645a806e833b230641fa0404345390609df7424f /backend
parentf4720c570fe87d1401ef5973f9f3ed360ba28a34 (diff)
handle youtu.be https
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/views.py1
1 files changed, 1 insertions, 0 deletions
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)