feat(config): add events section (session timeout + skip rule thresholds)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user