• 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 27
[Release] Language Preference Manager
Hello, just want to say that I found this addon by accident and I really like it, and I don't understand why kodi doesn't have it built in
Reply
I am currently using latest Nexus build with French as language.

What are the correct LanguagePreferenceManager settings to:

- Choose French audio if available or fallback to English language
- Choose default audio language if no French or English audio
- Choose French forced subtitles for files with French audio
- Choose French subtitles for files without French audio
- Choose English sutitles if no French subtitles

Thanks in advance.
Reply
I can't get this addon todo anything. I set up my priority list but it never enables any subtitles. I'm on 19.5. Do I need to enable/disable any kodi settings for this addon to start working?

Thanks.
Reply
Where do I find the debug log? I'm on Android.
Reply
Nevermind. I didn't realize that everything loged to the same log.
Reply
This is my settings file.
<settings version="2">
<setting id="enabled">true</setting>
<setting id="log_level">3</setting>
<setting id="turnSubsOn">true</setting>
<setting id="turnSubsOff" default="true">false</setting>
<setting id="useFilename" default="true">false</setting>
<setting id="filenameRegex" default="true">audiostream[_|.|-]*\d+|subtitle[_|.|-]*\d+</setting>
<setting id="delay">500</setting>
<setting id="pause" default="true">false</setting>
<setting id="enableAudio">true</setting>
<setting id="AudioLang01">41</setting>
<setting id="AudioLang02">11</setting>
<setting id="AudioLang03" default="true">46</setting>
<setting id="enableSub">true</setting>
<setting id="SubLang01">41</setting>
<setting id="SubLang02">11</setting>
<setting id="SubLang03" default="true">46</setting>
<setting id="enableCondSub" default="true">false</setting>
<setting id="CondAudioLang01">11</setting>
<setting id="CondSubLang01">41</setting>
<setting id="CondAudioLang02">41</setting>
<setting id="CondSubLang02" default="true">46</setting>
<setting id="CondAudioLang03" default="true">46</setting>
<setting id="ConsSubLang03" default="true">46</setting>
</settings>

This is from the debug

2023-01-13 21:51:39.431 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomAudio"
2023-01-13 21:51:39.431 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomAudio"
2023-01-13 21:51:39.431 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomSub"
2023-01-13 21:51:39.431 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomSub"
2023-01-13 21:51:39.432 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomCondSub"
2023-01-13 21:51:39.432 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomCondSub"
2023-01-13 21:51:39.436 T:8945 INFO <general>: [Language Preference Manager]: service Language Preference Manager version 0.0.7+matrix.3 started
2023-01-13 21:51:39.438 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomAudio"
2023-01-13 21:51:39.438 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomAudio"
2023-01-13 21:51:39.439 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomSub"
2023-01-13 21:51:39.439 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomSub"
2023-01-13 21:51:39.439 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomCondSub"
2023-01-13 21:51:39.439 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomCondSub"
2023-01-13 21:51:39.442 T:8945 DEBUG <CSettingsManager>: requested setting (CondSubLang03) was not found.
2023-01-13 21:51:39.446 T:8945 ERROR <CSettingInt>: Skipped 1 duplicate messages..
2023-01-13 21:51:39.445 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomAudio"
2023-01-13 21:51:39.446 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomAudio"
2023-01-13 21:51:39.446 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomSub"
2023-01-13 21:51:39.446 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomSub"
2023-01-13 21:51:39.446 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomCondSub"
2023-01-13 21:51:39.446 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomCondSub"
2023-01-13 21:51:39.452 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomAudio"
2023-01-13 21:51:39.452 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomAudio"
2023-01-13 21:51:39.452 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomSub"
2023-01-13 21:51:39.452 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomSub"
2023-01-13 21:51:39.453 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomCondSub"
2023-01-13 21:51:39.453 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomCondSub"
2023-01-13 21:51:39.454 T:8945 DEBUG <CSettingsManager>: requested setting (CustomAudio) was not found.
2023-01-13 21:51:39.454 T:8945 DEBUG <CSettingsManager>: requested setting (CustomSub) was not found.
2023-01-13 21:51:39.454 T:8945 DEBUG <CSettingsManager>: requested setting (CustomCondSub) was not found.
2023-01-13 21:51:39.455 T:8945 DEBUG <general>: [Language Preference Manager]:
##### LPM Settings #####
delay: 500ms
audio on: True
subs on: True
cond subs on: False
turn subs on: True, turn subs off: False
use file name: False, file name regex: audiostream[_|.|-]*\d+|subtitle[_|.|-]*\d+
at least one pref on: True
audio prefs: [(set(), [('Turkish', 'tur'), ('English', 'eng'), (None, None)])]
sub prefs: [(set(), [('Turkish', 'tur'), ('English', 'eng'), (None, None)])]
cond sub prefs: [(set(), [('English', 'eng', 'Turkish', 'tur'), ('Turkish', 'tur', None, None), (None, None, None, None)])]
custom audio prefs: []
custom subs prefs: []
custom cond subs prefs: []
##### LPM Settings #####

