1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 06:15:02 -05:00

amc-universal script extensions

This commit is contained in:
Reinhard Pointner 2019-01-28 23:56:12 +07:00
parent ce2bfbb177
commit 2b1585bca9

View File

@ -431,6 +431,43 @@ public class AutoDetection {
return this; return this;
} }
public Group movie() {
put(Type.Movie, Boolean.TRUE);
return this;
}
public Group series() {
put(Type.Series, Boolean.TRUE);
return this;
}
public Group anime() {
put(Type.Anime, Boolean.TRUE);
return this;
}
public Group music() {
put(Type.Music, Boolean.TRUE);
return this;
}
public boolean isMovie() {
return get(Type.Movie) != null;
}
public boolean isSeries() {
return get(Type.Series) != null;
}
public boolean isAnime() {
return get(Type.Anime) != null;
}
public boolean isMusic() {
return get(Type.Music) != null;
}
public Type[] types() { public Type[] types() {
return entrySet().stream().filter(it -> it.getValue() != null).map(it -> it.getKey()).toArray(Type[]::new); return entrySet().stream().filter(it -> it.getValue() != null).map(it -> it.getKey()).toArray(Type[]::new);
} }