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:
@@ -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_"):
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user