1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

change order of operator

This commit is contained in:
Johan Andersson 2018-02-26 00:06:22 +01:00
parent a7dfff596b
commit 39f1f2c162

View File

@ -135,7 +135,7 @@ class Dplay(Service):
res = self.http.get("https://disco-api.{}/content/videos?{}".format(self.domain, qyerystring))
janson = res.json()
for i in janson["data"]:
if not premium and not "Free" in i["attributes"]["packages"]:
if not premium and "Free" not in i["attributes"]["packages"]:
continue
episodes.append("https://www.{}/videos/{}".format(self.domain, i["attributes"]["path"]))
if len(episodes) == 0: