Provide response on video error

This commit is contained in:
Omar Roth committed 2018-08-08 10:20:07 -05:00
1 parent f3c7409d72
commit 3ebe9139b7
2 files changed
+9 -7

No files matched your search

+1 -1
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