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

dplay: fix a crash when getting info for video

This commit is contained in:
Johan Andersson 2020-10-10 12:57:27 +02:00
parent 7f5a70007d
commit 26657e47e4

View File

@ -84,7 +84,7 @@ class Dplay(Service):
return
self.output["id"] = janson["data"]["id"]
api = "https://disco-api.{}/playback/videoPlaybackInfo/{}".format(self.domain, janson["data"]["id"])
api = "https://disco-api.{}/playback/videoPlaybackInfo/{}?usePreAuth=true".format(self.domain, janson["data"]["id"])
res = self.http.get(api)
if res.status_code > 400:
yield ServiceError("You dont have permission to watch this")