v0.4.2 update

pull/140/head
Mason10198 2 years ago
parent 92d956e3d8
commit 3b17599688

@ -721,17 +721,18 @@ def say_alerts(alerts):
alert, alert,
ALERT_INDEXES[index], ALERT_INDEXES[index],
) )
if len(set(descriptions)) > 1 or len(set(end_times)) > 1: if config["Alerting"]["WithMultiples"]:
LOGGER.debug( if len(set(descriptions)) > 1 or len(set(end_times)) > 1:
"sayAlert: Found multiple unique instances of the alert %s", LOGGER.debug(
alert, "sayAlert: Found multiple unique instances of the alert %s",
) alert,
multiples_sound = AudioSegment.from_wav( )
os.path.join(SOUNDS_PATH, "ALERTS", "SWP_149.wav") multiples_sound = AudioSegment.from_wav(
) os.path.join(SOUNDS_PATH, "ALERTS", "SWP_149.wav")
combined_sound += ( )
AudioSegment.silent(duration=200) + multiples_sound combined_sound += (
) AudioSegment.silent(duration=200) + multiples_sound
)
alert_count += 1 alert_count += 1
added_county_codes = set() added_county_codes = set()
@ -951,7 +952,9 @@ def build_tailmessage(alerts):
multiples_sound = AudioSegment.from_wav( multiples_sound = AudioSegment.from_wav(
os.path.join(SOUNDS_PATH, "ALERTS", "SWP_149.wav") os.path.join(SOUNDS_PATH, "ALERTS", "SWP_149.wav")
) )
combined_sound += AudioSegment.silent(duration=200) + multiples_sound combined_sound += (
AudioSegment.silent(duration=200) + multiples_sound
)
# Add county names if they exist # Add county names if they exist
if county_identifiers: if county_identifiers:

Loading…
Cancel
Save

Powered by TurnKey Linux.