mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 02:24:53 +01:00
build
This commit is contained in:
@@ -86,7 +86,7 @@ for o, a in opts:
|
||||
|
||||
|
||||
|
||||
|
||||
_BACKUP = []
|
||||
|
||||
#print(_FULL_PATH)
|
||||
|
||||
@@ -179,9 +179,14 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
|
||||
print(output)
|
||||
time.sleep(2)
|
||||
try:
|
||||
print("Moving file to processed")
|
||||
src = _FULL_PATH + filename + "_original"
|
||||
dest = _PROCESSED + "/" + filename
|
||||
if os.path.exists(dest):
|
||||
os.remove(filename)
|
||||
else:
|
||||
print("Moving file to processed")
|
||||
|
||||
|
||||
print(f"Source : {src}")
|
||||
print(f"Destination : {dest}")
|
||||
shutil.move(src, dest)
|
||||
@@ -192,6 +197,8 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
|
||||
modified = create_date["modified"],
|
||||
accessed = create_date["accessed"]
|
||||
)
|
||||
|
||||
|
||||
except ValueError as e:
|
||||
print(e)
|
||||
print(f"Failed to move {export_name}")
|
||||
|
||||
Reference in New Issue
Block a user