force English everywhere on all 9 users + wrapper
AudioLanguagePreference=eng, SubtitleLanguagePreference=eng, SubtitleMode=Default, PlayDefaultAudioTrack=true, UICulture=en-US. Per-user Configuration POST applied to all 9 existing users + wrapper updated for future creations.
This commit is contained in:
parent
117fa33048
commit
826d76733c
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ rm -f /tmp/dp-cur.$$.json /tmp/dp-fix.$$.json
|
||||||
[[ "$HTTP" == "204" ]] || { echo " DisplayPreferences POST failed: $HTTP"; exit 1; }
|
[[ "$HTTP" == "204" ]] || { echo " DisplayPreferences POST failed: $HTTP"; exit 1; }
|
||||||
echo " Home layout applied."
|
echo " Home layout applied."
|
||||||
|
|
||||||
echo "[3/4] Setting language prefs (audio=eng, subs=eng default)..."
|
echo "[3/4] Setting language prefs (force English everywhere, no fallback)..."
|
||||||
curl -ks "$JELLYFIN_URL/Users/$USER_ID" -H "Authorization: $AUTH" > /tmp/u.$$.json
|
curl -ks "$JELLYFIN_URL/Users/$USER_ID" -H "Authorization: $AUTH" > /tmp/u.$$.json
|
||||||
python3 - <<EOF > /tmp/u-fix.$$.json
|
python3 - <<EOF > /tmp/u-fix.$$.json
|
||||||
import json
|
import json
|
||||||
|
|
@ -81,6 +81,8 @@ c['SubtitleMode'] = 'Default'
|
||||||
c['SubtitleLanguagePreference'] = 'eng'
|
c['SubtitleLanguagePreference'] = 'eng'
|
||||||
c['AudioLanguagePreference'] = 'eng'
|
c['AudioLanguagePreference'] = 'eng'
|
||||||
c['PlayDefaultAudioTrack'] = True
|
c['PlayDefaultAudioTrack'] = True
|
||||||
|
c['UICulture'] = 'en-US'
|
||||||
|
c['DisplayMissingEpisodes'] = False
|
||||||
print(json.dumps(c))
|
print(json.dumps(c))
|
||||||
EOF
|
EOF
|
||||||
HTTP=$(curl -ks -X POST "$JELLYFIN_URL/Users/$USER_ID/Configuration" \
|
HTTP=$(curl -ks -X POST "$JELLYFIN_URL/Users/$USER_ID/Configuration" \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue