@@ -1,10 +1,10 @@ # api: streamtunter2 # title: Live365 # description: Around 5000 categorized internet radio streams, some paid ad-free ones. -# version: 0.3 +# version: 0.4 # type: channel # category: radio # url: http://www.live365.com/ # config: - # priority: optional @@ -16,11 +16,20 @@ # AOuvCHp1NcmFMK6ERx0wEvGmou5OtLJSrJUV7n/wEWY4TOLKCHsnlfV8hq+hgc3eL4l9O4y7sYGErgyIofqaYEHdqbvljzWx+v6HaI5ERSCE2Pen0pE4Wh22NUXxOx1Exq+yOTVRobRMzSxGZqa6zUI/3uefYcOrsq0JEqokhcRAkhSSuBti+gw5F9qxSw+wuRrpbp6e # XVQBLi+vXatfngseeuGlE/5TjUQX7pCSNoZbkNIUUrqCWRCg8u0OKC9h/L2Oz0OjP73xP5g+PXeyq+R4Q+eR5qfJ8maz/ds8AIGqoySNBMs3xvhjbKT7wvfT/8K0bwHAxy31QcWRIaA1v/ww3kA+0V8mAQb8+UX9bV99tw/nfwAe2WTAAcikxQAAAABJRU5ErkJggg== # # Live365 lists around 5000 radio stations. Some are paid # entries and require a logon. This plugins tries to filter -# thoise out. +# those out. + + +# Non-tracking cookies: +# +# box_mc |bitrate=256|ls=3|hasFlash=Y|ab=viphp:G3|POC=8|mvd=2|SUPMsg=| (desktop player off) +# |ab=viphp:G3|POC=10|bitrate=256|mvd=2|ls=3|hasFlash=Y|SUPMsg=| (desktop player on) +# pg_mc |hp=A|darg=|curl=|curlt=Live365 - My Live365 - Listen Settings| +# session_mc |plr=N|site=web| +# player_mc |Vol=50| # streamtuner2 modules from config import * from uikit import * @@ -79,15 +88,15 @@ # extract stream infos def update_streams(self, cat): - # Retrieve genere index pages + # Retrieve genre index pages html = "" for i in [1, 17, 33, 49]: url = "http://www.live365.com/cgi-bin/directory.cgi?first=%i&site=web&mode=3&genre=%s&charset=UTF-8&target=content" % (i, cat.lower()) - html += ahttp.get(url, feedback=self.parent.status) + html += ahttp.get(url) # Extract from JavaScript rx = re.compile(r""" stn.set\( " (\w+) ", \s+ " ((?:[^"\\]+|\\.)*) "\); \s+ """, re.X|re.I|re.S|re.M)