[RELEASE] RadioTunes XBMC plugin - formerly Sky.fm (21th Sep 2014: v3.0.0)
Here is a patch which fixes the broken premium support in RadioTunes. I will also send the patch to the addon author.

Code:
diff --git a/config.ini b/config.ini
index 1b946bf..7456aec 100644
--- a/config.ini
+++ b/config.ini
@@ -20,8 +20,8 @@ public            = http://listen.radiotunes.com/appleapp_low
premium40k     = http://listen.radiotunes.com/appleapp_premium_low
premium64k     = http://listen.radiotunes.com/appleapp_premium_medium
premium128k        = http://listen.radiotunes.com/appleapp_premium
-premium256k        = http://listen.radiotunes.com/appleapp_premium_high
+premium320k        = http://listen.radiotunes.com/appleapp_premium_high
favorites40k   = http://listen.radiotunes.com/premium_low/favorites.pls
favorites64k   = http://listen.radiotunes.com/premium_medium/favorites.pls
favorites128k   = http://listen.radiotunes.com/premium/favorites.pls
-favorites256k   = http://listen.radiotunes.com/premium_high/favorites.pls
+favorites320k   = http://listen.radiotunes.com/premium_high/favorites.pls
diff --git a/httpcomm.py b/httpcomm.py
index e794a6d..bfc5a08 100644
--- a/httpcomm.py
+++ b/httpcomm.py
@@ -31,6 +31,7 @@ class HTTPComm:
             ('Keep-Alive', '115'),
             ('Connection', 'keep-alive'),
             ('Cache-Control', 'max-age=0'),
+            ('Referer', 'http://www.radiotunes.com/')
         ]

         try:
diff --git a/resources/settings.xml b/resources/settings.xml
index 0d007bf..d8fbb11 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -7,15 +7,17 @@
         <setting id="forceupdate" type="bool" label="30010" default="false" />
        <setting id="getpremium" type="lsep" label="30015" />
    </category>
-   <category label="30002">
-       <setting id="username" type="text" label="30003" />
-       <setting id="password" type="text" option="hidden" label="30004" />
-       <setting id="bitrate" type="enum" label="30013" values="40|64|128|256" default="4" />
-       <setting id="usefavorites" type="bool" label="30005" default="false" />
+
+   <category label="30183">
+       <setting id="usepremium" type="bool" label="30002" default="false" />
+       <setting id="username" type="text" label="30003" enable="eq(-1,true)" />
+       <setting id="password" type="text" option="hidden" label="30004" enable="eq(-2,true)" />
+       <setting id="bitrate" type="enum" label="30013" values="40|64|128|320" default="3" enable="eq(-3,true)" />
+       <setting id="usefavorites" type="bool" label="30005" default="false" enable="eq(-4,true)" />
        <setting id="forceupdate" type="bool" label="30010" default="false" />
        <setting id="getpremium" type="lsep" label="30015" />
    </category>
-
+
        <category label="30006">
        <setting id="getpremium" type="lsep" label="30015" />
        <setting type="lsep" label="30017" />
@@ -23,4 +25,5 @@
        <setting type="lsep" label="30019" />
        <setting type="lsep" label="30016" />
    </category>
+
</settings>
Reply


Messages In This Thread
RE: [RELEASE] RadioTunes XBMC plugin - formerly Sky.fm (21th Sep 2014: v3.0.0) - by morlenxus - 2017-04-20, 12:23


Logout Mark Read Team Forum Stats Members Help
[RELEASE] RadioTunes XBMC plugin - formerly Sky.fm (21th Sep 2014: v3.0.0)1
This forum uses Lukasz Tkacz MyBB addons.