~maberger/dotfiles

628706fe20fde44b0bd80dcfdb3408f99af2cef9 — Mark Berger a month ago 3ae7d73
Update duration function to include mp3
1 files changed, 1 insertions(+), 1 deletions(-)

M .config/fish/functions/durations.fish
M .config/fish/functions/durations.fish => .config/fish/functions/durations.fish +1 -1
@@ 11,7 11,7 @@ function durations -d "Prints the duration of all video files in the current dir
  set_color normal;


  for file in *.{avi,m4v,mkv,mov,mp4,mpeg,webm,wmv}
  for file in *.{avi,m4v,mkv,mov,mp3,mp4,mpeg,webm,wmv}
    set -l milliseconds (mediainfo --Inform="General;%Duration%" $file)
    set -l seconds (math "round(($milliseconds % 60000)/1000)")
    set -l minutes (math "floor($milliseconds / 60000)")