This commit is contained in:
2025-06-17 22:59:27 +02:00
parent 00e9925a88
commit dd2a6d9598

View File

@@ -23,7 +23,7 @@ elif sys.platform == "darwin":
elif sys.platform == "win32":
ops = "win"
try:
opts, args = getopt.getopt(sys.argv[1:], "q:x:ta:r:fp:d:s:z:", ["command=", "help", "output=", "backup"])
opts, args = getopt.getopt(sys.argv[1:], "q:x:ta:r:fp:d:s:z:w:", ["command=", "help", "output=", "backup"])
except getopt.GetoptError as err:
# print help information and exit:
print(str(err)) # will print something like "option -a not recognized"
@@ -51,6 +51,9 @@ for o, a in opts:
_DAY_DIRS = a.split(",")
elif o in ("-f", "--flip"):
_FLIP = True
elif o in ("-w", "--flip"):
_FILTER = True
_PATERN = a
elif o in ("-r", "--source"):
_SOURCE_DIR = a
elif o in ("-a", "--action"):
@@ -103,6 +106,10 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
if not os.path.exists(_PROCESSED):
os.mkdir(_PROCESSED)
for filename in os.listdir(_FULL_PATH):
if _FILTER and _PATERN in filename:
pass
else:
continue
if filename.endswith(".MP4") and not filename.startswith("joined_"):