Skip to content

Commit

Permalink
Handle 'min' as well as old 'mn' style of reporting minute durations
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Apr 26, 2017
1 parent af770d3 commit 5e28f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediainfo/attr_readers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def mediainfo_duration_reader(*a)
# XXX haven't actually seen hot they represent hours yet
# but hopefully this is ok.. :\
when /\d+h/ then t += tf.to_i * 60 * 60 * 1000
when /\d+mn/ then t += tf.to_i * 60 * 1000
when /\d+mn/, /\d+min/ then t += tf.to_i * 60 * 1000
when /\d+ms/ then t += tf.to_i
when /\d+s/ then t += tf.to_i * 1000
else
Expand Down

0 comments on commit 5e28f2b

Please sign in to comment.