1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix trailer metadata

This commit is contained in:
Luke Pulverenti 2016-05-07 17:01:21 -04:00
parent c32c6b163f
commit a71a58bc36
2 changed files with 10 additions and 2 deletions

View file

@ -170,7 +170,15 @@
}
var cacheKey = 'lastappinfopresent5';
if ((new Date().getTime() - parseInt(appSettings.get(cacheKey) || '0')) < frequency) {
var lastDatePresented = parseInt(appSettings.get(cacheKey) || '0');
// Don't show the first time, right after installation
if (!lastDatePresented) {
appSettings.set(cacheKey, new Date().getTime());
return Promise.resolve('');
}
if ((new Date().getTime() - lastDatePresented) < frequency) {
return Promise.resolve('');
}