mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: use parse_qs instead of regex to parse the query
This commit is contained in:
parent
3a1735144c
commit
6d3c57a667
@ -187,9 +187,9 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
videos = self._genre(dataj)
|
||||
else:
|
||||
if parse.query:
|
||||
match = re.search("tab=(.+)", parse.query)
|
||||
if match:
|
||||
tab = match.group(1)
|
||||
query = parse_qs(parse.query)
|
||||
if "tab" in query:
|
||||
tab = query["tab"][0]
|
||||
|
||||
if dataj["relatedVideoContent"]:
|
||||
items = dataj["relatedVideoContent"]["relatedVideosAccordion"]
|
||||
|
Loading…
Reference in New Issue
Block a user