mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Dont download subtitles when output is stdout
This commit is contained in:
parent
d8433add3f
commit
537c0247a8
@ -807,6 +807,7 @@ class Urplay():
|
||||
else:
|
||||
download_rtmp(options, rtmp)
|
||||
if options.subtitle:
|
||||
if options.output != "-"
|
||||
subtitle_tt(options, subtitle)
|
||||
|
||||
class Qbrick():
|
||||
@ -903,6 +904,7 @@ class Kanal5():
|
||||
options.other = "-W %s -y %s " % ("http://www.kanal5play.se/flash/StandardPlayer.swf", filename)
|
||||
download_rtmp(options, steambaseurl)
|
||||
if options.subtitle:
|
||||
if options.output != "-"
|
||||
subtitle_json(options, subtitle)
|
||||
|
||||
class Expressen():
|
||||
@ -1002,6 +1004,7 @@ class Viaplay():
|
||||
options.other = "-W http://flvplayer.viastream.viasat.tv/play/swf/player110516.swf?rnd=1315434062"
|
||||
download_rtmp(options, filename)
|
||||
if options.subtitle and subtitle:
|
||||
if options.output != "-"
|
||||
subtitle_sami(options, subtitle)
|
||||
|
||||
class Tv4play():
|
||||
@ -1071,6 +1074,7 @@ class Tv4play():
|
||||
manifest = "%s?hdcore=2.8.0&g=hejsan" % test["path"]
|
||||
download_hds(options, manifest, swf)
|
||||
if options.subtitle and subtitle:
|
||||
if options.output != "-"
|
||||
subtitle_smi(options, subtitle)
|
||||
|
||||
class Svtplay():
|
||||
@ -1141,6 +1145,7 @@ class Svtplay():
|
||||
except KeyError:
|
||||
sys.exit(1)
|
||||
if len(suburl) > 0:
|
||||
if options.output != "-"
|
||||
subtitle_wsrt(options, suburl)
|
||||
|
||||
class Nrk(object):
|
||||
|
Loading…
Reference in New Issue
Block a user