mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Provide response on video error
This commit is contained in:
parent
f3c7409d72
commit
3ebe9139b7
2 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue