main -> 2023.03.01 ohli24 버그 픽스 (.01. code cleanup)
This commit is contained in:
@@ -142,8 +142,11 @@ class FfmpegQueue(object):
|
||||
# os.makedirs(save_path)
|
||||
# except:
|
||||
# logger.debug('program path make fail!!')
|
||||
|
||||
# 파일 존재여부 체크
|
||||
filepath = entity.get_video_filepath()
|
||||
filepath = str(entity.get_video_filepath())
|
||||
self.P.logger.debug(filepath)
|
||||
self.P.logger.debug(entity.get_video_filepath())
|
||||
if os.path.exists(filepath):
|
||||
entity.ffmpeg_status_kor = "파일 있음"
|
||||
entity.ffmpeg_percent = 100
|
||||
@@ -151,6 +154,8 @@ class FfmpegQueue(object):
|
||||
# plugin.socketio_list_refresh()
|
||||
continue
|
||||
dirname = os.path.dirname(filepath)
|
||||
self.P.logger.debug(type(dirname))
|
||||
self.P.logger.debug(dirname)
|
||||
if not os.path.exists(dirname):
|
||||
os.makedirs(dirname)
|
||||
f = ffmpeg.Ffmpeg(
|
||||
|
||||
@@ -18,7 +18,7 @@ def yommi_timeit(func):
|
||||
total_time = end_time - start_time
|
||||
# print(f"Function {func.__name__}{args} {kwargs} Took {total_time:.4f} secs")
|
||||
logger.opt(colors=True).debug(
|
||||
f"<red>{func.__name__}{args} {kwargs}</red> function took <green>{total_time:.4f}</green>secs"
|
||||
f"<red>{func.__name__}{args} {kwargs}</red> function took <green>{total_time:.4f}</green> secs"
|
||||
)
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user