ADDED contrib/radiolist.py Index: contrib/radiolist.py ================================================================== --- contrib/radiolist.py +++ contrib/radiolist.py @@ -0,0 +1,109 @@ +# encoding: UTF-8 +# api: streamtuner2 +# title: radiolist.net +# description: Station list by continent+country +# url: http://radiolist.net/ +# version: 0.1 +# type: channel +# category: radio +# priority: extra +# png: +# iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAFVBMVEVKb61qibyDnMegs9S6yeDV4O37/vyx66abAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMB +# AJqcGAAAAAd0SU1FB+ECDBAgLJqgZW4AAADoSURBVBjTNdBNj4MgEAbgqdLeZdo9C5NwFmo5Y7Wedauc1y/+/09YdLskkDwJmZl3IOxnON4A8frQhdc/7mG2cv3gx29X +# rdUfZuVHQ3JHEzZ7GSuNXxFV/FYYwryO6MOiZqEdnQPUC/fsXZaMuxa6MFfOVYN7kIWpHZClyJGLFjbbC617KaRUEJ4r4fU7IqNYrW5f2kgU5gZInG6MZ086eejcyIvO +# 1KwoLayoJjqnuWO5giW8msxVmBQXD5PttSlRm8TG2fDNZS3rRO/opeSCMnPa82xSmNgkfRxJ5yZxlPrPDmLu+7GqX4lERq4G0UEyAAAAAElFTkSuQmCC +# extraction-method: regex +# +# Radio station list grouped by continents and countries. +# Some categories return no results, because web players are +# filtered out. + + +import re +import ahttp +from config import * +from channels import * + + +# radiolist.net +class radiolist (ChannelPlugin): + + # module attributes + listformat = "pls" + has_search = False + categories = ["Europe", "America", "Canada", "Oceania", "Asia"] + catmap = {"Europe":"", "America":"world", "Canada":"world/canada", "Oceania":"world/oceania", "Asia":"world/asia"} + titles = dict( genre="Genre", title="Station", playing="Location", bitrate="Bitrate", listeners=False ) + + # just a static list for now + def update_categories(self): + self.catmap = {"Europe":"", "America":"world", "Canada":"world/canada", "Oceania":"world/oceania", "Asia":"world/asia"} + c = []# + rx_links = re.compile(r""" +