66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 | elif cat in self.radio:
grp = "radio"
url = self.api_radio % cat.lower().replace(" ","").replace("&","")
else:
return []
# retrieve API data
data = http.ajax(url, None)
data = json.loads(data)
# tranform datasets
if grp == "podcast":
return [{
"genre": cat,
"title": row["titel"], |
|
| 66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 | elif cat in self.radio:
grp = "radio"
url = self.api_radio % cat.lower().replace(" ","").replace("&","")
else:
return []
# retrieve API data
data = http.get(url, params=None, ajax=1)
data = json.loads(data)
# tranform datasets
if grp == "podcast":
return [{
"genre": cat,
"title": row["titel"], |