81
82
83
84
85
86
87
88
89
90
91
92 | ))
return r
# Update `url` on station data access (incurs a delay for playing or recording)
def resolve_urn(self, row):
if row.get("url").startswith("urn:delicast"):
html = ahttp.get(r["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
row["url"] = ls[0]
return row
|
|
| 81
82
83
84
85
86
87
88
89
90
91
92 | ))
return r
# Update `url` on station data access (incurs a delay for playing or recording)
def resolve_urn(self, row):
if row.get("url").startswith("urn:delicast"):
html = ahttp.get(row["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
row["url"] = ls[0]
return row
|