Provide response on video error

This commit is contained in:
Omar Roth 2018-08-08 10:20:07 -05:00
parent f3c7409d72
commit 3ebe9139b7
2 changed files with 9 additions and 7 deletions

View file

@ -68,7 +68,7 @@ def decode_date(string : String)
return Time.new(string.to_i, 1, 1)
end
# String matches format "20 hours ago", "40 minutes ago"...
# String matches format "20 hours ago", "4 months ago"...
date = string.split(" ")[-3, 3]
delta = date[0].to_i