2018-04-09, 08:46
Yes but Karellen do you have all the junk streaming entries etc that are being complained about?
(2018-04-08, 21:05)DGenerateKane Wrote: new mysql database so I could go back to the old when this inevitably didn't work) and that just made things worse for me. I exported the entire video library, but when I imported it to the new mysqldatabase I lost 90% of my TV Shows. What's worse, when I tried to go back to the old database, my library is still the new one missing all my shows. I don't know why either, since I was careful which one I had in the advancedsettings.xml. Updating the library only found a few more shows before hanging.
The problem is that, if the file doesn't have a corresponding record in movie, tvshow... tables, it will never get deleted from files table. I'm not sure if this is the root cause but I think we should have a real dev to look at this.cpp:// now grab them media items
std:tring sql = PrepareSQL("SELECT %s.%s, %s.idFile, path.idPath, parentPath.strPath FROM %s "
"JOIN files ON files.idFile = %s.idFile "
"JOIN path ON path.idPath = files.idPath ",
table.c_str(), idField.c_str(), table.c_str(), table.c_str(),
table.c_str());
(2018-04-13, 06:31)RuralHunter Wrote: The problem is that, if the file doesn't have a corresponding record in movie, tvshow... tables, it will never get deleted from files table. I'm not sure if this is the root cause but I think we should have a real dev to look at this.I wonder could this be due to the order that clean library does things? If the corresponding records for a movie/TV Show are deleted before it attempts to delete from the file table, then a file will never get deleted.
(2018-04-13, 10:23)fr1day Wrote:Nope. The movie/tv deleting happens after the files deleting.(2018-04-13, 06:31)RuralHunter Wrote: The problem is that, if the file doesn't have a corresponding record in movie, tvshow... tables, it will never get deleted from files table. I'm not sure if this is the root cause but I think we should have a real dev to look at this.I wonder could this be due to the order that clean library does things? If the corresponding records for a movie/TV Show are deleted before it attempts to delete from the file table, then a file will never get deleted.
(2018-04-14, 00:41)scott967 Wrote: I'm not sure what the requirement is. I think many things such as streamed files never have entries in the library. I always thought "cleaning" was about library items, not file table items.If that's the case, then maybe the clean function needs to be expanded to include the cleaning of all items that are no longer valid. What possible benefit is there to a database keeping information on files that no longer exist?
scott s.
.
(2018-04-14, 13:19)fr1day Wrote:I don't know the history of "files", but it seems to serve as the entry point for storing playcount / last played, stream details, resume point, bookmarks, etc. I assume this was done to allow for keeping info on streamed video across Kodi sessions.(2018-04-14, 00:41)scott967 Wrote: I'm not sure what the requirement is. I think many things such as streamed files never have entries in the library. I always thought "cleaning" was about library items, not file table items.If that's the case, then maybe the clean function needs to be expanded to include the cleaning of all items that are no longer valid. What possible benefit is there to a database keeping information on files that no longer exist?
scott s.
.