feat(config): add events section (session timeout + skip rule thresholds)

This commit is contained in:
2026-04-25 20:46:23 -04:00
parent 4fcf2c9616
commit 722a6784a7
2 changed files with 22 additions and 0 deletions
+9
View File
@@ -36,3 +36,12 @@ subsonic:
# apiKey (OpenSubsonic) and falls back to u+t+s token auth.
# Env: SMARTMUSIC_SUBSONIC_ALLOW_PLAINTEXT_PASSWORD
allow_plaintext_password: false
events:
# Idle gap (minutes) between play_events that closes a play_session and
# starts a new one. Spec §6.
session_timeout_minutes: 30
# Skip rule (spec §6): a play counts as a SKIP if completion ratio is below
# this threshold AND duration played (ms) is below the next threshold.
skip_max_completion_ratio: 0.5
skip_max_duration_played_ms: 30000