2019-05-26, 16:20
Hi,
Not sure if this is the correct forum for this question, please redirect if necessary. I am running kodi v19 nightly on ubuntu 16.04, updated very regularly. Since 2-3 days ago qobuz plugin stopped loading, throwing an error. Python trace would differ depending on the version of plugin I tried, but basically it boils down to KeyError exception triggered by the following function:
langId parameter is basically an index into a xml schema resources/language/English/strings.xml and this is not caused by issues such as non-existent indexes etc. Qobuz plugin has not been modified for at least 1 year. I tried the official plugin 1.2.3 and dev version 1.3.3 and it is essentially the same error. If I revert kodi version to git20190520 everything starts working fine. So it is clearly some update to getLocalizedString causing this.
Could somebody please help with an explanation? Is it due to this commit https://github.com/xbmc/xbmc/pull/16119 ? If it is, could you please provide a pointer how the function above should be modified? qobuz plugin seems orphaned, but I could go and create a fork.
Thanks!
-- Stanislav
Not sure if this is the correct forum for this question, please redirect if necessary. I am running kodi v19 nightly on ubuntu 16.04, updated very regularly. Since 2-3 days ago qobuz plugin stopped loading, throwing an error. Python trace would differ depending on the version of plugin I tried, but basically it boils down to KeyError exception triggered by the following function:
python:def lang(langId):
s = config.app.addon.getLocalizedString(langId)
if not s:
raise KeyError(langId)
return s
langId parameter is basically an index into a xml schema resources/language/English/strings.xml and this is not caused by issues such as non-existent indexes etc. Qobuz plugin has not been modified for at least 1 year. I tried the official plugin 1.2.3 and dev version 1.3.3 and it is essentially the same error. If I revert kodi version to git20190520 everything starts working fine. So it is clearly some update to getLocalizedString causing this.
Could somebody please help with an explanation? Is it due to this commit https://github.com/xbmc/xbmc/pull/16119 ? If it is, could you please provide a pointer how the function above should be modified? qobuz plugin seems orphaned, but I could go and create a fork.
Thanks!
-- Stanislav