1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

svtplay: change -A to be a blacklist instead of a whitelist

sometimes slug was avsnitt, sasong* or year.
This commit is contained in:
Johan Andersson 2017-09-18 20:21:17 +02:00
parent 12c0847602
commit 700f4e0032

View File

@ -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":