Kodi Community Forum
How to detect missing movie files? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: How to detect missing movie files? (/showthread.php?tid=217833)

Pages: 1 2


How to detect missing movie files? - mihvel - 2015-02-09

Is there any way to detect missing video files that are linked with the movie titles contained in the library. Something like "Clean library" function, but without removing movies from the video library. It should just list the movies with the missing files.
I had a quite large collection of movies and it seems that somehow I lost some movie files from my video archive. I'm not sure how many and which one. If I just run "Clean Library" I will lost any information about missing movies and won't be able to detect them any more.

Any help please? Confused


RE: How to detect missing movie files? - wgstarks - 2015-02-09

If I'm understanding correctly, this is what you're looking for- Add-on:Missing_Movie_Scanner (wiki)


RE: How to detect missing movie files? - mihvel - 2015-02-09

(2015-02-09, 18:36)wgstarks Wrote: If I'm understanding correctly, this is what you're looking for- Add-on:Missing_Movie_Scanner (wiki)

Thanks for try, but this is not what I'm looking for. Actually, I need something quite the opposite. With the "Missing Movie Scanner" add-on you can locate video files in your video archive that are not scraped & added to the XBMC video library for some reason. But in my case, all my video files were added to the XBMC library correctly, and later on I lost some of them by mistake (file system damage actually). Now I need to find the way how to detect what is lost.


RE: How to detect missing movie files? - un1versal - 2015-02-09

No, I dont think anything out there is designed for this, and Im unsure anything can be adapted to to this automatically.

You can make note of the files that the file system correction detects are damaged and take care of it yourself.


RE: How to detect missing movie files? - mihvel - 2015-02-10

Is it possible at least to log the "Clean library" process somehow, so that I can check what titles are removed from the XBMC video library?


RE: How to detect missing movie files? - un1versal - 2015-02-10

You can do that but only by removing the corrupt files form library first then running clean library. which is kinda pointless if you think about it.

The library scanner/scrapers doesn't care if you have 0 byte files or 5GB, as long as they named like that they are scanned as such.


RE: How to detect missing movie files? - Ned Scott - 2015-02-10

"Clean library" also removes entires that have missing files..


RE: How to detect missing movie files? - scott967 - 2015-02-10

texturecache.py missing movies kodi-movie-source ?


scott s.
.


RE: How to detect missing movie files? - Milhouse - 2015-02-10

(2015-02-10, 04:01)scott967 Wrote: texturecache.py missing movies kodi-movie-source ?


scott s.
.

Close, but not quite, as he doesn't want to know the movies that are in his filesystem but which haven't been scanned. Instead, he wants to identify those movies that have already been scanned but are now missing from his filesystem. Kind of a "missing files" option, rather than "missing movies".

You can accomplish this with the "qa" option when setting "@qafile=yes" - texturecache.py should then verify if the media file exists or not, and warn if not.

Code:
texturecache.py qa movies @qafile=yes @qaperiod=9999 @qa.art.movies=

I've added two more settings to the above example: "@qaperiod=9999" so that it considers all movies added in the previous 9999 days (default is only 30 days), and "@qa.art.movies=" so that it doesn't whine about missing poster/fanart as this isn't relevant to the problem at hand.

Note that it's a script, not an addon, and it requires Python. If the OP can't handle this, he'll need to find something else. See my sig for installation details etc.


RE: How to detect missing movie files? - mihvel - 2015-02-10

Yes Milhouse, you catched the point. I had some 2500+ movies organized in separate folders on a HDD. And then the file system was damaged... I did system CHKDSK, and it is fixed now, but some folders and files are lost. I don't know which one and how many. The only information that I have about my original video collection is contained in Kodi/XBMC video database. Now, if I do "Clean library" the information will be lost forever. I do not have the problem even to do the Clean library but if I can have some kind of report what titles are removed from the database, so that I can add the missing movies to my collection again.

I will try proposed solution and let you know the outcome.


RE: How to detect missing movie files? - mihvel - 2015-02-10

(2015-02-10, 04:46)Milhouse Wrote:
Code:
texturecache.py qa movies @qafile=yes @qaperiod=9999 @qa.art.movies=

Work like a charm! Thanks a million! You were very helpful. Wink


RE: How to detect missing movie files? - scott967 - 2015-02-11

(2015-02-10, 17:59)mihvel Wrote:
(2015-02-10, 04:46)Milhouse Wrote:
Code:
texturecache.py qa movies @qafile=yes @qaperiod=9999 @qa.art.movies=

Work like a charm! Thanks a million! You were very helpful. Wink

I figured if it could be done, Milhouse would find a way to do it!

scott s.
.


RE: How to detect missing movie files? - black296tuuk - 2016-04-03

Hoping someone can help me on the same problem. The only difference is that I lost an entire drive. I was able to figure out how to run the script but the results are not showing the missing movies. These are the results

Image

There should be several hundred movies missing but this is all that is listed.

Any assistance would be appreciated.


RE: How to detect missing movie files? - Milhouse - 2016-04-03

Change "@qafile=yes" to "@qa.file=yes" - the name of this property changed to "qa.file" in November 2015.


RE: How to detect missing movie files? - black296tuuk - 2016-04-03

Thanks so much, that worked! 583 movies I have to pull from my backups.