* 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(); return getMovie().getName();
if (infoObject instanceof AudioTrack) if (infoObject instanceof AudioTrack)
return getAlbumArtist() != null ? getAlbumArtist() : getArtist(); return getAlbumArtist() != null ? getAlbumArtist() : getArtist();
if (infoObject instanceof File) if (infoObject instanceof File)
return FileUtilities.getName((File) infoObject); return FileUtilities.getName((File) infoObject);
return null; return null;
} }
@Define("y") @Define("y")