35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# control flags
has_search = False
listformat = "srv"
audioformat = "mp3"
titles = dict(listeners=False, bitrate=False, playing="Location")
base = "http://delicast.com/"
categories = ["60s", "70s", "80s", "90s", "Alternative", "Blues", "Chillout", "Christian", "Classical", "Community", "Country", "Culture", "Dance", "Disco", "Easy listening", "Electronic", "Folk", "Funk", "Gospel", "Hiphop", "House Indie", "Information", "Jazz", "Latin", "Lounge", "Love", "Metal", "Oldies", "Pop", "R n b", "Reggae", "Rock", "Romantic", "Soul", "Sports", "Student", "Talk", "Techno", "Trance", "Urban", "World music"]
# static
def update_categories(self):
pass
|
>
|
>
>
>
>
>
>
|
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# control flags
has_search = False
listformat = "srv"
audioformat = "mp3"
titles = dict(listeners=False, bitrate=False, playing="Location")
base = "http://delicast.com/"
categories = ["60s", "70s", "80s", "90s", "Alternative", "Blues",
"Chillout", "Christian", "Classical", "Community", "Country", "Culture",
"Dance", "Disco", "Easy listening", "Electronic", "Folk", "Funk",
"Gospel", "Hiphop", "House Indie", "Information", "Jazz", "Latin",
"Lounge", "Love", "Metal", "Oldies", "Pop", "R n b", "Reggae", "Rock",
"Romantic", "Soul", "Sports", "Student", "Talk", "Techno", "Trance",
"Urban", "World music"]
# static
def update_categories(self):
pass
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
url = "urn:delicast",
genre = cat,
# genre = unhtml(tags),
))
return r
# Update `url`
def row(self):
r = ChannelPlugin.row(self)
if r.get("url") == "urn:delicast":
html = ahttp.get(r["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
r["url"] = ls[0]
return r
|
|
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
url = "urn:delicast",
genre = cat,
# genre = unhtml(tags),
))
return r
# Update `url` on station data access (incurs a delay for playing or recording)
def row(self):
r = ChannelPlugin.row(self)
if r.get("url") == "urn:delicast":
html = ahttp.get(r["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
r["url"] = ls[0]
return r
|