Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Req Hard Drive meltdown- lost files
#1
One of my hard drives had a meltdown and needlessly to say I lost all the files on the drive.
The info for all those files is in the Kodi database, is there some way of having Kodi generate a report of the now missing files?
Hope someone can help! TIA
Reply
#2
(2020-11-27, 06:15)PapaJohn Wrote: The info for all those files is in the Kodi database, is there some way of having Kodi generate a report of the now missing files?
Two options...
1. Create a Smart Playlist (wiki) and the rule is Path Contains whaterver your drive:\\Source is. This will display all your movies on a particular source.

2. If you know your way around SQL, install this and export a list to txt format... https://sqlitebrowser.org/
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
Don't understand how a smart playlist can extract info for missing files from Kodi's database.
The link for Smart Playlist is blank.
Not familiar with sql.
Reply
#4
(2020-11-27, 06:57)PapaJohn Wrote: The link for Smart Playlist is blank.
meant to be plural Smart Playlists (wiki)

(2020-11-27, 06:57)PapaJohn Wrote: Don't understand how a smart playlist can extract info for missing files from Kodi's database.
It won't give you "missing files" it will give you a list of movies that were on that drive.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#5
OK once the smart playlist is generated can it be exported to be printed out?
Reply
#6
No.

You will need to use the SQL method if you want to print out a list.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#7
It'll be a bit rudimentary, and there will be no need for a smart playlist, but you can open your music database file MyMusic72.db with most SQLite database tools, and run the following command:

SELECT * FROM path WHERE strPath LIKE "%DRIVEPATH%"

Mind you, change DRIVEPATH to whatever harddisk name the problem drive has/had, and a list should follow.
Do keep the %-signs at either side in the command. The listing could then be copied to whatever text editor and be printed out.
Reply
#8
For future to avoid this issue if you keep your media on multiple drives I'd suggest you look into https://www.snapraid.it/

Been using it at home. Haven't had a disk fail yet but I have tested the restoration process. Is a snapshot Raid with up to 6 parity disks / levels. Is worth it. I know I have no desire to re-rip 2000+ dvd's & cds if I don't have to.
Reply
#9
Thanks to all for your help. The SQL method worked a treat. I now have a printed list of all the missing files!
Reply

Logout Mark Read Team Forum Stats Members Help
Hard Drive meltdown- lost files0