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

postprocess: generate correct filename

This commit is contained in:
Johan Andersson 2018-05-13 01:44:21 +02:00
parent 5474da2251
commit 9ce61f499d

View File

@ -7,6 +7,7 @@ from requests import post, codes, Timeout
from re import match
from svtplay_dl.log import log
from svtplay_dl.utils.output import formatname
from svtplay_dl.utils.proc import which, run_program
@ -156,7 +157,7 @@ class postprocess(object):
if self.stream.finished is False:
return
orig_filename = self.stream.output
orig_filename = formatname(self.stream.output, self.config, self.stream.output_extention)
cmd = [self.detect, "-i", orig_filename]
_, stdout, stderr = run_program(cmd, False) # return 1 is good here.