From b10d3b27494fc2306bf0c9d5ac63a9ca8ba1a1d2 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 15 Jan 2020 15:19:12 +0800 Subject: [PATCH] adjust --- video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video.py b/video.py index e61842f..2909d2d 100644 --- a/video.py +++ b/video.py @@ -37,10 +37,10 @@ def convert(origin, target): answer = 'Overwrite ? [y/N]' try: outs, errs = proc.communicate(timeout=300) - ret_info = str(outs, encoding='utf-8') + ret_info = str(outs, encoding='utf-8') print(ret_info, errs) if answer in ret_info: - proc.stdin.write(b'y') + proc.stdin.write(b'y') elif proc.returncode == 0: print("{0} convert {1} Success, origin dat will remove!".format(origin, target)) os.remove(origin) @@ -56,4 +56,4 @@ if __name__ == "__main__": codec = sys.argv[1] # timeout=sys.argv[2] print("codec:: {0}".format(codec)) - list_folder(DAT_FOLDER, TARGET_FOLDER, codec) + list_folder(DAT_FOLDER, TARGET_FOLDER, codec) \ No newline at end of file