From 8bf3322366d5695bc4d8a545ccce88655e80294d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 5 Apr 2016 22:29:27 +0000 Subject: [PATCH] Sort Groups --- source/net/filebot/media/AutoDetection.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/net/filebot/media/AutoDetection.java b/source/net/filebot/media/AutoDetection.java index 65e0f0d7..f092154d 100644 --- a/source/net/filebot/media/AutoDetection.java +++ b/source/net/filebot/media/AutoDetection.java @@ -323,7 +323,7 @@ public class AutoDetection { } public enum Type { - MOVIE, SERIES, ANIME, MUSIC; + Movie, Series, Anime, Music; } public static class Group extends EnumMap implements Comparable { @@ -333,40 +333,40 @@ public class AutoDetection { } public Object getMovie() { - return get(Type.MOVIE); + return get(Type.Movie); } public Object getSeries() { - return get(Type.SERIES); + return get(Type.Series); } public Object getAnime() { - return get(Type.ANIME); + return get(Type.Anime); } public Object getMusic() { - return get(Type.MUSIC); + return get(Type.Music); } public Group movie(List movies) { - put(Type.MOVIE, movies == null || movies.isEmpty() ? null : movies.get(0)); + put(Type.Movie, movies == null || movies.isEmpty() ? null : movies.get(0)); return this; } public Group series(List names) { - put(Type.SERIES, names == null || names.isEmpty() ? null : names.get(0)); + put(Type.Series, names == null || names.isEmpty() ? null : names.get(0).toLowerCase()); return this; } public Group anime(List names) { - put(Type.ANIME, names == null || names.isEmpty() ? null : names.get(0)); + put(Type.Anime, names == null || names.isEmpty() ? null : names.get(0).toLowerCase()); return this; } public Group music(File f) { - put(Type.MUSIC, f == null ? null : f.getParent()); + put(Type.Music, f == null ? null : f.getParent()); return this; }