2013-11-30, 22:59
This is so what I needed. It works great for me on Windows and Linux XBMC's, so I decided to try it on my ION box. A very odd thing happens, though.
When using the addon, Frodo/Gotham: Version 0.2.1, under OpenELEC, Stable - ION x86_64 3.2.4 and 3.2.3, it doesn't compute the database name correctly; so the default, MyVideo.db, is used instead. Since this creates an empty database, the addon gets an error when finding sets in it. A file, MyVideos.db, appears under Database; and an error appears in the log:
It looks to me like the code would always choose MyVideos75 or MyVideos76 unless there is some other error thrown that is not getting logged. I'm not prepared [possibly incapable] to debug python on OpenELEC just this moment; so I edited .../.xbmc/addons/script.moviesetart.frodo/lib/database.py:81 to have the correct name for my system: MyVideos75; and it works fine. I can probably provide additional info if there is interest. Otherwise, this workaround may help others having this problem.
When using the addon, Frodo/Gotham: Version 0.2.1, under OpenELEC, Stable - ION x86_64 3.2.4 and 3.2.3, it doesn't compute the database name correctly; so the default, MyVideo.db, is used instead. Since this creates an empty database, the addon gets an error when finding sets in it. A file, MyVideos.db, appears under Database; and an error appears in the log:
Code:
11:45:19 T:140562649966336 NOTICE: [Movie Set Artwork Automator] - Updating artwork for Movie Sets
11:45:19 T:140562649966336 NOTICE: Unexpected error:
11:45:19 T:140562649966336 NOTICE: (<class 'sqlite3.OperationalError'>, OperationalError('no such table: sets',), <traceback object at 0x7fd764acdab8>)
11:45:26 T:140562649966336 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'sqlite3.OperationalError'>
Error Contents: no such table: sets
Traceback (most recent call last):
File "/storage/.xbmc/addons/script.moviesetart.frodo/default.py", line 333, in <module>
found_artwork_count, db_update_count = update_movie_sets(overwrite)
File "/storage/.xbmc/addons/script.moviesetart.frodo/default.py", line 145, in update_movie_sets
movie_sets = DB.getMovieSets()
File "/storage/.xbmc/addons/script.moviesetart.frodo/lib/database.py", line 139, in getMovieSets
self.executeQuery(cur, "SELECT * FROM sets")
File "/storage/.xbmc/addons/script.moviesetart.frodo/lib/database.py", line 134, in executeQuery
return cursor.execute(query)
OperationalError: no such table: sets
-->End of Python script error report<--
It looks to me like the code would always choose MyVideos75 or MyVideos76 unless there is some other error thrown that is not getting logged. I'm not prepared [possibly incapable] to debug python on OpenELEC just this moment; so I edited .../.xbmc/addons/script.moviesetart.frodo/lib/database.py:81 to have the correct name for my system: MyVideos75; and it works fine. I can probably provide additional info if there is interest. Otherwise, this workaround may help others having this problem.