2020-02-16, 05:23
Sorry to keep you waiting on feedback, I requested a feature some posts back. I'm trying the script just now for the first time. I've installed the plugin with "Install from ZIP" and the "script.metadata.editor-2.0.6.zip" file on github. I've then modified my keymaps to <p>RunScript(script.metadata.editor,dbid=$INFO[ListItem.DBID],type=$INFO[ListItem.DBType])</p>, to test it out. When I focus a movie and press p, I'm then immediately prompted with an error telling me to check the log, where the relevant part says:
xml:2020-02-16 00:19:15.515 T:123145502113792 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: 'Database' object has no attribute '$INFO[ListItem.DBType]'
Traceback (most recent call last):
File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 98, in <module>
Main()
File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 68, in __init__
self._editor()
File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/default.py", line 89, in _editor
editor = EditDialog(dbid=self.dbid, dbtype=self.dbtype)
File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/resources/lib/editor.py", line 23, in __init__
self.get_details()
File "/Users/username/Library/Application Support/Kodi/addons/script.metadata.editor/resources/lib/editor.py", line 26, in get_details
getattr(self.db, self.dbtype)()
AttributeError: 'Database' object has no attribute '$INFO[ListItem.DBType]'
-->End of Python script error report<--