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

Group tv3/tv6/tv8 together

This commit is contained in:
Johan Andersson 2011-09-17 11:46:08 +02:00
parent 8445131754
commit f4d14b7f18

View File

@ -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: