2023-12-01, 01:48
(2023-11-28, 18:00)martinsvision Wrote: tvtunes.nfo
If i create a tvtunes.nfo file in a tv show folder without the theme.mp3 file in the folder, the tvshows will play as normal, but the theme does not; If i were to put the theme.mp3 file in the folder along with the theme.nfo file, I get an error message
Code:
2023-11-30 17:42:11.307 T:5728 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: log_msg() takes from 1 to 2 positional arguments but 3 were given
Traceback (most recent call last):
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 87, in _loadNfoInfo
nfoXml = ET.ElementTree(ET.fromstring(nfoFileStr))
File "D:\Kodi V20\Kodi V20.2\system\python\Lib\xml\etree\ElementTree.py", line 1321, in XML
return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\service.py", line 56, in <module>
main.runAsAService()
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\backend.py", line 160, in runAsAService
newThemes = self.getThemes()
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\backend.py", line 321, in getThemes
themefile = ThemeFiles(themePath, debug_logging_enabled=debug_logging_enabled)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 278, in __init__
self.themeFiles = self._generateThemeFilelistWithDirs(self.rawPath)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 445, in _generateThemeFilelistWithDirs
themeFiles = self._generateThemeFilelist(rawPath)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 455, in _generateThemeFilelist
themeList = self._getThemeFiles(workingPath)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 499, in _getThemeFiles
nfoRead = NfoReader(directory, self.debug_logging_enabled)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 43, in __init__
self._loadNfoInfo(directory)
File "D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\resources\lib\themeFinder.py", line 153, in _loadNfoInfo
log_msg("NfoReader: Failed to process NFO: %s" % nfoFileName, True, xbmc.LOGERROR)
TypeError: log_msg() takes from 1 to 2 positional arguments but 3 were given
-->End of Python script error report<--
2023-11-30 17:42:11.307 T:5728 debug <general>: CPythonInvoker::onExecutionDone(20, D:\Kodi V20\Kodi V20.2\portable_data\addons\service.tvtunes\service.py)
2023-11-30 17:42:11.308 T:4508 debug <general>: Thread BackgroundLoader 4508 terminating
2023-11-30 17:42:11.311 T:15100 debug <general>: ffmpeg[0x11d0143ef30]: [image2] Custom AVIOContext makes no sense and will be ignored with AVFMT_NOFILE format.