2019-04-20, 10:49
(2019-04-20, 10:10)primaeval Wrote:this is the message I get:(2019-04-20, 10:06)kaner007 Wrote:(2019-04-20, 09:21)primaeval Wrote: It looks like this is an osx problem with getting the correct locale.
https://stackoverflow.com/questions/1629...ems-on-osx
You'll have to do a bit of remote debugging for me.
Add a
log(language)
at line 44 in
"addons\plugin.video.iptv.recorder\contextEPG.py"
so it looks like this
fullFormat = get_format()
language = xbmc.getLanguage()
log(language)
locale.setlocale(locale.LC_TIME, language)
Tell me what that is and what it should be.
Then try something like setting the language to whatever yours should be like
fullFormat = get_format()
language = xbmc.getLanguage()
language = "en_US.UTF-8"
locale.setlocale(locale.LC_TIME, language)
If that works I'm not sure what a good generic solution is.
I have added the log. Not sure if I look at the correct loge entry but I assume that I need to use 'utf-8' as languange. I will give a try
2019-04-20 10:00:35.214 T:123145496465408 ERROR: {'confidence': 0.99, 'language': '', 'encoding': 'utf-8'}
That message is from the function that reads in the m3u playlist.
To make the new message stand out a bit change it to something like:
log(("LANGUAGE>>>", language))
2019-04-20 10:34:03.717 T:123145322323968 ERROR: ('LANGUAGE>>>', 'English')
I changed to:
fullFormat = get_format()
language = xbmc.getLanguage()
language = "English"
locale.setlocale(locale.LC_TIME, language)
But still if I want to record a channel "Schedule IPTV Recorder" in PVR ITPV Simple Client > Guide it gives me the error "ITPV Recorder error"
Log Entry:
2019-04-20 10:44:50.716 T:123145367429120 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'locale.Error'>
Error Contents: unsupported locale setting
Traceback (most recent call last):
File "/Users/User/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/contextEPG.py", line 45, in <module>
locale.setlocale(locale.LC_TIME, language)
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.13_x86_64-target-release/lib/python2.7/locale.py", line 581, in setlocale
Error: unsupported locale setting
-->End of Python script error report<--