2021-04-15, 07:53
(2021-01-20, 14:58)mpetit480 Wrote: Hi
ts file have a size of 0.
Could you help me to make work IPTV Recorder ?
in Kodi 18.9 , kodi.log
2021-01-20 13:31:45.045 T:2880512880 ERROR: /storage/.kodi/addons/plugin.video.iptv.recorder/main.py:2330: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if channelname not in favourites and channelid:
2021-01-20 13:32:18.803 T:2451616624 ERROR: GetDirectory - Error getting plugin://plugin.video.iptv.recorder/record_once/7709/C111.api.telerama.fr/Arte
2021-01-20 13:32:22.097 T:2451616624 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'read'
Traceback (most recent call last):
File "/storage/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/8926de54-5b1b-11eb-ab61-dca6329255ad.py", line 28, in <module>
data = p.stdout.read(1000000)
AttributeError: 'NoneType' object has no attribute 'read'
-->End of Python script error report<--
2021-01-20 13:41:57.443 T:2498745200 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 "/storage/.kodi/addons/plugin.video.iptv.recorder/contextEPG.py", line 54, in <module>
usedLocale = locale.setlocale(locale.LC_TIME, "")
File "/usr/lib/python2.7/locale.py", line 581, in setlocale
Error: unsupported locale setting
-->End of Python script error report<--
Hi,
I created this modified version with encoding and locale fix. You only need to replace the polish weekdays and months with french (see how the month endings is differrent in polish language) in contextEPG.py.
If the weekdays and months are correct you only need to hashtag lookup_table date:
python:#date = lookup_table(date)
plugin.video.iptv.recorder.zip
https://drive.google.com/file/d/1-7nF6WPH9KluKGOZQZozEaH-dK7n24Kt/view?usp=sharing
python:def lookup_table(s):
lookup_table = {
"Stycznia": "Styczeń", "Lutego": "Luty",
"Marca": "Marzec", "Kwietnia": "Kwiecień",
"Maja": "Maj", "Czerwca": "Czerwiec",
"Lipca": "Lipiec", "Sierpnia": "Sierpień",
"Wrze\xc5\x9bnia": "Wrzesień", "Pa\xc5\xbadziernika": "Październik",
"Listopada": "Listopad", "Grudnia": "Grudzień",
"Poniedzia\xc5\x82ek" : "Poniedziałek", "Wtorek" : "Wtorek",
"\xc5\x9aroda": "Środa", "Czwartek" : "Czwartek",
"Pi\xc4\x85tek" : "Piątek", "Sobota" : "Sobota",
"Niedziela" : "Niedziela",
}
for k, v in lookup_table.items():
s = s.replace(k, v)
return s
It's also possible that your system is missing locale then you need to install them manually.
https://discourse.osmc.tv/t/locale-error/89141
On OSMC:
xml:export LC_ALL="pl_PL.UTF-8"
export LC_CTYPE="pl_PL.UTF-8"
sudo dpkg-reconfigure locales