2022-10-08, 07:23
(2022-10-08, 07:00)Klojum Wrote:(2022-10-08, 04:10)Karellen Wrote: Hmmm, you are not actually writing to, or deleting records, directly. You are just reading? I wonder if that is ok.
Probably the reason why Milhouse's tool was never assimilated into the Kodi repo. It can change/remove quite a bit.
OFF-TOPIC: A stand-alone, dedicated Library Clean up GUI add-on for video and/or music databases would be useful that way, and its development would be quicker and more precise than the current built-in database triggers for cleaning things.
Correct, the Kodi CSV Export utility is just a single read select query:
curm = dbexport.execute('SELECT * FROM '+selectname+'')
I've never submitted the Mezzmo Kodi addon to the Kodi repo because it uses many many direct SQL calls to rewrite the entire Kodi video database each day. I didn't think I could get an exception for that
OFF-TOPIC:
Triggers are generally pretty efficient. Are you thinking of an addon where you could browse and selectively delete orphaned records in the video or music databases ? If so, that wouldn't be too difficult to write but displaying entire rows for some tables might be a challenge. Selecting and deleting rows might stretch the limits on how many entries a xbmcgui.Dialog().select object can have but that aside, it would be very straightforward.
Jeff