2022-10-19, 10:51
(2022-10-18, 17:28)Klojum Wrote: The database should reflect to the contents that is available via the source(s). Anything that is no longer there on disk or wherever should be cleansed 'in an easy manner' from the database.
I was looking closer the database analyzer and thinking about this comment. The analyzer actually finds both orphaned and unmatched database records. An intelligent clean function could have some real value. For instance with the media tables (i.e. episode, movie and music video) if the underlying matching idFile entry doesn't exit then it the record is orphaned and can be cleaned. The user would likely have never been able to play these media entries.
But, to earlier your point, if there is an unmatched rating, season, show value etc. then these are integrity issues. Likewise most unmatched link table entries will be orphans. I think cleaning this type of stuff up would add some value and would be easy to write. The the user would simply be left with unmatched values. I think I'll add this intelligent cleaning function into the analyzer clean menu option. The file / media analyzer cleaning you describe will be a separate file analyzer menu option. I've finished adding the GUI display column headers. It is much easier to read now.
Thanks,
Jeff