mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: they started to use single quotes instead of double.
fixes #451 fixes #449
This commit is contained in:
parent
766fd34d62
commit
61b512849b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user