From 48535691c50f049f365bdc1dcd118b9e56961804 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 9 Oct 2023 00:58:44 +0200 Subject: [PATCH] tv4play: show a warning about all episodes on video or clip page --- lib/svtplay_dl/service/tv4play.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index f6a92e5..c84a458 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -3,6 +3,7 @@ import json import logging import re +from urllib.parse import urlparse from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.dash import dashparse @@ -110,6 +111,11 @@ class Tv4play(Service, OpenGraphThumbMixin): episodes = [] 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.") + return episodes + token = self._login() if token is None: logging.error("You need username / password.")