Not sure why the debug thinks my prefs are Turkish. I chose Swedish as first and English as second subtitle language.
Reply
(2023-01-13, 23:01)tuffno Wrote: This is from the debug

2023-01-13 21:51:39.431 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomAudio"
2023-01-13 21:51:39.431 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomAudio"
2023-01-13 21:51:39.431 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomSub"
2023-01-13 21:51:39.431 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomSub"
2023-01-13 21:51:39.432 T:8945 ERROR <CSettingInt>: error reading the default value of "CustomCondSub"
2023-01-13 21:51:39.432 T:8945 WARNING <CSettingGroup>: unable to read setting "CustomCondSub"
2023-01-13 21:51:39.436 T:8945 INFO <general>: [Language Preference Manager]: service Language Preference Manager version 0.0.7+matrix.3 started

"...."

Not sure why the debug thinks my prefs are Turkish. I chose Swedish as first and English as second subtitle language.
Hello and sorry for some late answers, for a reason I have not gotten any notice of new postings on this thread since late october...

anyway you seem to have installed an old version of this addon (0.0.7) which was broken mixing languages and some other problems.

Please uninstall it and install the most recent one from my github directly : LPM 0.1.6

Note that you will need to fetch the zip file and install it manually with  "Install addon from a zip file" .
Reply
(2022-11-30, 22:50)lanzorg Wrote: I am currently using latest Nexus build with French as language.

What are the correct LanguagePreferenceManager settings to:

- Choose French audio if available or fallback to English language
- Choose default audio language if no French or English audio
- Choose French forced subtitles for files with French audio
- Choose French subtitles for files without French audio
- Choose English sutitles if no French subtitles

Thanks in advance.

Hello, and again sorry I did not see your request before ...

Be sure you install the last version from here : LPM 0.1.6

And please try with the following settings :

Audio Preferences : Enable
Primary Language : French
Secondary Language : English
Third Language : None                   (it should default to any other default track if no French nor English audio are found)

Subtiltle Preferences : Disable

Conditional Subtitle Preferences : Enable
if "French" audio then "None" but Forced tag YES
if "Any" audio then "French" and forced tag NO      (Any is a special language I added for that purpose)
if "Any" audio then "English" and forced tag NO
Reply
Hello !

here is a new version : LPM V1.0.0

Despite the name, it is a minor update with only one new feature to "exclude subtitles based on your list of chosen keywords". The other changes are important though as a clean-up, plus an update of icon/fanart to be able to comply and submit this addon to the official kodi.tv repository  Wink

For those of you who have time and interest , just install this most recent version and give me feedback.
At least confirming I did not introduce any regression.

Plus if any issue to install/use on Nexus, let me know...
Reply
(2023-01-22, 23:19)rockrider69 Wrote: Hello !

here is a new version : LPM V1.0.0

Despite the name, it is a minor update with only one new feature to "exclude subtitles based on your list of chosen keywords". The other changes are important though as a clean-up, plus an update of icon/fanart to be able to comply and submit this addon to the official kodi.tv repository  Wink

For those of you who have time and interest , just install this most recent version and give me feedback.
At least confirming I did not introduce any regression.

Plus if any issue to install/use on Nexus, let me know...
Work fine for me
Reply
@snyft 

Thank you for the feedback.
Have you used it on Nexus or matrix ?
Reply
Works also fine for me using a nightly build from master (23 January build if I remember correctly)

Sorry I didn't provide feedback earlier
Reply
@Dklktn_Dklktn 

Good to know thanks !

Now just waiting for a Team-Kodi member to run Addon-Checker/review my pull request for Matrix and Nexus Repo and hopefully approve it   Wink
Reply
In fact I have found an issue, but maybe it's 100% a kodi bug, I use a nightly build (master branch, from january): the language detected by kodi for audio is always "unknown" whatever the language tag Sad
Reply
(2023-02-05, 16:23)Dklktn_Dklktn Wrote: In fact I have found an issue, but maybe it's 100% a kodi bug, I use a nightly build (master branch, from january): the language detected by kodi for audio is always "unknown" whatever the language tag Sad

When you refer to january master branch, you mean main Kodi Nexus install ? 

Let's check it further anyway.
Could you turn debug on in the LPM addon, and post a link here to you kodi log (via https://paste.kodi.tv/) as well as paste here a mediainfo output of your video file ?
Reply
  • 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 27

Logout Mark Read Team Forum Stats Members Help
[Release] Language Preference Manager2