diff --git a/svtplay-dl b/svtplay-dl index f274984..90fd5f7 100755 --- a/svtplay-dl +++ b/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: