From d07f147423dd5fe9b2e7f4a6bfe604ab3f3b0f96 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 21 Mar 2021 06:00:21 +0100 Subject: [PATCH] fixes --- copyparty/mtag.py | 4 ++-- copyparty/up2k.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/copyparty/mtag.py b/copyparty/mtag.py index efe93ba7..a57bea54 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -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) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index aeaaee9e..89ea4e28 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -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)