mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
postprocess: this should be None and not False
This commit is contained in:
parent
41440ae4c7
commit
c125540498
@ -9,14 +9,14 @@ from svtplay_dl.utils import which
|
||||
class postprocess(object):
|
||||
def __init__(self, stream):
|
||||
self.stream = stream
|
||||
self.detect = False
|
||||
self.detect = None
|
||||
for i in ["ffmpeg", "avconv"]:
|
||||
self.detect = which(i)
|
||||
if self.detect:
|
||||
break
|
||||
|
||||
def remux(self):
|
||||
if self.detect is False:
|
||||
if self.detect is None:
|
||||
log.error("Cant detect ffmpeg or avconv. cant mux files without it")
|
||||
return
|
||||
if self.stream.finished is False:
|
||||
@ -45,7 +45,7 @@ class postprocess(object):
|
||||
os.rename(tempfile, new_name)
|
||||
|
||||
def merge(self):
|
||||
if self.detect is False:
|
||||
if self.detect is None:
|
||||
log.error("Cant detect ffmpeg or avconv. cant mux files without it")
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user