소스 검색

adjust

master
Gitea 5 년 전
부모
커밋
b10d3b2749
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      video.py

+ 3
- 3
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)

불러오는 중...
취소
저장