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:
parent
7f5a70007d
commit
26657e47e4
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user