mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* allow file.isEpisode() file filter expressions
This commit is contained in:
parent
fdd6c43862
commit
694c0ec049
@ -401,4 +401,8 @@ public class ScriptShellMethods {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isEpisode(File self) {
|
||||||
|
return MediaDetection.isEpisode(String.join("/", self.getParent(), self.getName()), true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user