Add https to absolute source path
authorymh <ymh.work@gmail.com>
Sun, 19 Jul 2015 23:40:47 +0200
changeset 1402 b248462918e0
parent 1401 c580e29828be
child 1403 d9008987f96c
Add https to absolute source path
src/ldt/ldt/management/commands/createmediacontent.py
--- a/src/ldt/ldt/management/commands/createmediacontent.py	Sun Jul 19 19:50:07 2015 +0200
+++ b/src/ldt/ldt/management/commands/createmediacontent.py	Sun Jul 19 23:40:47 2015 +0200
@@ -164,7 +164,7 @@
             raise CommandError("Source option is compulsory")
         videopath = options.get('videopath', settings.STREAM_URL)
         url_parts = urlparse.urlparse(src)
-        if url_parts.scheme in ['http','rtmp']:
+        if url_parts.scheme in ['http','rtmp', 'https']:
             videopath = ''
         #TODO : test url is relative path
         duration_str = options.get('duration', '')