mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Group tv3/tv6/tv8 together
This commit is contained in:
parent
8445131754
commit
f4d14b7f18
22
svtplay-dl
22
svtplay-dl
@ -196,27 +196,7 @@ def main():
|
||||
tv4play = Tv4play(output, quality, live)
|
||||
tv4play.get(url)
|
||||
|
||||
elif re.findall("tv3play", url):
|
||||
parse = urlparse.urlparse(url)
|
||||
match = re.search('\/play\/(.*)/', parse.path)
|
||||
if not match:
|
||||
print "Something wrong with that url"
|
||||
sys.exit(2)
|
||||
url = "http://viastream.viasat.tv/PlayProduct/%s" % match.group(1)
|
||||
viaplay = Viaplay(output, quality, live)
|
||||
viaplay.get(url)
|
||||
|
||||
elif re.findall("tv6play", url):
|
||||
parse = urlparse.urlparse(url)
|
||||
match = re.search('\/play\/(.*)/', parse.path)
|
||||
if not match:
|
||||
print "Something wrong with that url"
|
||||
sys.exit(2)
|
||||
url = "http://viastream.viasat.tv/PlayProduct/%s" % match.group(1)
|
||||
viaplay = Viaplay(output, quality, live)
|
||||
viaplay.get(url)
|
||||
|
||||
elif re.findall("tv8play", url):
|
||||
elif re.findall("(tv3play|tv6play|tv8play)", url):
|
||||
parse = urlparse.urlparse(url)
|
||||
match = re.search('\/play\/(.*)/', parse.path)
|
||||
if not match:
|
||||
|
Loading…
Reference in New Issue
Block a user