bug #43 : https media url now accepted.
authorcavaliet
Fri, 23 Nov 2012 12:03:47 +0100
changeset 967 56e12f8ee253
parent 966 bc51d4854488
child 968 3a4920809b46
bug #43 : https media url now accepted.
src/ldt/ldt/ldt_utils/views/content.py
--- a/src/ldt/ldt/ldt_utils/views/content.py	Fri Nov 23 11:46:25 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/views/content.py	Fri Nov 23 12:03:47 2012 +0100
@@ -45,7 +45,7 @@
         if not cleaned_data['videopath']:
             cleaned_data['videopath'] = settings.STREAM_URL
         # if the source is already http:// or rtmp:// we don't have to add STREAM_URL
-        if cleaned_data['src'].startswith("rtmp://") or cleaned_data['src'].startswith("http://"):
+        if cleaned_data['src'].startswith("rtmp://") or cleaned_data['src'].startswith("http://") or cleaned_data['src'].startswith("https://"):
             cleaned_data['videopath'] = ''
             
             media, created = Media.objects.get_or_create(src=cleaned_data['src'], defaults=cleaned_data) #@UndefinedVariable