diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index d9d64bf0..d3f85b30 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -819,7 +819,7 @@ def decode_time(string) hours = /(?\d+)h/.match(string).try &.["hours"].try &.to_i hours ||= 0 - minutes = /(?\d+)m/.match(string).try &.["minutes"].try &.to_i + minutes = /(?\d+)m(?!s)/.match(string).try &.["minutes"].try &.to_i minutes ||= 0 seconds = /(?\d+)s/.match(string).try &.["seconds"].try &.to_i