Refactor
This commit is contained in:
parent
b576216ffc
commit
37bf803c86
|
@ -120,10 +120,11 @@ public class MediaDetection {
|
||||||
|
|
||||||
public static boolean isEpisode(File file, boolean strict) {
|
public static boolean isEpisode(File file, boolean strict) {
|
||||||
Object metaInfo = xattr.getMetaInfo(file);
|
Object metaInfo = xattr.getMetaInfo(file);
|
||||||
if (metaInfo != null) {
|
if (metaInfo instanceof Episode) {
|
||||||
return metaInfo instanceof Episode;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// require a good S00E00 match
|
||||||
return MediaDetection.isEpisode(String.join("/", file.getParent(), file.getName()), strict);
|
return MediaDetection.isEpisode(String.join("/", file.getParent(), file.getName()), strict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue