mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user