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

fix recent activity episode titles

This commit is contained in:
Luke Pulverenti 2017-01-13 02:26:22 -05:00
parent ba15a638ba
commit ce58a73714
8 changed files with 60 additions and 35 deletions

View file

@ -151,20 +151,20 @@
return Promise.resolve();
}
var settingsKey = 'periodicmessage-' + feature;
var settingsKey = 'periodicmessage2-' + feature;
var lastMessage = parseInt(appSettings.get(settingsKey) || '0');
if (!lastMessage) {
// Don't show on the very first playback attempt
appSettings.set(settingsKey, new Date().getTime());
appSettings.set(settingsKey, new Date().getTime() - intervalMs);
return Promise.resolve();
}
if ((new Date().getTime() - lastMessage) > intervalMs) {
connectionManager.currentApiClient().getPluginSecurityInfo().then(function (regInfo) {
return connectionManager.currentApiClient().getPluginSecurityInfo().then(function (regInfo) {
if (regInfo.IsMBSupporter) {
appSettings.set(settingsKey, new Date().getTime());