1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* allow file.isEpisode() file filter expressions

This commit is contained in:
Reinhard Pointner 2015-07-26 11:46:52 +00:00
parent fdd6c43862
commit 694c0ec049
2 changed files with 7 additions and 3 deletions

View File

@ -401,4 +401,8 @@ public class ScriptShellMethods {
}
}
public static boolean isEpisode(File self) {
return MediaDetection.isEpisode(String.join("/", self.getParent(), self.getName()), true);
}
}

View File

@ -91,10 +91,10 @@ public class MediaBindingBean {
return getMovie().getName();
if (infoObject instanceof AudioTrack)
return getAlbumArtist() != null ? getAlbumArtist() : getArtist();
if (infoObject instanceof File)
return FileUtilities.getName((File) infoObject);
if (infoObject instanceof File)
return FileUtilities.getName((File) infoObject);
return null;
return null;
}
@Define("y")