mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: fixes for exclude in genre and -A
This commit is contained in:
parent
7ab4c060ba
commit
c9020020e7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user