mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
commit
df0c785b97
68 changed files with 804 additions and 702 deletions
|
@ -16,12 +16,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.1.75",
|
"version": "1.1.76",
|
||||||
"_release": "1.1.75",
|
"_release": "1.1.76",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.1.75",
|
"tag": "1.1.76",
|
||||||
"commit": "5518536e19fe1efdb8cb149833320017c051e751"
|
"commit": "1096ffc66e3df8d63e305889dd7fb5b769095082"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
||||||
"_target": "^1.1.51",
|
"_target": "^1.1.51",
|
||||||
|
|
47
dashboard-ui/bower_components/emby-apiclient/appstorage-cache.js
vendored
Normal file
47
dashboard-ui/bower_components/emby-apiclient/appstorage-cache.js
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
define([], function () {
|
||||||
|
|
||||||
|
var myStore = {};
|
||||||
|
var cache;
|
||||||
|
var localData;
|
||||||
|
|
||||||
|
function updateCache() {
|
||||||
|
cache.put('data', new Response(JSON.stringify(localData)));
|
||||||
|
}
|
||||||
|
|
||||||
|
myStore.setItem = function (name, value) {
|
||||||
|
|
||||||
|
if (localData) {
|
||||||
|
var changed = localData[name] != value;
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
|
localData[name] = value;
|
||||||
|
updateCache();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
myStore.getItem = function (name) {
|
||||||
|
|
||||||
|
if (localData) {
|
||||||
|
return localData[name];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
myStore.removeItem = function (name) {
|
||||||
|
|
||||||
|
if (localData) {
|
||||||
|
localData[name] = null;
|
||||||
|
delete localData[name];
|
||||||
|
updateCache();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
myStore.init = function () {
|
||||||
|
return caches.open('embydata').then(function (result) {
|
||||||
|
cache = result;
|
||||||
|
localData = {};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return myStore;
|
||||||
|
});
|
|
@ -14,12 +14,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.4.171",
|
"version": "1.4.173",
|
||||||
"_release": "1.4.171",
|
"_release": "1.4.173",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.4.171",
|
"tag": "1.4.173",
|
||||||
"commit": "388435c54b3b15c417b8d76701cf09b42b968a08"
|
"commit": "8766e295ec13de73c5ef5a61c7357fc30d8c9fa1"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.1",
|
"_target": "^1.2.1",
|
||||||
|
|
|
@ -702,7 +702,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCardFooterText(item, options, showTitle, imgUrl, footerClass, progressHtml, isOuterFooter) {
|
function getCardFooterText(item, options, showTitle, forceName, imgUrl, footerClass, progressHtml, isOuterFooter) {
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
|
@ -869,6 +869,10 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (showTitle && forceName && lines.length == 1) {
|
||||||
|
lines = [];
|
||||||
|
}
|
||||||
|
|
||||||
html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter);
|
html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter);
|
||||||
|
|
||||||
if (progressHtml) {
|
if (progressHtml) {
|
||||||
|
@ -1012,7 +1016,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
var imgInfo = getCardImageUrl(item, apiClient, options);
|
var imgInfo = getCardImageUrl(item, apiClient, options);
|
||||||
var imgUrl = imgInfo.imgUrl;
|
var imgUrl = imgInfo.imgUrl;
|
||||||
|
|
||||||
var forceName = imgInfo.forceName;
|
var forceName = imgInfo.forceName || !imgUrl;
|
||||||
|
|
||||||
var showTitle = options.showTitle == 'auto' ? true : (options.showTitle || item.Type == 'PhotoAlbum' || item.Type == 'Folder');
|
var showTitle = options.showTitle == 'auto' ? true : (options.showTitle || item.Type == 'PhotoAlbum' || item.Type == 'Folder');
|
||||||
var overlayText = options.overlayText;
|
var overlayText = options.overlayText;
|
||||||
|
@ -1057,7 +1061,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
if (overlayText) {
|
if (overlayText) {
|
||||||
|
|
||||||
footerCssClass = progressHtml ? 'innerCardFooter fullInnerCardFooter' : 'innerCardFooter';
|
footerCssClass = progressHtml ? 'innerCardFooter fullInnerCardFooter' : 'innerCardFooter';
|
||||||
innerCardFooter += getCardFooterText(item, options, showTitle, imgUrl, footerCssClass, progressHtml, false);
|
innerCardFooter += getCardFooterText(item, options, showTitle, forceName, imgUrl, footerCssClass, progressHtml, false);
|
||||||
footerOverlayed = true;
|
footerOverlayed = true;
|
||||||
}
|
}
|
||||||
else if (progressHtml) {
|
else if (progressHtml) {
|
||||||
|
@ -1076,7 +1080,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
var outerCardFooter = '';
|
var outerCardFooter = '';
|
||||||
if (!overlayText && !footerOverlayed) {
|
if (!overlayText && !footerOverlayed) {
|
||||||
footerCssClass = options.cardLayout ? 'cardFooter' : 'cardFooter transparent';
|
footerCssClass = options.cardLayout ? 'cardFooter' : 'cardFooter transparent';
|
||||||
outerCardFooter = getCardFooterText(item, options, showTitle, imgUrl, footerCssClass, progressHtml, true);
|
outerCardFooter = getCardFooterText(item, options, showTitle, forceName, imgUrl, footerCssClass, progressHtml, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outerCardFooter && !options.cardLayout && options.allowBottomPadding !== false) {
|
if (outerCardFooter && !options.cardLayout && options.allowBottomPadding !== false) {
|
||||||
|
|
|
@ -72,14 +72,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.fullSyncIndicator {
|
.fullSyncIndicator {
|
||||||
color: #673AB7;
|
background: rgba(82,181,75,1);
|
||||||
padding: 0;
|
|
||||||
border: 4px solid #673AB7;
|
|
||||||
background: #fff;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fullSyncIndicatorIcon {
|
|
||||||
margin: -3px;
|
|
||||||
}
|
}
|
|
@ -111,7 +111,7 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
||||||
function getSyncIndicator(item) {
|
function getSyncIndicator(item) {
|
||||||
|
|
||||||
if (item.SyncPercent == 100) {
|
if (item.SyncPercent == 100) {
|
||||||
return '<div class="syncIndicator indicator fullSyncIndicator"><i class="md-icon indicatorIcon fullSyncIndicatorIcon">offline_pin</i></div>';
|
return '<div class="syncIndicator indicator fullSyncIndicator"><i class="md-icon indicatorIcon">file_download</i></div>';
|
||||||
} else if (item.SyncPercent != null) {
|
} else if (item.SyncPercent != null) {
|
||||||
return '<div class="syncIndicator indicator emptySyncIndicator"><i class="md-icon indicatorIcon">file_download</i></div>';
|
return '<div class="syncIndicator indicator emptySyncIndicator"><i class="md-icon indicatorIcon">file_download</i></div>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,23 +176,22 @@
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
||||||
var msg = globalize.translate('ConfirmDeleteItem');
|
var msg = globalize.translate('sharedcomponents#ConfirmDeleteItem');
|
||||||
var title = globalize.translate('HeaderDeleteItem');
|
var title = globalize.translate('sharedcomponents#HeaderDeleteItem');
|
||||||
|
|
||||||
if (itemIds.length > 1) {
|
if (itemIds.length > 1) {
|
||||||
msg = globalize.translate('ConfirmDeleteItems');
|
msg = globalize.translate('sharedcomponents#ConfirmDeleteItems');
|
||||||
title = globalize.translate('HeaderDeleteItems');
|
title = globalize.translate('sharedcomponents#HeaderDeleteItems');
|
||||||
}
|
}
|
||||||
|
|
||||||
require(['confirm'], function (confirm) {
|
require(['confirm'], function (confirm) {
|
||||||
|
|
||||||
confirm(msg, title).then(function () {
|
confirm(msg, title).then(function () {
|
||||||
|
|
||||||
var promises = itemIds.map(function (itemId) {
|
var promises = itemIds.map(function (itemId) {
|
||||||
apiClient.deleteItem(itemId);
|
apiClient.deleteItem(itemId);
|
||||||
});
|
});
|
||||||
|
|
||||||
resolve();
|
Promise.all(promises).then(resolve);
|
||||||
}, reject);
|
}, reject);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -306,7 +305,7 @@
|
||||||
dispatchNeedsRefresh();
|
dispatchNeedsRefresh();
|
||||||
break;
|
break;
|
||||||
case 'delete':
|
case 'delete':
|
||||||
deleteItems(items).then(function () {
|
deleteItems(apiClient, items).then(function () {
|
||||||
embyRouter.goHome();
|
embyRouter.goHome();
|
||||||
});
|
});
|
||||||
hideSelections();
|
hideSelections();
|
||||||
|
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -2,8 +2,8 @@
|
||||||
"ValueSpecialEpisodeName": "Special - {0}",
|
"ValueSpecialEpisodeName": "Special - {0}",
|
||||||
"Share": "Teilen",
|
"Share": "Teilen",
|
||||||
"Add": "Hinzuf\u00fcgen",
|
"Add": "Hinzuf\u00fcgen",
|
||||||
"ServerUpdateNeeded": "Dieser Emby Server muss aktualisiert werden. Um die neueste Version herunterzuladen, besuchen sie bitte {0}",
|
"ServerUpdateNeeded": "Dieser Emby Server muss aktualisiert werden. Um die neueste Version herunterzuladen, besuche bitte {0}",
|
||||||
"LiveTvGuideRequiresUnlock": "Ihr TV-Guide ist begrenzt auf {0} Kan\u00e4le. Klicken Sie auf die Freischalten Schaltfl\u00e4che um weitere Informationen zu erhalten.",
|
"LiveTvGuideRequiresUnlock": "Dein TV-Guide ist derzeit begrenzt auf {0} Kan\u00e4le. Klicke auf die \"Freischalten\" Schaltfl\u00e4che um weitere Informationen zu erhalten.",
|
||||||
"AttributeNew": "Neu",
|
"AttributeNew": "Neu",
|
||||||
"AttributePremiere": "Premiere",
|
"AttributePremiere": "Premiere",
|
||||||
"AttributeLive": "Live",
|
"AttributeLive": "Live",
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
"ButtonOk": "Ok",
|
"ButtonOk": "Ok",
|
||||||
"ButtonCancel": "Abbrechen",
|
"ButtonCancel": "Abbrechen",
|
||||||
"ButtonGotIt": "Verstanden",
|
"ButtonGotIt": "Verstanden",
|
||||||
"ButtonRestart": "Restart",
|
"ButtonRestart": "Neustart",
|
||||||
"RecordingCancelled": "Aufzeichnung abgebrochen.",
|
"RecordingCancelled": "Aufzeichnung abgebrochen.",
|
||||||
"RecordingScheduled": "Aufnahme geplant.",
|
"RecordingScheduled": "Aufnahme geplant.",
|
||||||
"SeriesRecordingScheduled": "Serien-Aufnahme geplant.",
|
"SeriesRecordingScheduled": "Serien-Aufnahme geplant.",
|
||||||
|
@ -43,8 +43,8 @@
|
||||||
"RecordOnAllChannels": "Auf allen Kan\u00e4len aufzeichnen",
|
"RecordOnAllChannels": "Auf allen Kan\u00e4len aufzeichnen",
|
||||||
"RecordAnytime": "Zu jeder Zeit aufzeichnen",
|
"RecordAnytime": "Zu jeder Zeit aufzeichnen",
|
||||||
"RecordOnlyNewEpisodes": "Nehme nur neue Episoden auf",
|
"RecordOnlyNewEpisodes": "Nehme nur neue Episoden auf",
|
||||||
"HeaderBecomeProjectSupporter": "Holen Sie Emby Premium",
|
"HeaderBecomeProjectSupporter": "Hol dir Emby Premiere",
|
||||||
"HeaderEnjoyDayTrial": "Genie\u00dfen Sie eine 14 Tage Testversion",
|
"HeaderEnjoyDayTrial": "Genie\u00dfe eine 14-t\u00e4gige Testversion",
|
||||||
"MessageActiveSubscriptionRequiredSeriesRecordings": "Ein aktives Emby Premium Abo wird benn\u00f6tigt um automatische Serienaufnahmen zu erstellen.",
|
"MessageActiveSubscriptionRequiredSeriesRecordings": "Ein aktives Emby Premium Abo wird benn\u00f6tigt um automatische Serienaufnahmen zu erstellen.",
|
||||||
"OptionConvertRecordingsToStreamingFormat": "Konvertiere Aufnahmen automatisch in ein streaming freundliches Format.",
|
"OptionConvertRecordingsToStreamingFormat": "Konvertiere Aufnahmen automatisch in ein streaming freundliches Format.",
|
||||||
"OptionConvertRecordingsToStreamingFormatHelp": "Aufnahmen werden als MP4 konvertiert um eine bessere Wiedergabe auf Ihren Ger\u00e4ten zu gew\u00e4hrleisten.",
|
"OptionConvertRecordingsToStreamingFormatHelp": "Aufnahmen werden als MP4 konvertiert um eine bessere Wiedergabe auf Ihren Ger\u00e4ten zu gew\u00e4hrleisten.",
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
"Advanced": "Erweitert",
|
"Advanced": "Erweitert",
|
||||||
"Delete": "L\u00f6schen",
|
"Delete": "L\u00f6schen",
|
||||||
"HeaderDeleteItem": "L\u00f6sche Element",
|
"HeaderDeleteItem": "L\u00f6sche Element",
|
||||||
"ConfirmDeleteItem": "L\u00f6schen dieses Eintrages bedeutet das L\u00f6schen der Datei und das Entfernen aus der Medien-Bibliothek. M\u00f6chten Sie wirklich fortfahren?",
|
"ConfirmDeleteItem": "L\u00f6schen dieses Eintrages bedeutet das L\u00f6schen der Datei und das Entfernen aus der Medien-Bibliothek. M\u00f6chtest du wirklich fortfahren?",
|
||||||
"Refresh": "Aktualisieren",
|
"Refresh": "Aktualisieren",
|
||||||
"RefreshQueued": "Warteschlange aktualisieren.",
|
"RefreshQueued": "Warteschlange aktualisieren.",
|
||||||
"AddToCollection": "Zur Sammlung hinzuf\u00fcgen",
|
"AddToCollection": "Zur Sammlung hinzuf\u00fcgen",
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
"NewCollection": "Neue Collection",
|
"NewCollection": "Neue Collection",
|
||||||
"LabelCollection": "Sammlung:",
|
"LabelCollection": "Sammlung:",
|
||||||
"Help": "Hilfe",
|
"Help": "Hilfe",
|
||||||
"NewCollectionHelp": "Sammlungen erm\u00f6glichen personallisierte Gruppen von Filmen oder anderen Medien.",
|
"NewCollectionHelp": "Sammlungen erm\u00f6glichen personalisierte Gruppen von Filmen oder anderen Medien.",
|
||||||
"SearchForCollectionInternetMetadata": "Suche im Internet nach Bildmaterial und Metadaten",
|
"SearchForCollectionInternetMetadata": "Suche im Internet nach Bildmaterial und Metadaten",
|
||||||
"LabelName": "Name:",
|
"LabelName": "Name:",
|
||||||
"NewCollectionNameExample": "Beispiel: Star Wars Collection",
|
"NewCollectionNameExample": "Beispiel: Star Wars Collection",
|
||||||
|
@ -91,11 +91,11 @@
|
||||||
"SearchForMissingMetadata": "Suche nach fehlenden Metadaten",
|
"SearchForMissingMetadata": "Suche nach fehlenden Metadaten",
|
||||||
"LabelRefreshMode": "Aktualisierungsmodus:",
|
"LabelRefreshMode": "Aktualisierungsmodus:",
|
||||||
"NoItemsFound": "Keine Eintr\u00e4ge gefunden.",
|
"NoItemsFound": "Keine Eintr\u00e4ge gefunden.",
|
||||||
"HeaderSaySomethingLike": "Sagen Sie etwas wie...",
|
"HeaderSaySomethingLike": "Sage etwas wie...",
|
||||||
"ButtonTryAgain": "Erneut versuchen",
|
"ButtonTryAgain": "Erneut versuchen",
|
||||||
"HeaderYouSaid": "Sie sagten....",
|
"HeaderYouSaid": "Du sagtest....",
|
||||||
"MessageWeDidntRecognizeCommand": "Entschuldigung, dieses Kommando konnten wir nicht erkennen.",
|
"MessageWeDidntRecognizeCommand": "Entschuldigung, dieses Kommando konnten wir nicht erkennen.",
|
||||||
"MessageIfYouBlockedVoice": "Wenn Sie die Sprachsteuerung f\u00fcr die App nicht erlaubt haben so m\u00fcssen Sie dies zuvor \u00e4ndern bevor Sie es erneut probieren.",
|
"MessageIfYouBlockedVoice": "Wenn du die Sprachsteuerung f\u00fcr die App nicht erlaubt hast, musst du dies vor einem erneuten Versuch \u00e4ndern.",
|
||||||
"ValueDiscNumber": "Disc {0}",
|
"ValueDiscNumber": "Disc {0}",
|
||||||
"Unrated": "Nicht bewertet",
|
"Unrated": "Nicht bewertet",
|
||||||
"Favorite": "Favorit",
|
"Favorite": "Favorit",
|
||||||
|
@ -124,9 +124,9 @@
|
||||||
"MarkUnplayed": "Markiere \"als ungesehen\"",
|
"MarkUnplayed": "Markiere \"als ungesehen\"",
|
||||||
"GroupVersions": "Gruppiere Versionen",
|
"GroupVersions": "Gruppiere Versionen",
|
||||||
"PleaseSelectTwoItems": "Bitte w\u00e4hle mindestens zwei Optionen aus.",
|
"PleaseSelectTwoItems": "Bitte w\u00e4hle mindestens zwei Optionen aus.",
|
||||||
"TheSelectedItemsWillBeGrouped": "Die ausgew\u00e4hlten Videos werden in einem virtuellen Element gruppiert. Emby Anwendungen w\u00e4hlen automatisch die beste Version anhand des Ger\u00e4tes und der Netzwerkgeschwindigkeit. Sind Sie sich sicher, dass Sie fortfahren m\u00f6chten?",
|
"TheSelectedItemsWillBeGrouped": "Die ausgew\u00e4hlten Videos werden in einem virtuellen Element gruppiert. Emby Anwendungen w\u00e4hlen automatisch die beste Version anhand des Ger\u00e4tes und der Netzwerkgeschwindigkeit. Bist du sicher, dass du fortfahren m\u00f6chtest?",
|
||||||
"TryMultiSelect": "Versuche Mehrfachauswahl",
|
"TryMultiSelect": "Versuche Mehrfachauswahl",
|
||||||
"TryMultiSelectMessage": "F\u00fcr eine Mehrfachauswahl klicken und halten Sie ein Poster. W\u00e4hlen Sie die Eintr\u00e4ge die Sie bearbeiten m\u00f6chten. Versuchen SIe es!",
|
"TryMultiSelectMessage": "F\u00fcr eine Mehrfachauswahl klicke und halte ein Poster. W\u00e4hle die Eintr\u00e4ge die du bearbeiten m\u00f6chten. Versuch es!",
|
||||||
"HeaderConfirmRecordingCancellation": "Best\u00e4tige Aufzeichnungsabbruch",
|
"HeaderConfirmRecordingCancellation": "Best\u00e4tige Aufzeichnungsabbruch",
|
||||||
"MessageConfirmRecordingCancellation": "Bis du dir sicher, diese Aufzeichnung abzubrechen?",
|
"MessageConfirmRecordingCancellation": "Bis du dir sicher, diese Aufzeichnung abzubrechen?",
|
||||||
"Error": "Fehler",
|
"Error": "Fehler",
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
"LabelOriginalTitle": "Original Titel:",
|
"LabelOriginalTitle": "Original Titel:",
|
||||||
"LabelSortTitle": "Sortierungs Titel:",
|
"LabelSortTitle": "Sortierungs Titel:",
|
||||||
"LabelDateAdded": "Hinzugef\u00fcgt am:",
|
"LabelDateAdded": "Hinzugef\u00fcgt am:",
|
||||||
"ConfigureDateAdded": "Bestimmen Sie in den Bibliotheks-Einstellungen des Emby Server Dashboards, wie das Feld \"Hinzugef\u00fcgt am\" interpretiert werden soll.",
|
"ConfigureDateAdded": "Bestimme in den Bibliotheks-Einstellungen des Emby Server Dashboards, wie das Feld \"Hinzugef\u00fcgt am\" interpretiert werden soll.",
|
||||||
"LabelStatus": "Status:",
|
"LabelStatus": "Status:",
|
||||||
"LabelArtists": "Interpreten:",
|
"LabelArtists": "Interpreten:",
|
||||||
"LabelArtistsHelp": "Trenne mehrere Eintr\u00e4ge durch ;",
|
"LabelArtistsHelp": "Trenne mehrere Eintr\u00e4ge durch ;",
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
"Continuing": "Fortdauernd",
|
"Continuing": "Fortdauernd",
|
||||||
"Ended": "Beendent",
|
"Ended": "Beendent",
|
||||||
"HeaderEnabledFields": "Aktiviere Felder",
|
"HeaderEnabledFields": "Aktiviere Felder",
|
||||||
"HeaderEnabledFieldsHelp": "W\u00e4hlen Sie Felder ab um das \u00c4ndern von Daten zu verhindern.",
|
"HeaderEnabledFieldsHelp": "W\u00e4hle Felder ab um das \u00c4ndern von Daten zu verhindern.",
|
||||||
"Backdrops": "Hintergr\u00fcnde",
|
"Backdrops": "Hintergr\u00fcnde",
|
||||||
"Images": "Bilder",
|
"Images": "Bilder",
|
||||||
"Keywords": "Stichworte",
|
"Keywords": "Stichworte",
|
||||||
|
@ -250,7 +250,9 @@
|
||||||
"SearchResults": "Suchergebnisse",
|
"SearchResults": "Suchergebnisse",
|
||||||
"SyncToOtherDevice": "Mit einem anderen Ger\u00e4t synchronisieren",
|
"SyncToOtherDevice": "Mit einem anderen Ger\u00e4t synchronisieren",
|
||||||
"MakeAvailableOffline": "Offline verf\u00fcgbar machen",
|
"MakeAvailableOffline": "Offline verf\u00fcgbar machen",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} startet neu.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} f\u00e4hrt herunter.",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
|
"PleaseRestartServerName": "Bitte starte Emby Server - {0} neu."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@
|
||||||
"ButtonOk": "OK",
|
"ButtonOk": "OK",
|
||||||
"ButtonCancel": "Annuler",
|
"ButtonCancel": "Annuler",
|
||||||
"ButtonGotIt": "Vu",
|
"ButtonGotIt": "Vu",
|
||||||
"ButtonRestart": "Restart",
|
"ButtonRestart": "Red\u00e9marrer",
|
||||||
"RecordingCancelled": "Enregistrement annul\u00e9.",
|
"RecordingCancelled": "Enregistrement annul\u00e9.",
|
||||||
"RecordingScheduled": "Enregistrement planifi\u00e9.",
|
"RecordingScheduled": "Enregistrement planifi\u00e9.",
|
||||||
"SeriesRecordingScheduled": "Enregistrement de la s\u00e9rie pr\u00e9vue.",
|
"SeriesRecordingScheduled": "Enregistrement de la s\u00e9rie pr\u00e9vue.",
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
"Shuffle": "M\u00e9langer",
|
"Shuffle": "M\u00e9langer",
|
||||||
"Identify": "Identifier",
|
"Identify": "Identifier",
|
||||||
"EditImages": "Modifier les images",
|
"EditImages": "Modifier les images",
|
||||||
"EditInfo": "Modifier les informations",
|
"EditInfo": "Modifier infos",
|
||||||
"Sync": "Sync",
|
"Sync": "Sync",
|
||||||
"InstantMix": "Instantan\u00e9",
|
"InstantMix": "Instantan\u00e9",
|
||||||
"ViewAlbum": "Voir l'album",
|
"ViewAlbum": "Voir l'album",
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
"Trailer": "Bande-annonce",
|
"Trailer": "Bande-annonce",
|
||||||
"MarkPlayed": "Marquer comme lu",
|
"MarkPlayed": "Marquer comme lu",
|
||||||
"MarkUnplayed": "Marquer comme non lu",
|
"MarkUnplayed": "Marquer comme non lu",
|
||||||
"GroupVersions": "Versions des groupes",
|
"GroupVersions": "Versions de groupe",
|
||||||
"PleaseSelectTwoItems": "Veuillez s\u00e9lectionner au moins deux items.",
|
"PleaseSelectTwoItems": "Veuillez s\u00e9lectionner au moins deux items.",
|
||||||
"TheSelectedItemsWillBeGrouped": "Les vid\u00e9os s\u00e9lectionn\u00e9es seront regroup\u00e9es dans un objet virtuel. L'application Emby choisira automatiquement quelle version jouer d'apr\u00e8s le p\u00e9riph\u00e9rique et la performance du r\u00e9seau. \u00cates-vous s\u00fbre de vouloir continuer ?",
|
"TheSelectedItemsWillBeGrouped": "Les vid\u00e9os s\u00e9lectionn\u00e9es seront regroup\u00e9es dans un objet virtuel. L'application Emby choisira automatiquement quelle version jouer d'apr\u00e8s le p\u00e9riph\u00e9rique et la performance du r\u00e9seau. \u00cates-vous s\u00fbre de vouloir continuer ?",
|
||||||
"TryMultiSelect": "Essayer la s\u00e9lection multiple",
|
"TryMultiSelect": "Essayer la s\u00e9lection multiple",
|
||||||
|
@ -248,9 +248,11 @@
|
||||||
"PleaseEnterNameOrId": "Veuillez saisir un nom ou un identifiant externe.",
|
"PleaseEnterNameOrId": "Veuillez saisir un nom ou un identifiant externe.",
|
||||||
"MessageItemSaved": "Item sauvegard\u00e9.",
|
"MessageItemSaved": "Item sauvegard\u00e9.",
|
||||||
"SearchResults": "R\u00e9sultats de la recherche",
|
"SearchResults": "R\u00e9sultats de la recherche",
|
||||||
"SyncToOtherDevice": "Sync to other device",
|
"SyncToOtherDevice": "Sync vers un autre appareil",
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Rendre disponible hors connexion",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} est red\u00e9marr\u00e9.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} est arr\u00eater.",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
|
"PleaseRestartServerName": "S'il vous pla\u00eet red\u00e9marrer Emby server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@
|
||||||
"ButtonOk": "\u0416\u0430\u0440\u0430\u0439\u0434\u044b",
|
"ButtonOk": "\u0416\u0430\u0440\u0430\u0439\u0434\u044b",
|
||||||
"ButtonCancel": "\u0411\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443",
|
"ButtonCancel": "\u0411\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443",
|
||||||
"ButtonGotIt": "\u0422\u04af\u0441\u0456\u043d\u0456\u043a\u0442\u0456",
|
"ButtonGotIt": "\u0422\u04af\u0441\u0456\u043d\u0456\u043a\u0442\u0456",
|
||||||
"ButtonRestart": "Restart",
|
"ButtonRestart": "\u049a\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443",
|
||||||
"RecordingCancelled": "\u0416\u0430\u0437\u0431\u0430 \u0431\u043e\u043b\u0434\u044b\u0440\u044b\u043b\u043c\u0430\u0434\u044b.",
|
"RecordingCancelled": "\u0416\u0430\u0437\u0431\u0430 \u0431\u043e\u043b\u0434\u044b\u0440\u044b\u043b\u043c\u0430\u0434\u044b.",
|
||||||
"RecordingScheduled": "\u0416\u0430\u0437\u0443 \u0436\u043e\u0441\u043f\u0430\u0440\u043b\u0430\u0493\u0430\u043d.",
|
"RecordingScheduled": "\u0416\u0430\u0437\u0443 \u0436\u043e\u0441\u043f\u0430\u0440\u043b\u0430\u0493\u0430\u043d.",
|
||||||
"SeriesRecordingScheduled": "\u0422\u0435\u043b\u0435\u0445\u0438\u043a\u0430\u044f \u0436\u0430\u0437\u0443\u044b \u0436\u043e\u0441\u043f\u0430\u0440\u043b\u0430\u0493\u0430\u043d.",
|
"SeriesRecordingScheduled": "\u0422\u0435\u043b\u0435\u0445\u0438\u043a\u0430\u044f \u0436\u0430\u0437\u0443\u044b \u0436\u043e\u0441\u043f\u0430\u0440\u043b\u0430\u0493\u0430\u043d.",
|
||||||
|
@ -250,7 +250,9 @@
|
||||||
"SearchResults": "\u0406\u0437\u0434\u0435\u0443 \u043d\u04d9\u0442\u0438\u0436\u0435\u043b\u0435\u0440\u0456",
|
"SearchResults": "\u0406\u0437\u0434\u0435\u0443 \u043d\u04d9\u0442\u0438\u0436\u0435\u043b\u0435\u0440\u0456",
|
||||||
"SyncToOtherDevice": "\u0411\u0430\u0441\u049b\u0430 \u049b\u04b1\u0440\u044b\u043b\u0493\u044b\u043c\u0435\u043d \u04af\u043d\u0434\u0435\u0441\u0442\u0456\u0440\u0443",
|
"SyncToOtherDevice": "\u0411\u0430\u0441\u049b\u0430 \u049b\u04b1\u0440\u044b\u043b\u0493\u044b\u043c\u0435\u043d \u04af\u043d\u0434\u0435\u0441\u0442\u0456\u0440\u0443",
|
||||||
"MakeAvailableOffline": "\u0414\u0435\u0440\u0431\u0435\u0441 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0435\u0442\u0443",
|
"MakeAvailableOffline": "\u0414\u0435\u0440\u0431\u0435\u0441 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0435\u0442\u0443",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0443\u0434\u0430.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0430\u044f\u049b\u0442\u0430\u0443\u0434\u0430.",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
|
"PleaseRestartServerName": "Emby Server \u04af\u0448\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437 - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@
|
||||||
"ButtonOk": "Ok",
|
"ButtonOk": "Ok",
|
||||||
"ButtonCancel": "Cancelar",
|
"ButtonCancel": "Cancelar",
|
||||||
"ButtonGotIt": "Feito",
|
"ButtonGotIt": "Feito",
|
||||||
"ButtonRestart": "Restart",
|
"ButtonRestart": "Reiniciar",
|
||||||
"RecordingCancelled": "Grava\u00e7\u00e3o cancelada.",
|
"RecordingCancelled": "Grava\u00e7\u00e3o cancelada.",
|
||||||
"RecordingScheduled": "Grava\u00e7\u00e3o agendada.",
|
"RecordingScheduled": "Grava\u00e7\u00e3o agendada.",
|
||||||
"SeriesRecordingScheduled": "Grava\u00e7\u00e3o de s\u00e9rie agendada.",
|
"SeriesRecordingScheduled": "Grava\u00e7\u00e3o de s\u00e9rie agendada.",
|
||||||
|
@ -248,9 +248,11 @@
|
||||||
"PleaseEnterNameOrId": "Por favor, digite um nome ou um id externo.",
|
"PleaseEnterNameOrId": "Por favor, digite um nome ou um id externo.",
|
||||||
"MessageItemSaved": "Item salvo.",
|
"MessageItemSaved": "Item salvo.",
|
||||||
"SearchResults": "Resultados da Busca",
|
"SearchResults": "Resultados da Busca",
|
||||||
"SyncToOtherDevice": "Sync to other device",
|
"SyncToOtherDevice": "Sincronizar para outro dispositivo",
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Disponibilizar offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Servidor Emby - {0} est\u00e1 reiniciando.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Servidor Emby - {0} est\u00e1 desligando.",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"HeaderDeleteItems": "Apagar Itens",
|
||||||
|
"ConfirmDeleteItems": "Apagar estes itens ir\u00e1 remov\u00ea-los do sistema de arquivos e da biblioteca de m\u00eddia. Tem certeza que deseja continuar?",
|
||||||
|
"PleaseRestartServerName": "Por favor reinicie o Servidor Emby - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@
|
||||||
"ButtonOk": "\u041e\u041a",
|
"ButtonOk": "\u041e\u041a",
|
||||||
"ButtonCancel": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",
|
"ButtonCancel": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",
|
||||||
"ButtonGotIt": "\u041f\u043e\u043d\u044f\u0442\u043d\u043e",
|
"ButtonGotIt": "\u041f\u043e\u043d\u044f\u0442\u043d\u043e",
|
||||||
"ButtonRestart": "Restart",
|
"ButtonRestart": "\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c",
|
||||||
"RecordingCancelled": "\u0417\u0430\u043f\u0438\u0441\u044c \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430.",
|
"RecordingCancelled": "\u0417\u0430\u043f\u0438\u0441\u044c \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430.",
|
||||||
"RecordingScheduled": "\u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430.",
|
"RecordingScheduled": "\u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430.",
|
||||||
"SeriesRecordingScheduled": "\u0417\u0430\u043f\u0438\u0441\u044c \u0441\u0435\u0440\u0438\u0430\u043b\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430.",
|
"SeriesRecordingScheduled": "\u0417\u0430\u043f\u0438\u0441\u044c \u0441\u0435\u0440\u0438\u0430\u043b\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430.",
|
||||||
|
@ -250,7 +250,9 @@
|
||||||
"SearchResults": "\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430",
|
"SearchResults": "\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430",
|
||||||
"SyncToOtherDevice": "\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c",
|
"SyncToOtherDevice": "\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c",
|
||||||
"MakeAvailableOffline": "\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e",
|
"MakeAvailableOffline": "\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
|
"PleaseRestartServerName": "\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -117,7 +117,11 @@
|
||||||
var itemHtml = '';
|
var itemHtml = '';
|
||||||
|
|
||||||
var tagName = layoutManager.tv ? 'button' : 'div';
|
var tagName = layoutManager.tv ? 'button' : 'div';
|
||||||
var className = layoutManager.tv && s.Path ? 'listItem listItem-focusscale btnDelete' : 'listItem';
|
var className = layoutManager.tv && s.Path ? 'listItem btnDelete' : 'listItem';
|
||||||
|
|
||||||
|
if (layoutManager.tv) {
|
||||||
|
className += ' listItem-focusscale listItem-button';
|
||||||
|
}
|
||||||
|
|
||||||
className += ' listItem-noborder';
|
className += ' listItem-noborder';
|
||||||
|
|
||||||
|
@ -236,6 +240,9 @@
|
||||||
|
|
||||||
var tagName = layoutManager.tv ? 'button' : 'div';
|
var tagName = layoutManager.tv ? 'button' : 'div';
|
||||||
var className = layoutManager.tv ? 'listItem btnOptions' : 'listItem';
|
var className = layoutManager.tv ? 'listItem btnOptions' : 'listItem';
|
||||||
|
if (layoutManager.tv) {
|
||||||
|
className += ' listItem-focusscale listItem-button';
|
||||||
|
}
|
||||||
|
|
||||||
html += '<' + tagName + ' class="' + className + '" data-subid="' + result.Id + '">';
|
html += '<' + tagName + ' class="' + className + '" data-subid="' + result.Id + '">';
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://github.com/Polymer/polymer",
|
"homepage": "https://github.com/polymer/polymer",
|
||||||
"_release": "1.6.1",
|
"_release": "1.6.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.6.1",
|
"tag": "v1.6.1",
|
||||||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/Polymer/polymer.git",
|
"_source": "git://github.com/polymer/polymer.git",
|
||||||
"_target": "^1.1.0",
|
"_target": "^1.1.0",
|
||||||
"_originalSource": "Polymer/polymer"
|
"_originalSource": "polymer/polymer"
|
||||||
}
|
}
|
|
@ -20,13 +20,13 @@
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">home</i><div>Home</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">home</i><div>Home</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="1">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="1">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">dvr</i><div>Live TV</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">dvr</i><div>Libraries</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button homeFavoritesTab" data-index="2">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button homeFavoritesTab" data-index="2">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">favorite</i><div>Favorites</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">favorite</i><div>Favorites</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="3">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="3">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">playlist_play</i><div>Now Playing</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">file_download</i><div>Downloads</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="3">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="3">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">menu</i><div>More</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">menu</i><div>More</div></div>\
|
||||||
|
|
333
dashboard-ui/components/syncjoblist/syncjoblist.js
Normal file
333
dashboard-ui/components/syncjoblist/syncjoblist.js
Normal file
|
@ -0,0 +1,333 @@
|
||||||
|
define(['serverNotifications', 'events', 'loading', 'connectionManager', 'imageLoader', 'dom', 'globalize', 'listViewStyle'], function (serverNotifications, events, loading, connectionManager, imageLoader, dom, globalize) {
|
||||||
|
|
||||||
|
function onSyncJobsUpdated(e, apiClient, data) {
|
||||||
|
|
||||||
|
var listInstance = this;
|
||||||
|
renderList(listInstance, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
function refreshList(listInstance, jobs) {
|
||||||
|
for (var i = 0, length = jobs.length; i < length; i++) {
|
||||||
|
|
||||||
|
var job = jobs[i];
|
||||||
|
refreshJob(listInstance, job);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function cancelJob(listInstance, id) {
|
||||||
|
|
||||||
|
require(['confirm'], function (confirm) {
|
||||||
|
|
||||||
|
var msg = listInstance.options.isLocalSync ?
|
||||||
|
globalize.translate('ConfirmRemoveDownload') :
|
||||||
|
globalize.translate('CancelSyncJobConfirmation');
|
||||||
|
|
||||||
|
confirm(msg).then(function () {
|
||||||
|
|
||||||
|
loading.show();
|
||||||
|
var apiClient = getApiClient(listInstance);
|
||||||
|
|
||||||
|
apiClient.ajax({
|
||||||
|
|
||||||
|
url: apiClient.getUrl('Sync/Jobs/' + id),
|
||||||
|
type: 'DELETE'
|
||||||
|
|
||||||
|
}).then(function () {
|
||||||
|
|
||||||
|
fetchData(listInstance);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function refreshJob(listInstance, job) {
|
||||||
|
|
||||||
|
var listItem = listInstance.options.element.querySelector('.listItem[data-id=\'' + job.Id + '\']');
|
||||||
|
|
||||||
|
if (!listItem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var progress = job.Progress || 0;
|
||||||
|
var statusIcon = listItem.querySelector('.statusIcon');
|
||||||
|
|
||||||
|
if (progress === 0) {
|
||||||
|
statusIcon.innerHTML = 'file_download';
|
||||||
|
statusIcon.classList.add('md-icon');
|
||||||
|
statusIcon.classList.remove('status-text-icon');
|
||||||
|
statusIcon.classList.add('zeroProgressStatus');
|
||||||
|
} else if (progress >= 100) {
|
||||||
|
statusIcon.innerHTML = 'file_download';
|
||||||
|
statusIcon.classList.add('md-icon');
|
||||||
|
statusIcon.classList.remove('status-text-icon');
|
||||||
|
statusIcon.classList.remove('zeroProgressStatus');
|
||||||
|
} else {
|
||||||
|
statusIcon.classList.remove('md-icon');
|
||||||
|
statusIcon.classList.remove('zeroProgressStatus');
|
||||||
|
statusIcon.classList.add('status-text-icon');
|
||||||
|
statusIcon.innerHTML = (Math.round(progress)) + '%';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSyncJobHtml(listInstance, job) {
|
||||||
|
|
||||||
|
var html = '';
|
||||||
|
|
||||||
|
html += '<div class="listItem" data-id="' + job.Id + '" data-status="' + job.Status + '">';
|
||||||
|
|
||||||
|
var progress = job.Progress || 0;
|
||||||
|
|
||||||
|
if (progress === 0) {
|
||||||
|
html += '<i class="md-icon listItemIcon statusIcon zeroProgressStatus">file_download</i>';
|
||||||
|
} else if (progress >= 100) {
|
||||||
|
html += '<i class="md-icon listItemIcon statusIcon">file_download</i>';
|
||||||
|
} else {
|
||||||
|
html += '<i class="listItemIcon statusIcon status-text-icon">' + (Math.round(progress)) + '%</i>';
|
||||||
|
}
|
||||||
|
|
||||||
|
var textLines = [];
|
||||||
|
|
||||||
|
if (job.ParentName) {
|
||||||
|
textLines.push(job.ParentName);
|
||||||
|
}
|
||||||
|
|
||||||
|
textLines.push(job.Name);
|
||||||
|
|
||||||
|
if (job.ItemCount == 1) {
|
||||||
|
textLines.push(globalize.translate('ValueItemCount', job.ItemCount));
|
||||||
|
} else {
|
||||||
|
textLines.push(globalize.translate('ValueItemCountPlural', job.ItemCount));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (textLines >= 3) {
|
||||||
|
html += '<div class="listItemBody three-line">';
|
||||||
|
} else {
|
||||||
|
html += '<div class="listItemBody two-line">';
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0, length = textLines.length; i < length; i++) {
|
||||||
|
|
||||||
|
if (i == 0) {
|
||||||
|
html += '<h3 class="listItemBodyText">';
|
||||||
|
html += textLines[i];
|
||||||
|
html += '</h3>';
|
||||||
|
} else {
|
||||||
|
html += '<div class="listItemBodyText secondary">';
|
||||||
|
html += textLines[i];
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html += '</div>';
|
||||||
|
|
||||||
|
html += '<button type="button" is="paper-icon-button-light" class="btnJobMenu listItemButton"><i class="md-icon">more_vert</i></button>';
|
||||||
|
|
||||||
|
html += '</div>';
|
||||||
|
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderList(listInstance, jobs) {
|
||||||
|
|
||||||
|
if ((new Date().getTime() - listInstance.lastDataLoad) < 60000) {
|
||||||
|
refreshList(listInstance, jobs);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
listInstance.lastDataLoad = new Date().getTime();
|
||||||
|
|
||||||
|
var html = '';
|
||||||
|
var lastTargetName = '';
|
||||||
|
|
||||||
|
var showTargetName = !listInstance.options.isLocalSync;
|
||||||
|
|
||||||
|
var hasOpenSection = false;
|
||||||
|
|
||||||
|
for (var i = 0, length = jobs.length; i < length; i++) {
|
||||||
|
|
||||||
|
var job = jobs[i];
|
||||||
|
if (showTargetName) {
|
||||||
|
var targetName = job.TargetName || 'Unknown';
|
||||||
|
|
||||||
|
if (targetName != lastTargetName) {
|
||||||
|
|
||||||
|
if (lastTargetName) {
|
||||||
|
html += '</div>';
|
||||||
|
html += '<br/>';
|
||||||
|
html += '<br/>';
|
||||||
|
html += '<br/>';
|
||||||
|
hasOpenSection = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
lastTargetName = targetName;
|
||||||
|
|
||||||
|
html += '<div class="detailSectionHeader">';
|
||||||
|
|
||||||
|
html += '<div>' + targetName + '</div>';
|
||||||
|
|
||||||
|
html += '</div>';
|
||||||
|
html += '<div class="itemsContainer vertical-list">';
|
||||||
|
hasOpenSection = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html += getSyncJobHtml(listInstance, job);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasOpenSection) {
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
var elem = listInstance.options.element;
|
||||||
|
elem.innerHTML = html;
|
||||||
|
|
||||||
|
imageLoader.lazyChildren(elem);
|
||||||
|
}
|
||||||
|
|
||||||
|
function fetchData(listInstance) {
|
||||||
|
|
||||||
|
listInstance.lastDataLoad = 0;
|
||||||
|
loading.show();
|
||||||
|
|
||||||
|
var options = {};
|
||||||
|
var apiClient = getApiClient(listInstance);
|
||||||
|
|
||||||
|
if (listInstance.options.userId) {
|
||||||
|
options.UserId = listInstance.options.userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (listInstance.options.isLocalSync) {
|
||||||
|
options.TargetId = apiClient.deviceId();
|
||||||
|
}
|
||||||
|
|
||||||
|
return apiClient.getJSON(ApiClient.getUrl('Sync/Jobs', options)).then(function (response) {
|
||||||
|
|
||||||
|
renderList(listInstance, response.Items);
|
||||||
|
loading.hide();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startListening(listInstance) {
|
||||||
|
|
||||||
|
var startParams = "0,1500";
|
||||||
|
|
||||||
|
var apiClient = getApiClient(listInstance);
|
||||||
|
|
||||||
|
if (listInstance.options.userId) {
|
||||||
|
startParams += "," + listInstance.options.userId;
|
||||||
|
}
|
||||||
|
if (listInstance.options.isLocalSync) {
|
||||||
|
startParams += "," + apiClient.deviceId();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (apiClient.isWebSocketOpen()) {
|
||||||
|
apiClient.sendWebSocketMessage("SyncJobsStart", startParams);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function stopListening(listInstance) {
|
||||||
|
|
||||||
|
var apiClient = getApiClient(listInstance);
|
||||||
|
if (apiClient.isWebSocketOpen()) {
|
||||||
|
apiClient.sendWebSocketMessage("SyncJobsStop", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getApiClient(listInstance) {
|
||||||
|
return connectionManager.getApiClient(listInstance.options.serverId);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showJobMenu(listInstance, elem) {
|
||||||
|
|
||||||
|
var item = dom.parentWithClass(elem, 'listItem');
|
||||||
|
var jobId = item.getAttribute('data-id');
|
||||||
|
var status = item.getAttribute('data-status');
|
||||||
|
|
||||||
|
var menuItems = [];
|
||||||
|
|
||||||
|
if (status == 'Cancelled') {
|
||||||
|
menuItems.push({
|
||||||
|
name: globalize.translate('ButtonDelete'),
|
||||||
|
id: 'delete'
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
menuItems.push({
|
||||||
|
name: globalize.translate('ButtonCancelSyncJob'),
|
||||||
|
id: 'cancel'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
require(['actionsheet'], function (actionsheet) {
|
||||||
|
|
||||||
|
actionsheet.show({
|
||||||
|
items: menuItems,
|
||||||
|
positionTo: elem,
|
||||||
|
callback: function (id) {
|
||||||
|
|
||||||
|
switch (id) {
|
||||||
|
|
||||||
|
case 'delete':
|
||||||
|
cancelJob(listInstance, jobId);
|
||||||
|
break;
|
||||||
|
case 'cancel':
|
||||||
|
cancelJob(listInstance, jobId);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onElementClick(e) {
|
||||||
|
|
||||||
|
var listInstance = this;
|
||||||
|
|
||||||
|
var btnJobMenu = dom.parentWithClass(e.target, 'btnJobMenu');
|
||||||
|
if (btnJobMenu) {
|
||||||
|
showJobMenu(this, btnJobMenu);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var listItem = dom.parentWithClass(e.target, 'listItem');
|
||||||
|
if (listItem) {
|
||||||
|
var jobId = listItem.getAttribute('data-id');
|
||||||
|
// edit job
|
||||||
|
events.trigger(listInstance, 'jobedit', [jobId, listInstance.options.serverId]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function syncJobList(options) {
|
||||||
|
this.options = options;
|
||||||
|
|
||||||
|
var onSyncJobsUpdatedHandler = onSyncJobsUpdated.bind(this);
|
||||||
|
this.onSyncJobsUpdatedHandler = null;
|
||||||
|
events.on(serverNotifications, 'SyncJobs', onSyncJobsUpdatedHandler);
|
||||||
|
|
||||||
|
var onClickHandler = onElementClick.bind(this);
|
||||||
|
options.element.addEventListener('click', onClickHandler);
|
||||||
|
this.onClickHandler = onClickHandler;
|
||||||
|
|
||||||
|
fetchData(this);
|
||||||
|
startListening(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
syncJobList.prototype.destroy = function () {
|
||||||
|
|
||||||
|
stopListening(this);
|
||||||
|
|
||||||
|
this.options = null;
|
||||||
|
|
||||||
|
var onSyncJobsUpdatedHandler = this.onSyncJobsUpdatedHandler;
|
||||||
|
this.onSyncJobsUpdatedHandler = null;
|
||||||
|
events.off(serverNotifications, 'SyncJobs', onSyncJobsUpdatedHandler);
|
||||||
|
|
||||||
|
var onClickHandler = this.onClickHandler;
|
||||||
|
this.onClickHandler = null;
|
||||||
|
options.element.removeEventListener('click', onClickHandler);
|
||||||
|
};
|
||||||
|
|
||||||
|
return syncJobList;
|
||||||
|
});
|
|
@ -56,10 +56,6 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawerContent {
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerButton {
|
.headerButton {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
@ -299,6 +295,10 @@ body:not(.dashboardDocument) .headerAppsButton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mainDrawer-scrollContainer {
|
||||||
|
padding-bottom: 10vh;
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (min-width: 640px) {
|
@media all and (min-width: 640px) {
|
||||||
|
|
||||||
.mainDrawerPanel .viewMenuBarTabs {
|
.mainDrawerPanel .viewMenuBarTabs {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="editItemMetadataPage" data-role="page" class="page libraryPage metadataEditorPage noSecondaryNavPage" data-contextname="${HeaderMetadataManager}" data-require="scripts/editorsidebar,scripts/edititemmetadata">
|
<div id="editItemMetadataPage" data-role="page" class="page libraryPage metadataEditorPage noSecondaryNavPage" data-contextname="${MetadataManager}" data-require="scripts/editorsidebar,scripts/edititemmetadata">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#editItemMetadataPage .editMetadataForm {
|
#editItemMetadataPage .editMetadataForm {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div class="backdropContainer"></div>
|
<div class="backdropContainer"></div>
|
||||||
<div class="backgroundContainer"></div>
|
<div class="backgroundContainer"></div>
|
||||||
<div class="mainDrawerPanel">
|
<div class="mainDrawerPanel">
|
||||||
<div class="mainDrawer hide"><div class="scrollContainer"></div></div>
|
<div class="mainDrawer hide"><div class="mainDrawer-scrollContainer scrollContainer"></div></div>
|
||||||
<div class="mainDrawerPanelContent">
|
<div class="mainDrawerPanelContent">
|
||||||
<div class="skinHeader"></div>
|
<div class="skinHeader"></div>
|
||||||
<div class="mainAnimatedPages skinBody"></div>
|
<div class="mainAnimatedPages skinBody"></div>
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
<div id="mySyncActivityPage" data-role="page" class="page libraryPage syncActivityPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}">
|
<div id="mySyncActivityPage" data-role="page" class="page libraryPage syncActivityPage mySyncPage noSecondaryNavPage" data-contextname="${TitleSync}">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.status-text-icon {
|
||||||
|
font-size: 80%;
|
||||||
|
background-color: #444;
|
||||||
|
}
|
||||||
|
.zeroProgressStatus {
|
||||||
|
background-color: #444;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
|
||||||
<div class="supporterPromotionContainer" style="display:none;text-align: right;">
|
<div class="supporterPromotionContainer hide" style="text-align: right; position: static;">
|
||||||
<div class="customSupporterPromotion supporterPromotion inlineSupporterPromotion">
|
<div class="customSupporterPromotion supporterPromotion inlineSupporterPromotion">
|
||||||
<button is="emby-button" type="button" class="raised accent block btnSyncSupporter">
|
<button is="emby-button" type="button" class="raised accent block btnSyncSupporter">
|
||||||
<div class="mainText">
|
<div class="mainText">
|
||||||
|
|
|
@ -98,6 +98,99 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function renderPluginInfo(page, pkg, pluginSecurityInfo) {
|
||||||
|
|
||||||
|
if (AppInfo.isNativeApp) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
require(['jQuery'], function ($) {
|
||||||
|
if (pkg.isPremium) {
|
||||||
|
$('.premiumPackage', page).show();
|
||||||
|
|
||||||
|
// Fill in registration info
|
||||||
|
var regStatus = "";
|
||||||
|
if (pkg.isRegistered) {
|
||||||
|
|
||||||
|
regStatus += "<p style='color:green;'>";
|
||||||
|
|
||||||
|
regStatus += Globalize.translate('MessageFeatureIncludedWithSupporter');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var expDateTime = new Date(pkg.expDate).getTime();
|
||||||
|
var nowTime = new Date().getTime();
|
||||||
|
|
||||||
|
if (expDateTime <= nowTime) {
|
||||||
|
regStatus += "<p style='color:red;'>";
|
||||||
|
regStatus += Globalize.translate('MessageTrialExpired');
|
||||||
|
} else if (expDateTime > new Date(1970, 1, 1).getTime()) {
|
||||||
|
|
||||||
|
regStatus += "<p style='color:blue;'>";
|
||||||
|
regStatus += Globalize.translate('MessageTrialWillExpireIn').replace('{0}', Math.round(expDateTime - nowTime) / (86400000));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
regStatus += "</p>";
|
||||||
|
$('#regStatus', page).html(regStatus);
|
||||||
|
|
||||||
|
if (pluginSecurityInfo.IsMBSupporter) {
|
||||||
|
$('#regInfo', page).html(pkg.regInfo || "");
|
||||||
|
|
||||||
|
$('.premiumDescription', page).hide();
|
||||||
|
$('.supporterDescription', page).hide();
|
||||||
|
|
||||||
|
if (pkg.price > 0) {
|
||||||
|
|
||||||
|
$('.premiumHasPrice', page).show();
|
||||||
|
$('#featureId', page).val(pkg.featureId);
|
||||||
|
$('#featureName', page).val(pkg.name);
|
||||||
|
$('#amount', page).val(pkg.price);
|
||||||
|
|
||||||
|
$('#regPrice', page).html("<h3>" + Globalize.translate('ValuePriceUSD').replace('{0}', "$" + pkg.price.toFixed(2)) + "</h3>");
|
||||||
|
$('#ppButton', page).hide();
|
||||||
|
|
||||||
|
var url = "https://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner;
|
||||||
|
|
||||||
|
fetch(url).then(function (response) {
|
||||||
|
|
||||||
|
return response.json();
|
||||||
|
|
||||||
|
}).then(function (dev) {
|
||||||
|
|
||||||
|
if (dev.payPalEmail) {
|
||||||
|
$('#payPalEmail', page).val(dev.payPalEmail);
|
||||||
|
$('#ppButton', page).show();
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// Supporter-only feature
|
||||||
|
$('.premiumHasPrice', page).hide();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if (pkg.price) {
|
||||||
|
$('.premiumDescription', page).show();
|
||||||
|
$('.supporterDescription', page).hide();
|
||||||
|
$('#regInfo', page).html("");
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('.premiumDescription', page).hide();
|
||||||
|
$('.supporterDescription', page).show();
|
||||||
|
$('#regInfo', page).html("");
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#ppButton', page).hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('.premiumPackage', page).hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function renderPackage(pkg, installedPlugins, pluginSecurityInfo, page) {
|
function renderPackage(pkg, installedPlugins, pluginSecurityInfo, page) {
|
||||||
|
|
||||||
var installedPlugin = installedPlugins.filter(function (ip) {
|
var installedPlugin = installedPlugins.filter(function (ip) {
|
||||||
|
@ -133,7 +226,7 @@
|
||||||
|
|
||||||
$('#developer', page).html(pkg.owner);
|
$('#developer', page).html(pkg.owner);
|
||||||
|
|
||||||
RegistrationServices.renderPluginInfo(page, pkg, pluginSecurityInfo);
|
renderPluginInfo(page, pkg, pluginSecurityInfo);
|
||||||
|
|
||||||
//Ratings and Reviews
|
//Ratings and Reviews
|
||||||
var ratingHtml = '';
|
var ratingHtml = '';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define(['imageLoader', 'layoutManager', 'viewManager', 'navdrawer', 'libraryBrowser', 'paper-icon-button-light', 'material-icons'], function (imageLoader, layoutManager, viewManager, navdrawer, libraryBrowser) {
|
define(['imageLoader', 'layoutManager', 'viewManager', 'navdrawer', 'libraryBrowser', 'apphost', 'paper-icon-button-light', 'material-icons'], function (imageLoader, layoutManager, viewManager, navdrawer, libraryBrowser, appHost) {
|
||||||
|
|
||||||
var navDrawerElement = document.querySelector('.mainDrawer');
|
var navDrawerElement = document.querySelector('.mainDrawer');
|
||||||
var navDrawerScrollContainer = navDrawerElement.querySelector('.scrollContainer');
|
var navDrawerScrollContainer = navDrawerElement.querySelector('.scrollContainer');
|
||||||
|
@ -296,7 +296,7 @@
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html += '<a class="sidebarLink lnkMediaFolder lnkManageServer" data-itemid="dashboard" href="#"><i class="md-icon sidebarLinkIcon">dashboard</i><span class="sidebarLinkText">' + Globalize.translate('ButtonManageServer') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder lnkManageServer" data-itemid="dashboard" href="#"><i class="md-icon sidebarLinkIcon">dashboard</i><span class="sidebarLinkText">' + Globalize.translate('ButtonManageServer') + '</span></a>';
|
||||||
html += '<a class="sidebarLink lnkMediaFolder editorViewMenu" data-itemid="editor" onclick="return LibraryMenu.onLinkClicked(event, this);" href="edititemmetadata.html"><i class="md-icon sidebarLinkIcon">mode_edit</i><span class="sidebarLinkText">' + Globalize.translate('ButtonMetadataManager') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder editorViewMenu" data-itemid="editor" onclick="return LibraryMenu.onLinkClicked(event, this);" href="edititemmetadata.html"><i class="md-icon sidebarLinkIcon">mode_edit</i><span class="sidebarLinkText">' + Globalize.translate('MetadataManager') + '</span></a>';
|
||||||
|
|
||||||
if (!browserInfo.mobile) {
|
if (!browserInfo.mobile) {
|
||||||
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="reports" onclick="return LibraryMenu.onLinkClicked(event, this);" href="reports.html"><i class="md-icon sidebarLinkIcon">insert_chart</i><span class="sidebarLinkText">' + Globalize.translate('ButtonReports') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="reports" onclick="return LibraryMenu.onLinkClicked(event, this);" href="reports.html"><i class="md-icon sidebarLinkIcon">insert_chart</i><span class="sidebarLinkText">' + Globalize.translate('ButtonReports') + '</span></a>';
|
||||||
|
@ -312,7 +312,9 @@
|
||||||
html += '<a class="sidebarLink lnkMediaFolder lnkMySettings" onclick="return LibraryMenu.onLinkClicked(event, this);" href="mypreferencesmenu.html?userId=' + user.localUser.Id + '"><i class="md-icon sidebarLinkIcon">settings</i><span class="sidebarLinkText">' + Globalize.translate('ButtonSettings') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder lnkMySettings" onclick="return LibraryMenu.onLinkClicked(event, this);" href="mypreferencesmenu.html?userId=' + user.localUser.Id + '"><i class="md-icon sidebarLinkIcon">settings</i><span class="sidebarLinkText">' + Globalize.translate('ButtonSettings') + '</span></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<a class="sidebarLink lnkMediaFolder lnkMySync" data-itemid="mysync" onclick="return LibraryMenu.onLinkClicked(event, this);" href="mysync.html"><i class="md-icon sidebarLinkIcon">sync</i><span class="sidebarLinkText">' + Globalize.translate('ButtonSync') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder lnkManageOffline" data-itemid="manageoffline" onclick="return LibraryMenu.onLinkClicked(event, this);" href="mysync.html?mode=offline"><i class="md-icon sidebarLinkIcon">file_download</i><span class="sidebarLinkText">' + Globalize.translate('ManageOfflineDownloads') + '</span></a>';
|
||||||
|
|
||||||
|
html += '<a class="sidebarLink lnkMediaFolder lnkSyncToOtherDevices" data-itemid="syncotherdevices" onclick="return LibraryMenu.onLinkClicked(event, this);" href="mysync.html"><i class="md-icon sidebarLinkIcon">sync</i><span class="sidebarLinkText">' + Globalize.translate('SyncToOtherDevices') + '</span></a>';
|
||||||
|
|
||||||
if (Dashboard.isConnectMode()) {
|
if (Dashboard.isConnectMode()) {
|
||||||
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="selectserver" onclick="return LibraryMenu.onLinkClicked(event, this);" href="selectserver.html?showuser=1"><i class="md-icon sidebarLinkIcon">wifi</i><span class="sidebarLinkText">' + Globalize.translate('ButtonSelectServer') + '</span></a>';
|
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="selectserver" onclick="return LibraryMenu.onLinkClicked(event, this);" href="selectserver.html?showuser=1"><i class="md-icon sidebarLinkIcon">wifi</i><span class="sidebarLinkText">' + Globalize.translate('ButtonSelectServer') + '</span></a>';
|
||||||
|
@ -447,15 +449,22 @@
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
|
||||||
showBySelector('.lnkMySync', false);
|
showBySelector('.lnkManageOffline', false);
|
||||||
|
showBySelector('.lnkSyncToOtherDevices', false);
|
||||||
showBySelector('.userMenuOptions', false);
|
showBySelector('.userMenuOptions', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.Policy.EnableSync) {
|
if (user.Policy.EnableSync) {
|
||||||
showBySelector('.lnkMySync', true);
|
showBySelector('.lnkSyncToOtherDevices', true);
|
||||||
} else {
|
} else {
|
||||||
showBySelector('.lnkMySync', false);
|
showBySelector('.lnkSyncToOtherDevices', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (user.Policy.EnableSync && appHost.supports('sync')) {
|
||||||
|
showBySelector('.lnkManageOffline', true);
|
||||||
|
} else {
|
||||||
|
showBySelector('.lnkManageOffline', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userId = Dashboard.getCurrentUserId();
|
var userId = Dashboard.getCurrentUserId();
|
||||||
|
@ -788,7 +797,12 @@
|
||||||
else if (isReportsPage && itemId == 'reports') {
|
else if (isReportsPage && itemId == 'reports') {
|
||||||
lnkMediaFolder.classList.add('selectedMediaFolder');
|
lnkMediaFolder.classList.add('selectedMediaFolder');
|
||||||
}
|
}
|
||||||
else if (isMySyncPage && itemId == 'mysync') {
|
else if (isMySyncPage && itemId == 'manageoffline') {
|
||||||
|
|
||||||
|
lnkMediaFolder.classList.add('selectedMediaFolder');
|
||||||
|
}
|
||||||
|
else if (isMySyncPage && itemId == 'syncotherdevices') {
|
||||||
|
|
||||||
lnkMediaFolder.classList.add('selectedMediaFolder');
|
lnkMediaFolder.classList.add('selectedMediaFolder');
|
||||||
}
|
}
|
||||||
else if (id && itemId == id) {
|
else if (id && itemId == id) {
|
||||||
|
@ -816,33 +830,6 @@
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTabLinks(page) {
|
|
||||||
|
|
||||||
var elems = page.querySelectorAll('.scopedLibraryViewNav a');
|
|
||||||
|
|
||||||
var id = page.classList.contains('liveTvPage') || page.classList.contains('channelsPage') || page.classList.contains('metadataEditorPage') || page.classList.contains('reportsPage') || page.classList.contains('mySyncPage') || page.classList.contains('allLibraryPage') ?
|
|
||||||
'' :
|
|
||||||
getTopParentId() || '';
|
|
||||||
|
|
||||||
if (!id) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0, length = elems.length; i < length; i++) {
|
|
||||||
|
|
||||||
var lnk = elems[i];
|
|
||||||
var src = lnk.href;
|
|
||||||
|
|
||||||
if (src.indexOf('#') != -1) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
src = replaceQueryString(src, 'topParentId', id);
|
|
||||||
|
|
||||||
lnk.href = src;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onWebSocketMessage(e, data) {
|
function onWebSocketMessage(e, data) {
|
||||||
|
|
||||||
var msg = data;
|
var msg = data;
|
||||||
|
@ -909,7 +896,6 @@
|
||||||
setDrawerClass(page);
|
setDrawerClass(page);
|
||||||
|
|
||||||
updateViewMenuBar(page);
|
updateViewMenuBar(page);
|
||||||
updateTabLinks(page);
|
|
||||||
|
|
||||||
if (!e.detail.isRestored) {
|
if (!e.detail.isRestored) {
|
||||||
// Scroll back up so in case vertical scroll was messed with
|
// Scroll back up so in case vertical scroll was messed with
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
define(['appSettings'], function (appSettings) {
|
define(['appSettings', 'connectionManager'], function (appSettings, connectionManager) {
|
||||||
|
|
||||||
var syncPromise;
|
var syncPromise;
|
||||||
|
|
||||||
window.LocalSync = {
|
window.LocalSync = {
|
||||||
|
|
||||||
isSupported: function () {
|
|
||||||
return AppInfo.isNativeApp && Dashboard.capabilities().SupportsSync;
|
|
||||||
},
|
|
||||||
|
|
||||||
sync: function (options) {
|
sync: function (options) {
|
||||||
|
|
||||||
if (syncPromise) {
|
if (syncPromise) {
|
||||||
|
@ -16,15 +12,13 @@
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
||||||
require(['multiserversync'], function () {
|
require(['multiserversync'], function (MultiServerSync) {
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
LocalSync.normalizeSyncOptions(options);
|
|
||||||
|
|
||||||
options.cameraUploadServers = appSettings.cameraUploadServers();
|
options.cameraUploadServers = appSettings.cameraUploadServers();
|
||||||
|
|
||||||
syncPromise = new MediaBrowser.MultiServerSync(ConnectionManager).sync(options).then(function () {
|
syncPromise = new MultiServerSync(connectionManager).sync(options).then(function () {
|
||||||
|
|
||||||
syncPromise = null;
|
syncPromise = null;
|
||||||
resolve();
|
resolve();
|
||||||
|
@ -38,10 +32,6 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
normalizeSyncOptions: function (options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
getSyncStatus: function () {
|
getSyncStatus: function () {
|
||||||
|
|
||||||
if (syncPromise != null) {
|
if (syncPromise != null) {
|
||||||
|
|
|
@ -462,11 +462,11 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
requirejs(["registrationservices"], function () {
|
requirejs(["registrationservices"], function (registrationServices) {
|
||||||
|
|
||||||
self.playbackTimeLimitMs = null;
|
self.playbackTimeLimitMs = null;
|
||||||
|
|
||||||
RegistrationServices.validateFeature('playback').then(fn, function () {
|
registrationServices.validateFeature('playback').then(fn, function () {
|
||||||
|
|
||||||
self.playbackTimeLimitMs = lockedTimeLimitMs;
|
self.playbackTimeLimitMs = lockedTimeLimitMs;
|
||||||
startAutoStopTimer();
|
startAutoStopTimer();
|
||||||
|
|
|
@ -1,8 +1,42 @@
|
||||||
define(['loading', 'localsync'], function (loading) {
|
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events) {
|
||||||
|
|
||||||
|
function initSupporterInfo(view, params) {
|
||||||
|
|
||||||
|
view.querySelector('.btnSyncSupporter').addEventListener('click', function () {
|
||||||
|
|
||||||
|
requirejs(["registrationservices"], function (registrationServices) {
|
||||||
|
registrationServices.validateFeature('sync');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
view.querySelector('.supporterPromotion .mainText').innerHTML = globalize.translate('HeaderSyncRequiresSupporterMembership');
|
||||||
|
|
||||||
|
var apiClient = ApiClient;
|
||||||
|
apiClient.getPluginSecurityInfo().then(function (regInfo) {
|
||||||
|
|
||||||
|
if (regInfo.IsMBSupporter) {
|
||||||
|
view.querySelector('.supporterPromotionContainer').classList.add('hide');
|
||||||
|
} else {
|
||||||
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
|
}
|
||||||
|
|
||||||
|
}, function () {
|
||||||
|
|
||||||
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return function (view, params) {
|
||||||
|
|
||||||
|
var interval;
|
||||||
|
|
||||||
|
function isLocalSyncManagement() {
|
||||||
|
return appHost.supports('sync') && params.mode == 'offline';
|
||||||
|
}
|
||||||
|
|
||||||
function refreshSyncStatus(page) {
|
function refreshSyncStatus(page) {
|
||||||
|
|
||||||
if (LocalSync.isSupported()) {
|
if (isLocalSyncManagement()) {
|
||||||
|
|
||||||
var status = LocalSync.getSyncStatus();
|
var status = LocalSync.getSyncStatus();
|
||||||
|
|
||||||
|
@ -19,7 +53,6 @@
|
||||||
else {
|
else {
|
||||||
page.querySelector('.btnSyncNow').classList.remove('hide');
|
page.querySelector('.btnSyncNow').classList.remove('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,15 +65,11 @@
|
||||||
refreshSyncStatus(page);
|
refreshSyncStatus(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
return function (view, params) {
|
|
||||||
|
|
||||||
var interval;
|
|
||||||
|
|
||||||
view.querySelector('.btnSyncNow').addEventListener('click', function () {
|
view.querySelector('.btnSyncNow').addEventListener('click', function () {
|
||||||
syncNow(view);
|
syncNow(view);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (LocalSync.isSupported()) {
|
if (isLocalSyncManagement()) {
|
||||||
|
|
||||||
view.querySelector('.localSyncStatus').classList.remove('hide');
|
view.querySelector('.localSyncStatus').classList.remove('hide');
|
||||||
|
|
||||||
|
@ -48,18 +77,31 @@
|
||||||
view.querySelector('.localSyncStatus').classList.add('hide');
|
view.querySelector('.localSyncStatus').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initSupporterInfo(view, params);
|
||||||
|
var mySyncJobList = new syncJobList({
|
||||||
|
isLocalSync: params.mode === 'offline',
|
||||||
|
serverId: ApiClient.serverId(),
|
||||||
|
userId: params.mode === 'offline' ? null : ApiClient.getCurrentUserId(),
|
||||||
|
element: view.querySelector('.syncActivity')
|
||||||
|
});
|
||||||
|
|
||||||
|
events.on(mySyncJobList, 'jobedit', function (e, jobId, serverId) {
|
||||||
|
|
||||||
|
Dashboard.navigate('mysyncjob.html?id=' + jobId);
|
||||||
|
});
|
||||||
|
|
||||||
view.addEventListener('viewbeforeshow', function () {
|
view.addEventListener('viewbeforeshow', function () {
|
||||||
var page = this;
|
|
||||||
|
|
||||||
refreshSyncStatus(page);
|
refreshSyncStatus(view);
|
||||||
|
|
||||||
|
if (appHost.supports('sync')) {
|
||||||
interval = setInterval(function () {
|
interval = setInterval(function () {
|
||||||
refreshSyncStatus(page);
|
refreshSyncStatus(view);
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
view.addEventListener('viewbeforehide', function () {
|
view.addEventListener('viewbeforehide', function () {
|
||||||
var page = this;
|
|
||||||
|
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
|
||||||
|
@ -68,5 +110,10 @@
|
||||||
interval = null;
|
interval = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
view.addEventListener('viewdestroy', function () {
|
||||||
|
|
||||||
|
mySyncJobList.destroy();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
|
@ -125,9 +125,12 @@
|
||||||
html += getPluginHtml(topPlugins[i], options, installedPlugins);
|
html += getPluginHtml(topPlugins[i], options, installedPlugins);
|
||||||
}
|
}
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
html += '<br/>';
|
||||||
|
html += '<br/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
var hasOpenTag = false;
|
var hasOpenTag = false;
|
||||||
|
currentCategory = null;
|
||||||
|
|
||||||
if (options.showCategory === false) {
|
if (options.showCategory === false) {
|
||||||
html += '<div class="itemsContainer vertical-wrap">';
|
html += '<div class="itemsContainer vertical-wrap">';
|
||||||
|
@ -148,7 +151,6 @@
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<br/>';
|
html += '<br/>';
|
||||||
html += '<br/>';
|
html += '<br/>';
|
||||||
html += '<br/>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<div class="detailSectionHeader">' + category + '</div>';
|
html += '<div class="detailSectionHeader">' + category + '</div>';
|
||||||
|
|
|
@ -188,96 +188,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.RegistrationServices = {
|
return {
|
||||||
renderPluginInfo: function (page, pkg, pluginSecurityInfo) {
|
|
||||||
|
|
||||||
require(['jQuery'], function ($) {
|
|
||||||
if (pkg.isPremium) {
|
|
||||||
$('.premiumPackage', page).show();
|
|
||||||
|
|
||||||
// Fill in registration info
|
|
||||||
var regStatus = "";
|
|
||||||
if (pkg.isRegistered) {
|
|
||||||
|
|
||||||
regStatus += "<p style='color:green;'>";
|
|
||||||
|
|
||||||
regStatus += Globalize.translate('MessageFeatureIncludedWithSupporter');
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
var expDateTime = new Date(pkg.expDate).getTime();
|
|
||||||
var nowTime = new Date().getTime();
|
|
||||||
|
|
||||||
if (expDateTime <= nowTime) {
|
|
||||||
regStatus += "<p style='color:red;'>";
|
|
||||||
regStatus += Globalize.translate('MessageTrialExpired');
|
|
||||||
} else if (expDateTime > new Date(1970, 1, 1).getTime()) {
|
|
||||||
|
|
||||||
regStatus += "<p style='color:blue;'>";
|
|
||||||
regStatus += Globalize.translate('MessageTrialWillExpireIn').replace('{0}', Math.round(expDateTime - nowTime) / (86400000));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
regStatus += "</p>";
|
|
||||||
$('#regStatus', page).html(regStatus);
|
|
||||||
|
|
||||||
if (pluginSecurityInfo.IsMBSupporter) {
|
|
||||||
$('#regInfo', page).html(pkg.regInfo || "");
|
|
||||||
|
|
||||||
$('.premiumDescription', page).hide();
|
|
||||||
$('.supporterDescription', page).hide();
|
|
||||||
|
|
||||||
if (pkg.price > 0) {
|
|
||||||
|
|
||||||
$('.premiumHasPrice', page).show();
|
|
||||||
$('#featureId', page).val(pkg.featureId);
|
|
||||||
$('#featureName', page).val(pkg.name);
|
|
||||||
$('#amount', page).val(pkg.price);
|
|
||||||
|
|
||||||
$('#regPrice', page).html("<h3>" + Globalize.translate('ValuePriceUSD').replace('{0}', "$" + pkg.price.toFixed(2)) + "</h3>");
|
|
||||||
$('#ppButton', page).hide();
|
|
||||||
|
|
||||||
var url = "https://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner;
|
|
||||||
|
|
||||||
fetch(url).then(function (response) {
|
|
||||||
|
|
||||||
return response.json();
|
|
||||||
|
|
||||||
}).then(function (dev) {
|
|
||||||
|
|
||||||
if (dev.payPalEmail) {
|
|
||||||
$('#payPalEmail', page).val(dev.payPalEmail);
|
|
||||||
$('#ppButton', page).show();
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// Supporter-only feature
|
|
||||||
$('.premiumHasPrice', page).hide();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
|
|
||||||
if (pkg.price) {
|
|
||||||
$('.premiumDescription', page).show();
|
|
||||||
$('.supporterDescription', page).hide();
|
|
||||||
$('#regInfo', page).html("");
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$('.premiumDescription', page).hide();
|
|
||||||
$('.supporterDescription', page).show();
|
|
||||||
$('#regInfo', page).html("");
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#ppButton', page).hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$('.premiumPackage', page).hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
validateFeature: function (name) {
|
validateFeature: function (name) {
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
@ -297,6 +208,4 @@
|
||||||
shell.openUrl('https://emby.media/premiere');
|
shell.openUrl('https://emby.media/premiere');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return window.RegistrationServices;
|
|
||||||
});
|
});
|
|
@ -559,7 +559,7 @@ var Dashboard = {
|
||||||
pageIds: ['scheduledTasksPage', 'scheduledTaskPage'],
|
pageIds: ['scheduledTasksPage', 'scheduledTaskPage'],
|
||||||
icon: 'schedule'
|
icon: 'schedule'
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate('ButtonMetadataManager'),
|
name: Globalize.translate('MetadataManager'),
|
||||||
href: "edititemmetadata.html",
|
href: "edititemmetadata.html",
|
||||||
pageIds: [],
|
pageIds: [],
|
||||||
icon: 'mode_edit'
|
icon: 'mode_edit'
|
||||||
|
@ -1285,6 +1285,7 @@ var AppInfo = {};
|
||||||
|
|
||||||
define("libjass", [bowerPath + "/libjass/libjass.min", "css!" + bowerPath + "/libjass/libjass"], returnFirstDependency);
|
define("libjass", [bowerPath + "/libjass/libjass.min", "css!" + bowerPath + "/libjass/libjass"], returnFirstDependency);
|
||||||
|
|
||||||
|
define("syncJobList", ["components/syncjoblist/syncjoblist"], returnFirstDependency);
|
||||||
define("appfooter", ["components/appfooter/appfooter"], returnFirstDependency);
|
define("appfooter", ["components/appfooter/appfooter"], returnFirstDependency);
|
||||||
define("dockedtabs", ["components/dockedtabs/dockedtabs"], returnFirstDependency);
|
define("dockedtabs", ["components/dockedtabs/dockedtabs"], returnFirstDependency);
|
||||||
define("directorybrowser", ["components/directorybrowser/directorybrowser"], returnFirstDependency);
|
define("directorybrowser", ["components/directorybrowser/directorybrowser"], returnFirstDependency);
|
||||||
|
@ -2326,7 +2327,7 @@ var AppInfo = {};
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/mysync.html',
|
path: '/mysync.html',
|
||||||
dependencies: ['scripts/syncactivity', 'scripts/taskbutton', 'emby-button'],
|
dependencies: [],
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
transition: 'fade',
|
transition: 'fade',
|
||||||
controller: 'scripts/mysync'
|
controller: 'scripts/mysync'
|
||||||
|
@ -2492,7 +2493,8 @@ var AppInfo = {};
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/syncactivity.html',
|
path: '/syncactivity.html',
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
autoFocus: false
|
autoFocus: false,
|
||||||
|
controller: 'scripts/syncactivity'
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
|
|
|
@ -195,7 +195,7 @@
|
||||||
//html += '</div>';
|
//html += '</div>';
|
||||||
//html += '</div>';
|
//html += '</div>';
|
||||||
|
|
||||||
$(elem).html(html);
|
elem.innerHTML = html;
|
||||||
|
|
||||||
$('#selectSyncTarget', elem).on('change', function () {
|
$('#selectSyncTarget', elem).on('change', function () {
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
var promise = dialogHelper.open(dlg);
|
var promise = dialogHelper.open(dlg);
|
||||||
|
|
||||||
renderForm({
|
renderForm({
|
||||||
elem: $('.formFields', dlg),
|
elem: dlg.querySelector('.formFields'),
|
||||||
dialogOptions: dialogOptions,
|
dialogOptions: dialogOptions,
|
||||||
dialogOptionsFn: getTargetDialogOptionsFn(dialogOptionsQuery)
|
dialogOptionsFn: getTargetDialogOptionsFn(dialogOptionsQuery)
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,394 +1,4 @@
|
||||||
define(['jQuery', 'paper-icon-button-light', 'cardStyle'], function ($) {
|
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events) {
|
||||||
|
|
||||||
function cancelJob(page, id) {
|
|
||||||
|
|
||||||
var msg = Globalize.translate('CancelSyncJobConfirmation');
|
|
||||||
|
|
||||||
require(['confirm'], function (confirm) {
|
|
||||||
|
|
||||||
confirm(msg, Globalize.translate('HeaderCancelSyncJob')).then(function () {
|
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
ApiClient.ajax({
|
|
||||||
|
|
||||||
url: ApiClient.getUrl('Sync/Jobs/' + id),
|
|
||||||
type: 'DELETE'
|
|
||||||
|
|
||||||
}).then(function () {
|
|
||||||
|
|
||||||
reloadData(page);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSyncStatusBanner(job) {
|
|
||||||
|
|
||||||
var opacity = '.85';
|
|
||||||
var background = 'rgba(204,51,51,' + opacity + ')';
|
|
||||||
var text = Globalize.translate('SyncJobStatus' + job.Status);
|
|
||||||
|
|
||||||
if (job.Status == 'Completed') {
|
|
||||||
background = 'rgba(82, 181, 75, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'CompletedWithError') {
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Queued') {
|
|
||||||
background = 'rgba(51, 136, 204, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'ReadyToTransfer') {
|
|
||||||
background = 'rgba(51, 136, 204, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Transferring') {
|
|
||||||
background = 'rgba(72, 0, 255, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Converting') {
|
|
||||||
background = 'rgba(255, 106, 0, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
html += '<div class="syncStatusBanner" data-status="' + job.Status + '" style="background-color:' + background + ';position:absolute;top:0;right:0;padding:.5em .5em; text-align:left;color: #fff; font-weight: 500; text-transform:uppercase; border-bottom-left-radius: 3px;">';
|
|
||||||
html += text;
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
return html;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage) {
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
|
|
||||||
html += "<div class='card squareCard scalableCard' data-id='" + job.Id + "' data-status='" + job.Status + "'>";
|
|
||||||
|
|
||||||
html += '<div class="' + cardBoxCssClass + '">';
|
|
||||||
html += '<div class="cardScalable">';
|
|
||||||
|
|
||||||
html += '<div class="cardPadder cardPadder-square"></div>';
|
|
||||||
|
|
||||||
syncJobPage += '?id=' + job.Id;
|
|
||||||
|
|
||||||
html += '<a class="cardContent" href="' + syncJobPage + '">';
|
|
||||||
|
|
||||||
var imgUrl;
|
|
||||||
var style = '';
|
|
||||||
|
|
||||||
if (job.PrimaryImageItemId) {
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(job.PrimaryImageItemId, {
|
|
||||||
type: "Primary",
|
|
||||||
width: 400,
|
|
||||||
tag: job.PrimaryImageTag
|
|
||||||
});
|
|
||||||
style = "background-position:center center;";
|
|
||||||
} else {
|
|
||||||
style = "background-color:#38c;background-position:center center;";
|
|
||||||
imgUrl = "css/images/items/detail/video.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="cardImage coveredCardImage lazy" data-src="' + imgUrl + '" style="' + style + '">';
|
|
||||||
|
|
||||||
var progress = job.Progress || 0;
|
|
||||||
|
|
||||||
var footerClass = 'cardFooter fullCardFooter lightCardFooter';
|
|
||||||
|
|
||||||
if (progress == 0 || progress >= 100) {
|
|
||||||
footerClass += ' hide';
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="' + footerClass + '">';
|
|
||||||
html += "<div class='cardText cardProgress'>";
|
|
||||||
html += '<progress class="itemProgressBar" min="0" max="100" value="' + progress + '"></progress>';
|
|
||||||
html += "</div>";
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += getSyncStatusBanner(job);
|
|
||||||
|
|
||||||
// cardContent
|
|
||||||
html += "</a>";
|
|
||||||
|
|
||||||
// cardScalable
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += '<div class="cardFooter outerCardFooter">';
|
|
||||||
|
|
||||||
var textLines = [];
|
|
||||||
|
|
||||||
if (job.ParentName) {
|
|
||||||
textLines.push(job.ParentName);
|
|
||||||
}
|
|
||||||
|
|
||||||
textLines.push(job.Name);
|
|
||||||
|
|
||||||
if (job.ItemCount == 1) {
|
|
||||||
textLines.push(Globalize.translate('ValueItemCount', job.ItemCount));
|
|
||||||
} else {
|
|
||||||
textLines.push(Globalize.translate('ValueItemCountPlural', job.ItemCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!job.ParentName) {
|
|
||||||
textLines.push(' ');
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="cardText" style="text-align:right; float:right;padding:0;">';
|
|
||||||
html += '<button type="button" is="paper-icon-button-light" class="btnJobMenu autoSize"><i class="md-icon">' + AppInfo.moreIcon.replace('-', '_') + '</i></button>';
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
for (var i = 0, length = textLines.length; i < length; i++) {
|
|
||||||
html += "<div class='cardText' style='margin-right:30px;'>";
|
|
||||||
html += textLines[i];
|
|
||||||
html += "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// cardFooter
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
// cardBox
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
// card
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
return html;
|
|
||||||
}
|
|
||||||
|
|
||||||
var lastDataLoad = 0;
|
|
||||||
|
|
||||||
function loadData(page, jobs) {
|
|
||||||
|
|
||||||
if ((new Date().getTime() - lastDataLoad) < 60000) {
|
|
||||||
refreshData(page, jobs);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lastDataLoad = new Date().getTime();
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
var lastTargetName = '';
|
|
||||||
|
|
||||||
var cardBoxCssClass = 'cardBox visualCardBox';
|
|
||||||
|
|
||||||
var syncJobPage = 'syncjob.html';
|
|
||||||
var showTargetName = true;
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
syncJobPage = 'mysyncjob.html';
|
|
||||||
|
|
||||||
showTargetName = !hasLocalSync();
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasOpenSection = false;
|
|
||||||
|
|
||||||
for (var i = 0, length = jobs.length; i < length; i++) {
|
|
||||||
|
|
||||||
var job = jobs[i];
|
|
||||||
if (showTargetName) {
|
|
||||||
var targetName = job.TargetName || 'Unknown';
|
|
||||||
|
|
||||||
if (targetName != lastTargetName) {
|
|
||||||
|
|
||||||
if (lastTargetName) {
|
|
||||||
html += '</div>';
|
|
||||||
html += '<br/>';
|
|
||||||
html += '<br/>';
|
|
||||||
html += '<br/>';
|
|
||||||
hasOpenSection = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
lastTargetName = targetName;
|
|
||||||
|
|
||||||
html += '<div class="detailSectionHeader">';
|
|
||||||
|
|
||||||
html += '<div>' + targetName + '</div>';
|
|
||||||
|
|
||||||
html += '</div>';
|
|
||||||
html += '<div class="itemsContainer vertical-wrap">';
|
|
||||||
hasOpenSection = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
html += getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasOpenSection) {
|
|
||||||
html += '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
var elem = $('.syncActivity', page).html(html).lazyChildren();
|
|
||||||
|
|
||||||
$('.btnJobMenu', elem).on('click', function () {
|
|
||||||
showJobMenu(page, this);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!jobs.length) {
|
|
||||||
|
|
||||||
elem.html('<div style="padding:1em .25em;">' + Globalize.translate('MessageNoSyncJobsFound') + '</div>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$.fn.lazyChildren = function () {
|
|
||||||
|
|
||||||
for (var i = 0, length = this.length; i < length; i++) {
|
|
||||||
ImageLoader.lazyChildren(this[i]);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
function refreshData(page, jobs) {
|
|
||||||
|
|
||||||
for (var i = 0, length = jobs.length; i < length; i++) {
|
|
||||||
|
|
||||||
var job = jobs[i];
|
|
||||||
refreshJob(page, job);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function refreshJob(page, job) {
|
|
||||||
|
|
||||||
var card = page.querySelector('.card[data-id=\'' + job.Id + '\']');
|
|
||||||
|
|
||||||
if (!card) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var banner = card.querySelector('.syncStatusBanner');
|
|
||||||
|
|
||||||
if (banner.getAttribute('data-status') == job.Status) {
|
|
||||||
var elem = document.createElement('div');
|
|
||||||
elem.innerHTML = getSyncStatusBanner(job);
|
|
||||||
elem = elem.querySelector('.syncStatusBanner');
|
|
||||||
elem.parentNode.removeChild(elem);
|
|
||||||
|
|
||||||
banner.parentNode.replaceChild(elem, banner);
|
|
||||||
}
|
|
||||||
|
|
||||||
var progress = job.Progress || 0;
|
|
||||||
var cardFooter = card.querySelector('.cardFooter');
|
|
||||||
|
|
||||||
if (progress == 0 || progress >= 100) {
|
|
||||||
cardFooter.classList.add('hide');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
cardFooter.classList.remove('hide');
|
|
||||||
cardFooter.querySelector('.itemProgressBar').value = progress;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showJobMenu(page, elem) {
|
|
||||||
|
|
||||||
var card = $(elem).parents('.card');
|
|
||||||
var jobId = card.attr('data-id');
|
|
||||||
var status = card.attr('data-status');
|
|
||||||
|
|
||||||
var menuItems = [];
|
|
||||||
|
|
||||||
if (status == 'Cancelled') {
|
|
||||||
menuItems.push({
|
|
||||||
name: Globalize.translate('ButtonDelete'),
|
|
||||||
id: 'delete'
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
menuItems.push({
|
|
||||||
name: Globalize.translate('ButtonCancelSyncJob'),
|
|
||||||
id: 'cancel'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
require(['actionsheet'], function (actionsheet) {
|
|
||||||
|
|
||||||
actionsheet.show({
|
|
||||||
items: menuItems,
|
|
||||||
positionTo: elem,
|
|
||||||
callback: function (id) {
|
|
||||||
|
|
||||||
switch (id) {
|
|
||||||
|
|
||||||
case 'delete':
|
|
||||||
cancelJob(page, jobId);
|
|
||||||
break;
|
|
||||||
case 'cancel':
|
|
||||||
cancelJob(page, jobId);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function hasLocalSync() {
|
|
||||||
return Dashboard.capabilities().SupportsSync;
|
|
||||||
}
|
|
||||||
|
|
||||||
function reloadData(page) {
|
|
||||||
|
|
||||||
lastDataLoad = 0;
|
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
var options = {};
|
|
||||||
|
|
||||||
Dashboard.getCurrentUser().then(function (user) {
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
options.UserId = Dashboard.getCurrentUserId();
|
|
||||||
|
|
||||||
if (hasLocalSync()) {
|
|
||||||
options.TargetId = ApiClient.deviceId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ApiClient.getJSON(ApiClient.getUrl('Sync/Jobs', options)).then(function (response) {
|
|
||||||
|
|
||||||
loadData(page, response.Items);
|
|
||||||
Dashboard.hideLoadingMsg();
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function onWebSocketMessage(e, msg) {
|
|
||||||
|
|
||||||
var page = $($.mobile.activePage)[0];
|
|
||||||
|
|
||||||
if (msg.MessageType == "SyncJobs") {
|
|
||||||
|
|
||||||
var data = msg.Data;
|
|
||||||
|
|
||||||
if (hasLocalSync()) {
|
|
||||||
var targetId = ApiClient.deviceId();
|
|
||||||
data = data.filter(function (j) {
|
|
||||||
return j.TargetId == targetId;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
loadData(page, data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function startListening(page) {
|
|
||||||
|
|
||||||
var startParams = "0,1500";
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
startParams += "," + Dashboard.getCurrentUserId();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ApiClient.isWebSocketOpen()) {
|
|
||||||
ApiClient.sendWebSocketMessage("SyncJobsStart", startParams);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function stopListening() {
|
|
||||||
|
|
||||||
if (ApiClient.isWebSocketOpen()) {
|
|
||||||
ApiClient.sendWebSocketMessage("SyncJobsStop", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function getTabs() {
|
function getTabs() {
|
||||||
return [
|
return [
|
||||||
|
@ -410,57 +20,49 @@
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('pageinit', ".syncActivityPage", function () {
|
function initSupporterInfo(view, params) {
|
||||||
|
|
||||||
var page = this;
|
view.querySelector('.supporterPromotion .mainText').innerHTML = globalize.translate('HeaderSyncRequiresSupporterMembership');
|
||||||
|
|
||||||
$('.btnSyncSupporter', page).on('click', function () {
|
var apiClient = ApiClient;
|
||||||
|
apiClient.getPluginSecurityInfo().then(function (regInfo) {
|
||||||
|
|
||||||
requirejs(["registrationservices"], function () {
|
if (regInfo.IsMBSupporter) {
|
||||||
RegistrationServices.validateFeature('sync');
|
view.querySelector('.supporterPromotionContainer').classList.add('hide');
|
||||||
});
|
|
||||||
});
|
|
||||||
$('.supporterPromotion .mainText', page).html(Globalize.translate('HeaderSyncRequiresSupporterMembership'));
|
|
||||||
|
|
||||||
}).on('pageshow', ".syncActivityPage", function () {
|
|
||||||
|
|
||||||
if (this.id == 'syncActivityPage') {
|
|
||||||
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
|
||||||
}
|
|
||||||
var page = this;
|
|
||||||
|
|
||||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
|
||||||
|
|
||||||
if (pluginSecurityInfo.IsMBSupporter) {
|
|
||||||
$('.supporterPromotionContainer', page).hide();
|
|
||||||
} else {
|
} else {
|
||||||
$('.supporterPromotionContainer', page).show();
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}, function () {
|
||||||
|
|
||||||
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return function (view, params) {
|
||||||
|
|
||||||
|
initSupporterInfo(view, params);
|
||||||
|
var mySyncJobList = new syncJobList({
|
||||||
|
isLocalSync: params.mode === 'offline',
|
||||||
|
serverId: ApiClient.serverId(),
|
||||||
|
userId: params.mode === 'offline' ? null : ApiClient.getCurrentUserId(),
|
||||||
|
element: view.querySelector('.syncActivity')
|
||||||
});
|
});
|
||||||
|
|
||||||
reloadData(page);
|
events.on(mySyncJobList, 'jobedit', function (e, jobId, serverId) {
|
||||||
|
|
||||||
// on here
|
Dashboard.navigate('syncjob.html?id=' + jobId);
|
||||||
$('.btnSync', page).taskButton({
|
|
||||||
mode: 'on',
|
|
||||||
progressElem: page.querySelector('.syncProgress'),
|
|
||||||
taskKey: 'SyncPrepare'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
startListening(page);
|
view.addEventListener('viewshow', function () {
|
||||||
Events.on(ApiClient, "websocketmessage", onWebSocketMessage);
|
|
||||||
|
|
||||||
}).on('pagebeforehide', ".syncActivityPage", function () {
|
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
||||||
|
|
||||||
var page = this;
|
|
||||||
|
|
||||||
// off here
|
|
||||||
$('.btnSync', page).taskButton({
|
|
||||||
mode: 'off'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
stopListening();
|
view.addEventListener('viewdestroy', function () {
|
||||||
Events.off(ApiClient, "websocketmessage", onWebSocketMessage);
|
|
||||||
|
mySyncJobList.destroy();
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
require(['syncDialog'], function (syncDialog) {
|
require(['syncDialog'], function (syncDialog) {
|
||||||
syncDialog.renderForm({
|
syncDialog.renderForm({
|
||||||
elem: $('.formFields', page),
|
elem: page.querySelector('.formFields'),
|
||||||
dialogOptions: dialogOptions,
|
dialogOptions: dialogOptions,
|
||||||
dialogOptionsFn: getTargetDialogOptionsFn(dialogOptions),
|
dialogOptionsFn: getTargetDialogOptionsFn(dialogOptions),
|
||||||
showName: true,
|
showName: true,
|
||||||
|
|
|
@ -880,7 +880,6 @@
|
||||||
"OptionNone": "None",
|
"OptionNone": "None",
|
||||||
"HeaderLiveTv": "Live TV",
|
"HeaderLiveTv": "Live TV",
|
||||||
"HeaderReports": "Reports",
|
"HeaderReports": "Reports",
|
||||||
"HeaderMetadataManager": "Metadata Manager",
|
|
||||||
"HeaderSettings": "Settings",
|
"HeaderSettings": "Settings",
|
||||||
"OptionDefaultSort": "Default",
|
"OptionDefaultSort": "Default",
|
||||||
"OptionCommunityMostWatchedSort": "Most Watched",
|
"OptionCommunityMostWatchedSort": "Most Watched",
|
||||||
|
@ -1739,7 +1738,7 @@
|
||||||
"MessageEnsureOpenTuner": "Please ensure there is an open tuner availalble.",
|
"MessageEnsureOpenTuner": "Please ensure there is an open tuner availalble.",
|
||||||
"ButtonDashboard": "Dashboard",
|
"ButtonDashboard": "Dashboard",
|
||||||
"ButtonReports": "Reports",
|
"ButtonReports": "Reports",
|
||||||
"ButtonMetadataManager": "Metadata Manager",
|
"MetadataManager": "Metadata Manager",
|
||||||
"HeaderTime": "Time",
|
"HeaderTime": "Time",
|
||||||
"LabelAddedOnDate": "Added {0}",
|
"LabelAddedOnDate": "Added {0}",
|
||||||
"ButtonStart": "Start",
|
"ButtonStart": "Start",
|
||||||
|
@ -2314,5 +2313,7 @@
|
||||||
"EnablePhotos": "Enable photos",
|
"EnablePhotos": "Enable photos",
|
||||||
"EnablePhotosHelp": "Photos will be detected and displayed alongside other media files.",
|
"EnablePhotosHelp": "Photos will be detected and displayed alongside other media files.",
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ConfirmRemoveDownload": "Remove download?"
|
"ConfirmRemoveDownload": "Remove download?",
|
||||||
|
"SyncToOtherDevices": "Sync to other devices",
|
||||||
|
"ManageOfflineDownloads": "Manage offline downloads"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage withTabs fullWidthContent" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync" data-require="scripts/syncactivity,scripts/taskbutton,emby-button">
|
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage withTabs fullWidthContent" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue