From 61b512849bbd80e9aa584287afd412592ef7a063 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 14 Sep 2016 18:55:33 +0200 Subject: [PATCH] svtplay: they started to use single quotes instead of double. fixes #451 fixes #449 --- lib/svtplay_dl/service/svtplay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index e178f4d..e432b45 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -176,7 +176,7 @@ class Svtplay(Service, OpenGraphThumbMixin): return videos res = self.http.get("http://www.svtplay.se/sista-chansen?sida=%s" % page) - match = re.search('_svtplay"] = ({.*});', res.text) + match = re.search("_svtplay'] = ({.*});", res.text) if not match: return videos @@ -208,7 +208,7 @@ class Svtplay(Service, OpenGraphThumbMixin): if match is None: videos = [] - match = re.search('_svtplay"] = ({.*});', self.get_urldata()) + match = re.search("_svtplay'] = ({.*});", self.get_urldata()) if match: dataj = json.loads(match.group(1)) else: