Refactor
This commit is contained in:
parent
3af533fd07
commit
8be83e8759
|
@ -1560,19 +1560,16 @@ public class MediaDetection {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void warmupCachedResources() throws Exception {
|
public static void warmupCachedResources() throws Exception {
|
||||||
// pre-load filter data
|
// load filter data
|
||||||
MediaDetection.getClutterFileFilter();
|
MediaDetection.getClutterFileFilter();
|
||||||
MediaDetection.getDiskFolderFilter();
|
MediaDetection.getDiskFolderFilter();
|
||||||
|
MediaDetection.matchSeriesByDirectMapping(emptyList());
|
||||||
|
|
||||||
Collection<File> empty = Collections.emptyList();
|
// load movie/series index
|
||||||
MediaDetection.matchSeriesByDirectMapping(empty);
|
MediaDetection.stripReleaseInfo(singleton(""), true);
|
||||||
|
MediaDetection.matchSeriesByName(singleton(""), -1, MediaDetection.getSeriesIndex());
|
||||||
// pre-load movie/series index
|
MediaDetection.matchSeriesByName(singleton(""), -1, MediaDetection.getAnimeIndex());
|
||||||
List<String> dummy = Collections.singletonList("");
|
MediaDetection.matchMovieName(singleton(""), true, -1);
|
||||||
MediaDetection.stripReleaseInfo(dummy, true);
|
|
||||||
MediaDetection.matchSeriesByName(dummy, -1, MediaDetection.getSeriesIndex());
|
|
||||||
MediaDetection.matchSeriesByName(dummy, -1, MediaDetection.getAnimeIndex());
|
|
||||||
MediaDetection.matchMovieName(dummy, true, -1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue