aboutsummaryrefslogtreecommitdiff
path: root/src/components/video.py
diff options
context:
space:
mode:
authortassaron2024-09-15 17:00:03 -0400
committertassaron2024-09-15 17:00:03 -0400
commit9d45f7f1a986aaa5d3c084c7ae747442b94a61b1 (patch)
treebef1567cad354586b65b342f49664776a72aea5f /src/components/video.py
parent53590f47a3812ea563417d2e1276e57a92a8654a (diff)
fix #78
Diffstat (limited to 'src/components/video.py')
-rw-r--r--src/components/video.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/video.py b/src/components/video.py
index 9fffc26..60ca800 100644
--- a/src/components/video.py
+++ b/src/components/video.py
@@ -63,16 +63,16 @@ class Component(Component):
def properties(self):
props = []
+ outputFile = None
if hasattr(self.parent, 'lineEdit_outputFile'):
+ # check only happens in GUI mode
outputFile = self.parent.lineEdit_outputFile.text()
- else:
- outputFile = str(self.parent.args.output)
if not self.videoPath:
self.lockError("There is no video selected.")
elif not os.path.exists(self.videoPath):
self.lockError("The video selected does not exist!")
- elif os.path.realpath(self.videoPath) == os.path.realpath(outputFile):
+ elif outputFile and os.path.realpath(self.videoPath) == os.path.realpath(outputFile):
self.lockError("Input and output paths match.")
if self.useAudio: