use of org.fagu.fmv.mymedia.movie.list.column.NameColumn in project fmv by f-agu.
the class Bootstrap method populateDefaultColumns.
// ****************************************************
/**
*/
private void populateDefaultColumns() {
columns.add(new NameColumn());
columns.add(new VideoHDColumn());
columns.add(new VideoSizeColumn());
columns.add(new VideoSizeNameColumn());
columns.add(new VideoSizeWidthColumn());
columns.add(new VideoSizeHeightColumn());
columns.add(new VideoRatioColumn());
columns.add(new VideoRatioFloatColumn());
columns.add(new VideoPixelsColumn());
columns.add(new VideoDurationColumn());
columns.add(new VideoCodecNameColumn());
columns.add(new VideoCodecLongNameColumn());
columns.add(new CategoryColumn(0));
columns.add(new CategoryColumn(1));
columns.add(new CategoryColumn(2));
columns.add(new SizeBytesColumn());
columns.add(new LastModifiedDateColumn());
columns.add(new AudioColumn());
columns.add(new AudioCodecNameColumn());
columns.add(new AudioCodecLongNameColumn());
columns.add(new VideoSubtitleColumn());
for (Type type : Type.values()) {
columns.add(new StreamTypeCountColumn(type));
}
columns.add(new FMVTreatedColumn());
columns.add(new PathColumn());
}
use of org.fagu.fmv.mymedia.movie.list.column.NameColumn in project fmv by f-agu.
the class Bootstrap method listName.
/**
* @throws IOException
*/
public static void listName() throws IOException {
File root = FileUtils.findFirstHarddriveFaguVv().orElseThrow(() -> new RuntimeException("Harddrive not found"));
try (//
PrintStream printStream = new PrintStream(new File("D:\\tmp\\list-name.out"));
Bootstrap listMovies = new Bootstrap(printStream)) {
listMovies.addColumn(new NameColumn());
// printStream.println("=== Dessins animés ===");
// listMovies.list(new File(root, "Dessins animés"));
// printStream.println("=== Dessins animés séries ===");
// Arrays.asList(new File(root, "Dessins animés série").list()).forEach(printStream::println);
// printStream.println("=== Films ===");
// listMovies.list(new File(root, "Films"));
printStream.println("=== Films HD ===");
listMovies.list(new File(root, "Films HD"));
// printStream.println("=== Séries ===");
// Arrays.asList(new File(root, "Séries").list()).forEach(printStream::println);
}
}
Aggregations