2022-01-08, 22:43
Does the Library Cleanup function only removes the references from the database, or does it also clear the data?
I recently installed a new Amazon Fire Cube, and was having issues. Previously I had copied the org.xbmc.kodi folder so I can keep my settings and libraries, but this time I decided to start fresh and scraped all my movies and TV shows, and the total size data folder is now only 1.68GB. Compare this to 5.4GB that my previous folder was, so I started wondering why this is. Same number of movies and TV shows, same settings, yet one is nearly 3 times the size.
So after some tests I think I found the reason, and please feel free to correct me if I'm wrong. I think that when you move some things around in your library, or maybe change source locations, when you go to clean up your library, the program only cleans up references about it, it doesn't physically remove any of the data it stored about those movies, so all the thumbnails, clear art, posters, fan art, etc is still there, it's just no longer showing in the library.
The when you add back the new source and re-scrape, it downloads all new copies of the same thing it did before and adds it to the library and the DB, literally doubling up the space used.
I tested this by removing one of the sources I had setup for 3D movies. it contained 311 movies with poster, fan art and thumb nail, as well as actors. Once the cleanup was done, it asked if I wanted to remove the media items, and I removed that.. Checking the library, all the 3D movie information was gone.
I then exited Kodi and started ES Explorer, to check if the data file got any smaller, but no, it actually got a little larger.
Previously the folder had 32,151 files in 1185 folders, totaling 1,808,329,400 bytes (1.68GB)
After Cleanup the folder had 32,156 files in 1185 folders, totaling 1,808,736,867 bytes, so roughly 400K larger than before.
So there's something wrong with the cleanup routine, or I'm not understanding how this is supposed to work.
I recently installed a new Amazon Fire Cube, and was having issues. Previously I had copied the org.xbmc.kodi folder so I can keep my settings and libraries, but this time I decided to start fresh and scraped all my movies and TV shows, and the total size data folder is now only 1.68GB. Compare this to 5.4GB that my previous folder was, so I started wondering why this is. Same number of movies and TV shows, same settings, yet one is nearly 3 times the size.
So after some tests I think I found the reason, and please feel free to correct me if I'm wrong. I think that when you move some things around in your library, or maybe change source locations, when you go to clean up your library, the program only cleans up references about it, it doesn't physically remove any of the data it stored about those movies, so all the thumbnails, clear art, posters, fan art, etc is still there, it's just no longer showing in the library.
The when you add back the new source and re-scrape, it downloads all new copies of the same thing it did before and adds it to the library and the DB, literally doubling up the space used.
I tested this by removing one of the sources I had setup for 3D movies. it contained 311 movies with poster, fan art and thumb nail, as well as actors. Once the cleanup was done, it asked if I wanted to remove the media items, and I removed that.. Checking the library, all the 3D movie information was gone.
I then exited Kodi and started ES Explorer, to check if the data file got any smaller, but no, it actually got a little larger.
Previously the folder had 32,151 files in 1185 folders, totaling 1,808,329,400 bytes (1.68GB)
After Cleanup the folder had 32,156 files in 1185 folders, totaling 1,808,736,867 bytes, so roughly 400K larger than before.
So there's something wrong with the cleanup routine, or I'm not understanding how this is supposed to work.