1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: fixes for exclude in genre and -A

This commit is contained in:
Johan Andersson 2017-02-15 00:47:36 +01:00
parent 7ab4c060ba
commit c9020020e7

View File

@ -129,19 +129,14 @@ class Svtplay(Service, OpenGraphThumbMixin):
parse = urlparse(self._url)
dataj= jansson["clusterPage"]
tab = re.search("tab=(.+)",parse.query)
if(tab):
if tab:
tab = tab.group(1)
for i in dataj["tabs"]:
if i["slug"] == tab:
for n in i["content"]:
parse = urlparse(n["contentUrl"])
if parse.path not in videos:
videos.append(parse.path)
videos = self.videos_to_list(i["content"], videos)
else:
for i in dataj["clips"]:
parse = urlparse(i["contentUrl"])
if parse.path not in videos:
videos.append(parse.path)
videos = self.videos_to_list(dataj["clips"], videos)
return videos
def find_all_episodes(self, options):