diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-31 09:53:23 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-31 09:53:23 +0100 |
| commit | aaa2730cc1b3665475faaa59e9d0292dc1f2c0f4 (patch) | |
| tree | 645a806e833b230641fa0404345390609df7424f | |
| parent | f4720c570fe87d1401ef5973f9f3ed360ba28a34 (diff) | |
handle youtu.be https
| -rwxr-xr-x | backend/views.py | 1 |
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) |
