mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-06 00:52:45 -05:00
Fix videos being incorrectly labelled as isUpcoming = true
This commit is contained in:
parent
6373ac7814
commit
6dee8e0f88
@ -148,7 +148,7 @@ struct SearchVideo
|
||||
end
|
||||
|
||||
def upcoming?
|
||||
premiere_timestamp ? true : false
|
||||
premiere_timestamp.try { |t| t.to_unix > 0 } ? true : false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user