bitwarden

This commit is contained in:
jaydee
2024-09-25 00:48:50 +02:00
parent cc0c01181a
commit ee094f596b

View File

@@ -19,7 +19,7 @@ elif sys.platform == "darwin":
elif sys.platform == "win32":
ops = "win"
try:
opts, args = getopt.getopt(sys.argv[1:], "ta:r:fp:d:s:", ["command=", "help", "output=", "backup"])
opts, args = getopt.getopt(sys.argv[1:], "x:ta:r:fp:d:s:", ["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"
@@ -53,6 +53,8 @@ for o, a in opts:
_ACTION = a
elif o in ("-t", "--test"):
_TEST = True
elif o in ("-x", "--file"):
_FILE = a
elif o in ("-s", "--sequence"):
a = a.split(",")
for s in a:
@@ -70,7 +72,17 @@ for o, a in opts:
#print(_FULL_PATH)
if _ACTION == "flip":
export_name = "X" + _FILE
if ops == "win":
myCmd = [
"ffmpeg", "-display_rotation", "180", "-f", "-i", _FILE ,"-vcodec", "copy", "-acodec", "copy", "-y", export_name
]
else:
myCmd = [
"/opt/ffmpeg/ffmpeg", "-display_rotation", "180", "-f", "-i", _FILE, "-vcodec", "copy", "-acodec", "copy", "-y", export_name
]
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
if _ACTION == "join":
for _DAY_DIR in _DAY_DIRS:
if ops == "win":