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:
parent
33246dec8a
commit
587754bb28
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user