clean library log
#1
Does the CLEAN LIBRARY function write a log of episodes, movies, & songs that it removes from the library? I've had an issue with my server and I fear that I'm about to loose some files. Once I get the server back up it would be nice if I could use the clean library function to document what specific files I've lost.

I'm running 15.2 on an Amazon Fire TV.

Thanks in advance.
Reply
#2
If it doesn't you could run texturecache.py
-j will list every file iirc

Runing
Code:
./texturecache.py -j>BeforeClean
./texturecache.py -aclean
./texturecache.py -vclean
./texturecache.py -j>AfterClean
Will list before, clean then list after
You can then do
Code:
diff BeforeClean AfterClean|grep ->altered
cat altered|grep file>Filesremoved

Find differences between before and after
Create file of just those lines removed
Display only those lines which list the file name


BTW.
I haven't used diff in years, I'm not entirely sure if it will work and there's probably a more proper way to tidy up the end result that some hardcore scripter will correct me on but, it should work

There may be a better way to do it, probably involving some sort of sql querying.
Just make sure you save copies of your library's before and after clean so you can do stuff with them.
Reply

Logout Mark Read Team Forum Stats Members Help
clean library log0