1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Avoid warnings when just fetching movie entries

This commit is contained in:
Reinhard Pointner 2017-05-22 20:43:24 +08:00
parent ce4756dd10
commit c22d91c4d9

View File

@ -564,9 +564,11 @@ public class MediaDetection {
List<Movie> options = new ArrayList<Movie>();
// try xattr metadata if enabled
Object metaObject = xattr.getMetaInfo(movieFile);
if (metaObject instanceof Movie) {
options.add((Movie) metaObject);
if (movieFile.exists()) {
Object metaObject = xattr.getMetaInfo(movieFile);
if (metaObject instanceof Movie) {
options.add((Movie) metaObject);
}
}
// lookup by id from nfo file