iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.19k stars 1.79k forks source link

[Bug] sig_helper: If more than 5 minutes passed since player js fetch it will never be fetched again #4840

Closed MMaster closed 1 month ago

MMaster commented 1 month ago

Condition to check if player was fetched in last 5 minutes is reversed and it will early return if more than 5 minutes passed.

https://github.com/iv-org/invidious/blob/master/src/invidious/helpers/signatures.cr#L16

SamantazFox commented 1 month ago

Nice catch, thanks!