From b4de055429504a937e8fbc972964e44856a65845 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 11 Nov 2022 15:24:29 +0100 Subject: [PATCH] Fix file.write call. Bump version to v0.0.3a3 --- encode_single_video.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/encode_single_video.py b/encode_single_video.py index cf8c7f2..f86c079 100755 --- a/encode_single_video.py +++ b/encode_single_video.py @@ -52,7 +52,7 @@ encoding: dict[str, Any] = { # program version # make tests reproducible by tag -version = "v0.0.3a2" +version = "v0.0.3a3" # always round timestamp to integer def now(): @@ -372,10 +372,10 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. Failed encoding", - inputfile, - "to", - outputfile, + "FFMPEG error. Failed encoding " + + inputfile + + " to " + + outputfile, ) endtime = now() @@ -388,8 +388,7 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate VMAF score of", - outputfile, + "FFMPEG error. To calculate VMAF score of " + outputfile ) try: @@ -397,8 +396,7 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate SSIM score of", - outputfile, + "FFMPEG error. To calculate SSIM score of " + outputfile ) try: @@ -406,8 +404,7 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate MSE score of", - outputfile, + "FFMPEG error. To calculate MSE score of " + outputfile ) write_line(