Skip to content

Commit ca0beb1

Browse files
authored
Merge pull request #2 from codegen-sh/codegen-bot/fix-exiftool-dependency-check
2 parents 3ec7057 + 94a216e commit ca0beb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

epstein_video_analyzer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def check_dependencies(self):
6262

6363
for tool, description in required_tools.items():
6464
try:
65-
result = subprocess.run([tool, '-version'],
65+
# exiftool uses -ver instead of -version
66+
version_flag = '-ver' if tool == 'exiftool' else '-version'
67+
result = subprocess.run([tool, version_flag],
6668
capture_output=True, text=True, timeout=10)
6769
if result.returncode == 0:
6870
print(f" ✅ {tool}: Available")
@@ -770,4 +772,3 @@ def main():
770772

771773
if __name__ == "__main__":
772774
sys.exit(main())
773-

0 commit comments

Comments
 (0)