2018-03-25, 15:30
The xmltv method wasn't called, fixed with the configuration changes
Unfortunatly, followed by another error
I fixed that by using ".decode('utf8')" on strings that can contain special characters (name, title, sub_title...), I can create a PR for that is that method OK for you
But after the import, my channel list is empty in the addon, the database contains channels & programs, might be an issue with linking LiveTV channels ?
Unfortunatly, followed by another error
Code:
15:09:42.691 T:18446744073027115312 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'sqlite3.ProgrammingError'>
Error Contents: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 1319, in <module>
plugin.run()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run
items = self._dispatch(self.request.path)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch
listitems = view_func(**items)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 930, in full_service
xmltv()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 1124, in xmltv
conn.execute("INSERT OR IGNORE INTO channels(id, name, icon) VALUES(?, ?, ?)", [id, name, icon])
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
-->End of Python script error report<--
I fixed that by using ".decode('utf8')" on strings that can contain special characters (name, title, sub_title...), I can create a PR for that is that method OK for you
But after the import, my channel list is empty in the addon, the database contains channels & programs, might be an issue with linking LiveTV channels ?