1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

viaplay: this fixes #69 because streams are using non-standard port.

This commit is contained in:
Johan Andersson 2014-03-09 17:26:27 +01:00
parent 4e83665af5
commit e568bef14c

View File

@ -59,7 +59,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
if not match:
log.error("Somthing wrong with rtmpparse")
sys.exit(2)
filename = "%s://%s%s" % (parse.scheme, parse.hostname, match.group(1))
filename = "%s://%s:%s%s" % (parse.scheme, parse.hostname, parse.port, match.group(1))
path = "-y %s" % match.group(2)
options.other = "-W http://flvplayer.viastream.viasat.tv/flvplayer/play/swf/player.swf %s" % path
download_rtmp(options, filename)