Fix known errors found from feedback (DBUS problems, pulseaudio start, one vlc example with error. typos)

This commit is contained in:
Timothyxxx
2024-05-18 04:49:29 +08:00
parent 661b568d43
commit 25e808cc91
6 changed files with 15 additions and 12 deletions

View File

@@ -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