Search in sources :

Example 1 with MovieScriptConverter

use of org.fagu.fmv.mymedia.classify.movie.MovieScriptConverter in project fmv by f-agu.

the class DefaultClassifierProvider method getConverter.

/**
 * @see org.fagu.fmv.mymedia.classify.ClassifierProvider#getConverter(java.lang.Class)
 */
@SuppressWarnings("unchecked")
@Override
public <M extends Media> List<Converter<M>> getConverter(Class<? extends M> mediaCls, File destFolder) {
    List<Converter<M>> list = new ArrayList<>();
    list.add((Converter<M>) new MoveConverter(destFolder));
    if (mediaCls == Image.class) {
        list.add((Converter<M>) new ReduceImageConverter(destFolder));
    } else if (mediaCls == Movie.class) {
        list.add((Converter<M>) new MovieScriptConverter(destFolder));
    }
    return list;
}
Also used : Movie(org.fagu.fmv.mymedia.classify.movie.Movie) MovieScriptConverter(org.fagu.fmv.mymedia.classify.movie.MovieScriptConverter) ArrayList(java.util.ArrayList) MovieScriptConverter(org.fagu.fmv.mymedia.classify.movie.MovieScriptConverter) ReduceImageConverter(org.fagu.fmv.mymedia.classify.image.ReduceImageConverter) ReduceImageConverter(org.fagu.fmv.mymedia.classify.image.ReduceImageConverter)

Aggregations

ArrayList (java.util.ArrayList)1 ReduceImageConverter (org.fagu.fmv.mymedia.classify.image.ReduceImageConverter)1 Movie (org.fagu.fmv.mymedia.classify.movie.Movie)1 MovieScriptConverter (org.fagu.fmv.mymedia.classify.movie.MovieScriptConverter)1