From ab1686131459fb68f05f2764024d4c00089fe25e Mon Sep 17 00:00:00 2001 From: s8n Date: Fri, 8 May 2026 02:37:23 +0100 Subject: [PATCH] wrapper: default new users to English audio + subs (was pol/eng) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Owner flipped libraries to PreferredMetadataLanguage=en, MetadataCountryCode=US. New-user defaults must match. Wrapper now sets: AudioLanguagePreference=eng (was pol) SubtitleLanguagePreference=eng SubtitleMode=Default (was Always — let player decide based on audio) --- bin/add-jellyfin-user.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/add-jellyfin-user.sh b/bin/add-jellyfin-user.sh index 5b3445b..44d35d8 100755 --- a/bin/add-jellyfin-user.sh +++ b/bin/add-jellyfin-user.sh @@ -66,15 +66,16 @@ rm -f /tmp/dp-cur.$$.json /tmp/dp-fix.$$.json [[ "$HTTP" == "204" ]] || { echo " DisplayPreferences POST failed: $HTTP"; exit 1; } echo " Home layout applied." -echo "[3/3] Setting subtitle + audio prefs (subs=Always/eng, audio=pol)..." +echo "[3/3] Setting language prefs (audio=eng, subs=eng default)..." curl -ks "$JELLYFIN_URL/Users/$USER_ID" -H "Authorization: $AUTH" > /tmp/u.$$.json python3 - < /tmp/u-fix.$$.json import json with open('/tmp/u.$$.json') as f: u = json.load(f) c = u['Configuration'] -c['SubtitleMode'] = 'Always' +c['SubtitleMode'] = 'Default' c['SubtitleLanguagePreference'] = 'eng' -c['AudioLanguagePreference'] = 'pol' +c['AudioLanguagePreference'] = 'eng' +c['PlayDefaultAudioTrack'] = True print(json.dumps(c)) EOF HTTP=$(curl -ks -X POST "$JELLYFIN_URL/Users/$USER_ID/Configuration" \