File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ You can contribute to translations on [__Weblate__](https://hosted.weblate.org/p
1313
1414# Installation
1515
16- These install instructions are constantly tested via CI/CD pipeline on Debian Bullseye and Ubuntu Focal.
17-
18161 . Install ** Python 3.7 or later** and build dependencies
1917
2018 _ Here the commands for APT-based Linux distributions are given._
Original file line number Diff line number Diff line change 1- VERSION = "0.43.1b3 "
1+ VERSION = "0.43.1b4 "
Original file line number Diff line number Diff line change 2121import stat
2222import subprocess
2323import time
24+ from shlex import quote
2425
2526from motioneye import utils
2627
@@ -89,7 +90,7 @@ def list_resolutions(device):
8990 resolutions = set ()
9091 output = b''
9192 started = time .time ()
92- cmd = f"v4l2-ctl -d ' { device } ' --list-formats-ext | grep -vi stepwise | grep -oE '[0-9]+x[0-9]+' || true"
93+ cmd = f"v4l2-ctl -d { quote ( device ) } --list-formats-ext | grep -vi stepwise | grep -oE '[0-9]+x[0-9]+' || true"
9394 logging .debug (f'running command "{ cmd } "' )
9495
9596 try :
You can’t perform that action at this time.
0 commit comments