95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
""", re.X|re.I|re.S|re.M)
# Group entries before adding them
ls = []
for i,row in groupby(rx.findall(html), self.group_by_station):
row = dict(row)
ls.append({
"name": row["stationName"],
"title": row["title"],
"playing": "n/a",
"id": row["id"],
"access": row["listenerAccess"],
"status": row["status"],
"mode": row["serverMode"],
|
>
>
|
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
""", re.X|re.I|re.S|re.M)
# Group entries before adding them
ls = []
for i,row in groupby(rx.findall(html), self.group_by_station):
row = dict(row)
ls.append({
"status": (None if row["listenerAccess"] == "PUBLIC" else gtk.STOCK_STOP),
"deleted": row["status"] != "OK",
"name": row["stationName"],
"title": row["title"],
"playing": "n/a",
"id": row["id"],
"access": row["listenerAccess"],
"status": row["status"],
"mode": row["serverMode"],
|