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:
parent
c32c6b163f
commit
a71a58bc36
2 changed files with 10 additions and 2 deletions
|
@ -170,7 +170,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var cacheKey = 'lastappinfopresent5';
|
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('');
|
return Promise.resolve('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['paper-icon-button-light', 'jQuery'], function ($) {
|
define(['jQuery', 'paper-icon-button-light'], function ($) {
|
||||||
|
|
||||||
function connectToServer(page, server) {
|
function connectToServer(page, server) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue