This commit is contained in:
2025-06-17 21:02:08 +02:00
parent 8d11b30be3
commit e4ba7a9e4a

View File

@@ -161,8 +161,7 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
print(e) print(e)
print(f"Failed to move {export_name}") print(f"Failed to move {export_name}")
def join_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
for _DAY_DIR in _DAY_DIRS: for _DAY_DIR in _DAY_DIRS:
if ops == "win": if ops == "win":
_FULL_PATH = _SOURCE_DIR + "\\" + _DEV + "\\" + _DAY_DIR + "\\" _FULL_PATH = _SOURCE_DIR + "\\" + _DEV + "\\" + _DAY_DIR + "\\"
@@ -333,18 +332,8 @@ def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
os.remove("video.txt") os.remove("video.txt")
except: except:
pass pass
if _ACTION == "modify_date":
modify_creation_date(_FILE,_SRC_FILE)
def encode_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
if _ACTION == "flip":
flip_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _ACTION == "join":
encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _ACTION == "encode":
print("Encode Job") print("Encode Job")
for _DAY_DIR in _DAY_DIRS: for _DAY_DIR in _DAY_DIRS:
if ops == "win": if ops == "win":
@@ -413,4 +402,17 @@ if _ACTION == "encode":
except: except:
print(f"Failed to move {export_name}") print(f"Failed to move {export_name}")
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)