1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

radioplay: forgot data input in re.search

This commit is contained in:
Johan Andersson 2014-12-22 10:17:14 +01:00
parent 6edeb93400
commit 71c29c1a02

View File

@ -20,7 +20,7 @@ class Radioplay(Service):
if error: if error:
log.error("Can't get the page") log.error("Can't get the page")
return return
match = re.search(r"RP.vcdData = ({.*});</script>", ) match = re.search(r"RP.vcdData = ({.*});</script>", data)
if match: if match:
data = json.loads(match.group(1)) data = json.loads(match.group(1))
for i in list(data["station"]["streams"].keys()): for i in list(data["station"]["streams"].keys()):