1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

dplay: change to “is” instead of ==

This commit is contained in:
Johan Andersson 2016-02-07 10:32:47 +01:00
parent 0f340b194e
commit 4b6393c060

View File

@ -33,7 +33,7 @@ class Dplay(Service):
vid = match.group(1)
data = self.http.request("get", "http://www.dplay.se/api/v2/ajax/videos?video_id=%s" % vid).text
dataj = json.loads(data)
if dataj["data"] == None:
if dataj["data"] is None:
yield ServiceError("Cant find video. wrong url without video?")
return
if self.options.username and self.options.password: