Fix known errors found from feedback (DBUS problems, pulseaudio start, one vlc example with error. typos)
This commit is contained in:
@@ -58,7 +58,7 @@ def is_vlc_recordings_folder(actual_config_path: str, rule: Dict[str, str]) -> f
|
||||
if line.startswith('#') or not line.strip():
|
||||
continue
|
||||
# Check if the line contains the recording path setting
|
||||
if 'recorded_files_path' in line:
|
||||
if 'input-record-path' in line:
|
||||
# Extract the value of the recording path and remove surrounding whitespace
|
||||
current_path = line.split('=')[-1].strip()
|
||||
# Compare with the Desktop path
|
||||
@@ -66,8 +66,8 @@ def is_vlc_recordings_folder(actual_config_path: str, rule: Dict[str, str]) -> f
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
# The configuration key was not found in the file
|
||||
return 0
|
||||
# The configuration key was not found in the file
|
||||
return 0
|
||||
except FileNotFoundError:
|
||||
logger.error("VLC configuration file not found.")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user