Open twhitehead opened 3 years ago
I should add that under Settings/Interface my Regional/Language setting is English
.
I don't know if there is any connection, but I looked through my other addons and they all seem to have .po
files instead of .xml
files under the resources/language/*
directories.
If I substitute in all the strings in the English/strings.xml
file into the settings.xml
file the errors go away. Here is a simple script to run in the ~/.kodi/addons/script.couch_ripper
directory that does this
#!/bin/sh
eval "$(awk \
'BEGIN { print("sed -i \\") }
/string id/ { match($0,"<string id=\"([0-9]+)\">([^<]+)<",a)
printf(" -e \"s|%d|%s|\" \\\n",a[1],a[2]) }
END { print(" ../../userdata/addon_data/script.couch_ripper/settings.xml") }
' resources/language/English/strings.xml)"
Thanks for the info! There were two methods for translations when I was developing Couch Ripper, the strings.xml method that I use, and the newer strings.po method. IIRC, I was using strings.xml since strings.po was still a preview, or there weren't many examples, I forget. Anywho, it's now fully removed and that's why you're running into the issue. I actually stopped using my plugin a few years ago and use ARM (https://github.com/automatic-ripping-machine/automatic-ripping-machine) now instead. I've also since stopped using Kodi, so I don't have any way to rebuild/fix/test this, but I'd accept any PR, or even make you an editor on the project if you wanted to do it.
I'm running kodi 18.9. I added the master branch as a zip file. When I run it, it generates the following errors
where I have augmented the first error message as follows
in order to see how what it gets differs from what it expects.
So it looks like there is an issue between the ids and the strings. Looking into the settings file reveals most values are being initialized as ids. Using the
CPU priority
as an exampleIf I set these settings in the settings menu, these change to strings
and the associated error message for that setting goes away
Erasing the settings and re-running resets it back to the ids.