mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-14 13:40:03 +01:00
c784841b22
* display time left until video premiers: * video premiere display time left with time units Displays time left in seconds, minutes, hours, and days. This depends on how much time is left. * premiere time left, display time in singular if needed also simplified the big if block * premiere time left, display time unit in lowercase * Add Starting Soon string to locale file * apply fixes reported by linter * premiere time left, add suggested changes Better temp variable scoping, flatten nested code, rename temp variables, use string intepolation Co-authored-by: PikachuEXE <pikachuexe@gmail.com> * replace tabs with spaces tabs where used in some places in the suggested code * display time left, remove "starting soon" string Since upcomingTimeStamp will be null when the time has passed the scheduled timestamp it doesn't make sense to use something that will rarely be displayed. e.g. a user has to click on the video with less than a second remaing until it goes live for it to be displayed it would also be displayed as "Premieres in Starting soon" which doesn't make sense * display 'less than a minute' instead of exactly how many seconds remain Looks better and works for values less than 0 Co-authored-by: PikachuEXE <pikachuexe@gmail.com> |
||
---|---|---|
.. | ||
geolocations | ||
locales | ||
.gitkeep | ||
external-player-map.json | ||
invidious-instances.json | ||
manifest.json | ||
pwabuilder-sw.js |