diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-11 00:54:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | 5487e9d12cd84f1dbe976ec022a4ddd4c3f52cd2 (patch) | |
| tree | c6a5f7666224162f0dcc725eaaf6579506408459 | |
| parent | cffb00d2625747e77a89a2cbed3e51ce04196aad (diff) | |
Better summaries for FFmpeg content in the list.
| -rw-r--r-- | src/lib/ffmpeg_content.cc | 11 |
1 files changed, 9 insertions, 2 deletions
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> 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 |
