diff --git a/handle_imported_video.py b/handle_imported_video.py index e9f3ba6..97c501a 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -161,8 +161,7 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): print(e) print(f"Failed to move {export_name}") - -def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): +def join_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): for _DAY_DIR in _DAY_DIRS: if ops == "win": _FULL_PATH = _SOURCE_DIR + "\\" + _DEV + "\\" + _DAY_DIR + "\\" @@ -333,18 +332,8 @@ def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): os.remove("video.txt") except: pass - -if _ACTION == "modify_date": - modify_creation_date(_FILE,_SRC_FILE) - -if _ACTION == "flip": - flip_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) - -if _ACTION == "join": - encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) - -if _ACTION == "encode": +def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): print("Encode Job") for _DAY_DIR in _DAY_DIRS: if ops == "win": @@ -413,4 +402,17 @@ if _ACTION == "encode": except: print(f"Failed to move {export_name}") - \ No newline at end of file + + +if _ACTION == "modify_date": + modify_creation_date(_FILE,_SRC_FILE) + + +if _ACTION == "flip": + flip_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) + +if _ACTION == "join": + join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) + +if _ACTION == "encode": + encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) \ No newline at end of file