Kodi Community Forum
Check for valid media path - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Check for valid media path (/showthread.php?tid=227813)



Check for valid media path - ZexisStryfe - 2015-05-25

This may be a stupid question, but if there a way to check to see if a media path is valid and return a boolean yes/no?

For example- You add a movie to your library, but then move the file. When you click on the movie in your library to play, you get the "This file is no longer available" error message. Is there a way to check for this ahead of time? I would like to add a status icon (like watched or in progress) for a missing file, but can't seem to figure out if it is possible.

Thanks for any help.


RE: Check for valid media path - phil65 - 2015-05-25

nope, not possible.
And also not the best idea to do since it requires disk access. Smile


RE: Check for valid media path - ZexisStryfe - 2015-05-25

I figured as much. Thanks.