mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-12-02 16:14:15 +01:00
tv4play: some fixes for tv4.se
In some cases we dont have vid in the url
This commit is contained in:
parent
b7b50b101f
commit
8e547f436d
@ -907,6 +907,11 @@ class Tv4play():
|
|||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
match = re.search("-(\d+)$", url)
|
match = re.search("-(\d+)$", url)
|
||||||
|
if match:
|
||||||
|
vid = match.group(1)
|
||||||
|
else:
|
||||||
|
data = get_http_data(url)
|
||||||
|
match = re.search("\"vid\":\"(\d+)\",", data)
|
||||||
if match:
|
if match:
|
||||||
vid = match.group(1)
|
vid = match.group(1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user