mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -19,7 +19,7 @@ elif sys.platform == "darwin":
|
|||||||
elif sys.platform == "win32":
|
elif sys.platform == "win32":
|
||||||
ops = "win"
|
ops = "win"
|
||||||
try:
|
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:
|
except getopt.GetoptError as err:
|
||||||
# print help information and exit:
|
# print help information and exit:
|
||||||
print(str(err)) # will print something like "option -a not recognized"
|
print(str(err)) # will print something like "option -a not recognized"
|
||||||
@@ -53,6 +53,8 @@ for o, a in opts:
|
|||||||
_ACTION = a
|
_ACTION = a
|
||||||
elif o in ("-t", "--test"):
|
elif o in ("-t", "--test"):
|
||||||
_TEST = True
|
_TEST = True
|
||||||
|
elif o in ("-x", "--file"):
|
||||||
|
_FILE = a
|
||||||
elif o in ("-s", "--sequence"):
|
elif o in ("-s", "--sequence"):
|
||||||
a = a.split(",")
|
a = a.split(",")
|
||||||
for s in a:
|
for s in a:
|
||||||
@@ -70,7 +72,17 @@ for o, a in opts:
|
|||||||
|
|
||||||
|
|
||||||
#print(_FULL_PATH)
|
#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":
|
if _ACTION == "join":
|
||||||
for _DAY_DIR in _DAY_DIRS:
|
for _DAY_DIR in _DAY_DIRS:
|
||||||
if ops == "win":
|
if ops == "win":
|
||||||
|
|||||||
Reference in New Issue
Block a user