Hi,
My Hard Drive got corrupted too and I wanted a list of all the files for that particular Drive.
So, I followed these steps:
- Export full library: Video / Library /Export option. Make sure to export all in 1 file and it will create a directory structure like:
xbmc_videodb_2014-11-29\videodb.xml
(I'm on windows, so to run grep I used Cygwin)
- Suppose your HDD path is S:\_TV Series 1A
run following grep command:
Code:
$ grep "<path>S:\\\_TV Series 1A" xbmc_videodb_2014-10-29/videodb.xml > missing_files.txt
(Be sure to escape any slashes or underscores with backslashes)
This will give a list of all the directories and sub(season) directories for that path like:
Code:
<path>S:\_TV Series 1A\Being Erica\</path>
<path>S:\_TV Series 1A\Being Erica\Season 1_720p\</path>
<path>S:\_TV Series 1A\Being Erica\Season 1_720p\</path>
... and so on
If you want full filenames, then use this: "<filenameandpath>" instead of "<path>"
So command will be like:
Code:
grep "<filenameandpath>S:\\\_TV Series 1A" xbmc_videodb_2014-10-29/videodb.xml > missing_files.txt
Also there is a great add-on called Missing Movie Scanner if some files are missing and directory structure is still there.
You can find it here:
System -> Add-ons -> Video Add-ons -> Missing Movie Scanner
In its configuration Enable logging and save logs to a certain directory and it will create a file missing.txt with all missing files.
We can also configure which file extensions to search for.
-----------------
Hope this helps others facing the same issue.