From 5487e9d12cd84f1dbe976ec022a4ddd4c3f52cd2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 11 May 2016 00:54:48 +0100 Subject: Better summaries for FFmpeg content in the list. --- src/lib/ffmpeg_content.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index fdbdd4eb5..564200c87 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -253,8 +253,15 @@ FFmpegContent::examine (shared_ptr job) string FFmpegContent::summary () const { - /* Get the string() here so that the name does not have quotes around it */ - return String::compose (_("%1 [movie]"), path_summary ()); + if (video && audio) { + return String::compose (_("%1 [movie]"), path_summary ()); + } else if (video) { + return String::compose (_("%1 [video]"), path_summary ()); + } else if (audio) { + return String::compose (_("%1 [audio]"), path_summary ()); + } + + return path_summary (); } string -- cgit v1.2.3