Author: remi
Date: 2009-09-22 11:33:58 +0200 (Tue, 22 Sep 2009)
New Revision: 5475

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py
Log:
* Better to replace mms by http ...

Modified: 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py  
    2009-09-22 09:22:12 UTC (rev 5474)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py  
    2009-09-22 09:33:58 UTC (rev 5475)
@@ -151,8 +151,10 @@
             "-playlist",
             uri,
         ]
+        if uri.lower().find("mms") == 0:
+            uri = "http" + uri[3:]
         if uri.lower().find(".m3u") == -1:
-            if (uri.lower().find("http") == 0) or (uri.lower().find("mms") == 
0):
+            if uri.lower().find("http") == 0:
                 cmd.pop(4)
         try:
             self.__process = subprocess.Popen(


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to