fixes
This commit is contained in:
parent
f5cb9f92b9
commit
d07f147423
@ -231,7 +231,7 @@ class MTag(object):
|
||||
"""
|
||||
note:
|
||||
tags which contain newline will be truncated on first \n,
|
||||
ffmpeg emits \n and spacepads the : to align visually
|
||||
ffprobe emits \n and spacepads the : to align visually
|
||||
note:
|
||||
the Stream ln always mentions Audio: if audio
|
||||
the Stream ln usually has kb/s, is more accurate
|
||||
@ -301,7 +301,7 @@ class MTag(object):
|
||||
sec *= 60
|
||||
sec += int(f)
|
||||
except:
|
||||
self.log("invalid timestr from ffmpeg: [{}]".format(tstr), c=3)
|
||||
self.log("invalid timestr from ffprobe: [{}]".format(tstr), c=3)
|
||||
|
||||
ret[".dur"] = sec
|
||||
m = ptn_br1.search(ln)
|
||||
|
@ -647,7 +647,7 @@ class Up2k(object):
|
||||
def _start_mpool(self):
|
||||
if WINDOWS and False:
|
||||
nah = open(os.devnull, "wb")
|
||||
wmic = f"processid={os.getpid()}"
|
||||
wmic = "processid={}".format(os.getpid())
|
||||
wmic = ["wmic", "process", "where", wmic, "call", "setpriority"]
|
||||
sp.call(wmic + ["below normal"], stdout=nah, stderr=nah)
|
||||
|
||||
@ -677,7 +677,7 @@ class Up2k(object):
|
||||
done = self._flush_mpool(wcur)
|
||||
if WINDOWS and False:
|
||||
nah = open(os.devnull, "wb")
|
||||
wmic = f"processid={os.getpid()}"
|
||||
wmic = "processid={}".format(os.getpid())
|
||||
wmic = ["wmic", "process", "where", wmic, "call", "setpriority"]
|
||||
sp.call(wmic + ["below normal"], stdout=nah, stderr=nah)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user