From 700f4e003211b485edc2b999b6d7625d47476efb Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 18 Sep 2017 20:21:17 +0200 Subject: [PATCH] svtplay: change -A to be a blacklist instead of a whitelist sometimes slug was avsnitt, sasong* or year. --- lib/svtplay_dl/service/svtplay.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index b56589a..68356f1 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -223,9 +223,7 @@ class Svtplay(Service, OpenGraphThumbMixin): if i["slug"] == tab: videos = self.videos_to_list(i["videos"], videos) else: - if "sasong" in i["slug"] or "senast" in i["slug"]: - videos = self.videos_to_list(i["videos"], videos) - elif re.search('^\d+', i["slug"]): + if "klipp" not in i["slug"] and "kommande" not in i["slug"]: videos = self.videos_to_list(i["videos"], videos) if self.options.include_clips: if i["slug"] == "klipp":