mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-28 06:04:17 +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
|
return videos
|
||||||
|
|
||||||
res = self.http.get("http://www.svtplay.se/sista-chansen?sida=%s" % page)
|
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:
|
if not match:
|
||||||
return videos
|
return videos
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
|||||||
|
|
||||||
if match is None:
|
if match is None:
|
||||||
videos = []
|
videos = []
|
||||||
match = re.search('_svtplay"] = ({.*});', self.get_urldata())
|
match = re.search("_svtplay'] = ({.*});", self.get_urldata())
|
||||||
if match:
|
if match:
|
||||||
dataj = json.loads(match.group(1))
|
dataj = json.loads(match.group(1))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user