From 647d119ce8a077d616644b81b6ed5dee0d8aa816 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 28 Oct 2018 16:37:58 +0100 Subject: [PATCH] tv4play: better message if the video is not available fixes: #981 --- lib/svtplay_dl/service/tv4play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index a725bd5..94fa807 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -74,7 +74,7 @@ class Tv4play(Service, OpenGraphThumbMixin): url = "https://playback-api.b17g.net/media/{}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine".format(vid) res = self.http.request("get", url, cookies=self.cookies) if res.status_code > 200: - yield ServiceError("Can't play this because the video is geoblocked.") + yield ServiceError("Can't play this because the video is geoblocked or not available.") return if res.json()["playbackItem"]["type"] == "hls": streams = hlsparse(self.config, self.http.request("get", res.json()["playbackItem"]["manifestUrl"]),