1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

tv4play: Improve warning message when using -A on clips

This commit is contained in:
Johan Andersson 2024-05-05 13:25:47 +02:00
parent 33246dec8a
commit 587754bb28

View File

@ -109,8 +109,11 @@ class Tv4play(Service, OpenGraphThumbMixin):
items = []
parse = urlparse(self.url)
if parse.path.startswith("/klipp") or parse.path.startswith("/video"):
logging.warning("Use program page instead of the clip / video page.")
if parse.path.startswith("/klipp"):
logging.warning("-A on clips is not supported.")
return episodes
if parse.path.startswith("/video"):
logging.warning("Use program page instead of the video one.")
return episodes
token = self._login()