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

tv4play: show an error message when the video is not there

This commit is contained in:
Johan Andersson 2016-03-27 13:02:49 +02:00
parent f92e94a8d2
commit 1627abc956

View File

@ -63,6 +63,9 @@ class Tv4play(Service, OpenGraphThumbMixin):
if xml.find("drmProtected").text == "true":
yield ServiceError("We cant download DRM protected content from this site.")
return
if xml.find("playbackStatus").text == "NOT_STARTED":
yield ServiceError("Can't download something that is not started")
return
if self.options.output_auto:
directory = os.path.dirname(self.options.output)