The branch, dharma-pre has been updated
       via  4986a1fbfeaa8cf170121c9d64b33f22bbad52ba (commit)
      from  2daae95c9918a9547258d8b00104cc38fd1a6815 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=4986a1fbfeaa8cf170121c9d64b33f22bbad52ba

commit 4986a1fbfeaa8cf170121c9d64b33f22bbad52ba
Author: amet <a...@nospam>
Date:   Fri Oct 29 17:26:26 2010 +0400

    [plugin.audio.shoutcast] -v 1.0.7
    -added: use "shout://:" on Dharma build and "http://"; on all other builds

diff --git a/plugin.audio.shoutcast/addon.xml b/plugin.audio.shoutcast/addon.xml
index 2c1b0ba..5944b22 100644
--- a/plugin.audio.shoutcast/addon.xml
+++ b/plugin.audio.shoutcast/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.audio.shoutcast"
        name="Shoutcast"
-       version="1.0.6"
+       version="1.0.7"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
diff --git a/plugin.audio.shoutcast/default.py 
b/plugin.audio.shoutcast/default.py
index 0dce970..c6c1148 100644
--- a/plugin.audio.shoutcast/default.py
+++ b/plugin.audio.shoutcast/default.py
@@ -26,6 +26,8 @@ import unicodedata
 
 BASE_URL = 'http://yp.shoutcast.com/sbin/newxml.phtml'
 
+__XBMC_Revision__ = xbmc.getInfoLabel('System.BuildVersion')
+
 def INDEX():
   req = urllib2.Request(BASE_URL)
   response = urllib2.urlopen(req)
@@ -48,7 +50,11 @@ def RESOLVE(id):
     addLink(name,url,stat.attributes["br"].value)
 
 def PLAY(st_id, tunein):
-  url = "http://yp.shoutcast.com%s?id=%s"; %(tunein,st_id,)
+  if __XBMC_Revision__.startswith("10.0"):
+    url = "shout://yp.shoutcast.com%s?id=%s" %(tunein,st_id,)
+  else:
+    url = "http://yp.shoutcast.com%s?id=%s"; %(tunein,st_id,)
+  print "#### plugin.audio.shoutcast #### URL: %s" % url    
   xbmc.Player().play(url)
 
 def addLink(name,url,size):

-----------------------------------------------------------------------

Summary of changes:
 plugin.audio.shoutcast/addon.xml  |    2 +-
 plugin.audio.shoutcast/default.py |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to