mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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):
|
class postprocess(object):
|
||||||
def __init__(self, stream):
|
def __init__(self, stream):
|
||||||
self.stream = stream
|
self.stream = stream
|
||||||
self.detect = False
|
self.detect = None
|
||||||
for i in ["ffmpeg", "avconv"]:
|
for i in ["ffmpeg", "avconv"]:
|
||||||
self.detect = which(i)
|
self.detect = which(i)
|
||||||
if self.detect:
|
if self.detect:
|
||||||
break
|
break
|
||||||
|
|
||||||
def remux(self):
|
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")
|
log.error("Cant detect ffmpeg or avconv. cant mux files without it")
|
||||||
return
|
return
|
||||||
if self.stream.finished is False:
|
if self.stream.finished is False:
|
||||||
@ -45,7 +45,7 @@ class postprocess(object):
|
|||||||
os.rename(tempfile, new_name)
|
os.rename(tempfile, new_name)
|
||||||
|
|
||||||
def merge(self):
|
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")
|
log.error("Cant detect ffmpeg or avconv. cant mux files without it")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user