diff --git a/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs index 54fe474a5..5d8c1e66e 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs @@ -86,9 +86,20 @@ namespace NzbDrone.Core.HealthCheck.Checks } } - if (BuildInfo.BuildDateTime < DateTime.UtcNow.AddDays(-14) && _checkUpdateService.AvailableUpdate() != null) + if (BuildInfo.BuildDateTime < DateTime.UtcNow.AddDays(-14)) { - return new HealthCheck(GetType(), HealthCheckResult.Warning, _localizationService.GetLocalizedString("UpdateAvailable"), "#new-update-is-available"); + var latestAvailable = _checkUpdateService.AvailableUpdate(); + + if (latestAvailable != null) + { + return new HealthCheck(GetType(), + HealthCheckResult.Warning, + _localizationService.GetLocalizedString("UpdateAvailableHealthCheckMessage", new Dictionary + { + { "version", $"v{latestAvailable.Version}" } + }), + "#new-update-is-available"); + } } return new HealthCheck(GetType()); diff --git a/src/NzbDrone.Core/Localization/Core/ca.json b/src/NzbDrone.Core/Localization/Core/ca.json index 948a3fcc3..60eb0be63 100644 --- a/src/NzbDrone.Core/Localization/Core/ca.json +++ b/src/NzbDrone.Core/Localization/Core/ca.json @@ -311,7 +311,7 @@ "ICalIncludeUnmonitoredMoviesHelpText": "Inclou pel·lícules no monitorades al canal iCal", "UpdateAll": "Actualitzar-ho tot", "UpdateAutomaticallyHelpText": "Baixeu i instal·leu les actualitzacions automàticament. Encara podreu instal·lar des de Sistema: Actualitzacions", - "UpdateAvailable": "Nova actualització disponible", + "UpdateAvailableHealthCheckMessage": "Nova actualització disponible", "Week": "Setmana", "WeekColumnHeader": "Capçalera de la columna de la setmana", "Weeks": "Setmanes", diff --git a/src/NzbDrone.Core/Localization/Core/de.json b/src/NzbDrone.Core/Localization/Core/de.json index 7ada85850..bcf664952 100644 --- a/src/NzbDrone.Core/Localization/Core/de.json +++ b/src/NzbDrone.Core/Localization/Core/de.json @@ -949,7 +949,7 @@ "More": "Mehr", "Download": "Herunterladen", "DownloadClientCheckDownloadingToRoot": "Download-Client {downloadClientName} legt Downloads im Stammordner {path} ab. Sie sollten nicht in einen Stammordner herunterladen.", - "UpdateAvailable": "Neue Version verfügbar", + "UpdateAvailableHealthCheckMessage": "Neue Version verfügbar", "RemotePathMappingCheckFilesLocalWrongOSPath": "Downloader {downloadClientName} meldet Dateien in {path}, aber dies ist kein valider {osName} Pfad. Überprüfe die Downloader Einstellungen.", "RemotePathMappingCheckFilesBadDockerPath": "Docker erkannt; Downloader {downloadClientName} meldet Dateien in {path}, aber dies ist kein valider {osName} Pfad. Überprüfe deine Remote-Pfadzuordnungen und die Downloader Einstellungen.", "RemotePathMappingCheckFilesWrongOSPath": "Downloader {downloadClientName} meldet Dateien in {path}, aber dies ist kein valider {osName} Pfad. Überprüfe deine Remote-Pfadzuordnungen und die Downloader Einstellungen.", diff --git a/src/NzbDrone.Core/Localization/Core/el.json b/src/NzbDrone.Core/Localization/Core/el.json index b5d961017..dfc3ac3e8 100644 --- a/src/NzbDrone.Core/Localization/Core/el.json +++ b/src/NzbDrone.Core/Localization/Core/el.json @@ -1059,7 +1059,7 @@ "TaskUserAgentTooltip": "User-Agent που παρέχεται από την εφαρμογή που κάλεσε το API", "TotalMovies": "Σύνολο ταινιών", "Waiting": "Αναμονή", - "UpdateAvailable": "Νέα ενημέρωση είναι διαθέσιμη", + "UpdateAvailableHealthCheckMessage": "Νέα ενημέρωση είναι διαθέσιμη", "SizeLimit": "Όριο μεγέθους", "File": "Αρχεία", "EditMovies": "Επεξεργασία ταινίας", diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index bc57e2a77..e5429e0ba 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -1735,7 +1735,7 @@ "UnselectAll": "Unselect All", "UpdateAll": "Update All", "UpdateAutomaticallyHelpText": "Automatically download and install updates. You will still be able to install from System: Updates", - "UpdateAvailable": "New update is available", + "UpdateAvailableHealthCheckMessage": "New update is available: {version}", "UpdateCheckStartupNotWritableMessage": "Cannot install update because startup folder '{startupFolder}' is not writable by the user '{userName}'.", "UpdateCheckStartupTranslocationMessage": "Cannot install update because startup folder '{startupFolder}' is in an App Translocation folder.", "UpdateCheckUINotWritableMessage": "Cannot install update because UI folder '{uiFolder}' is not writable by the user '{userName}'.", diff --git a/src/NzbDrone.Core/Localization/Core/es.json b/src/NzbDrone.Core/Localization/Core/es.json index b03654d15..9f0a5c863 100644 --- a/src/NzbDrone.Core/Localization/Core/es.json +++ b/src/NzbDrone.Core/Localization/Core/es.json @@ -988,7 +988,7 @@ "BypassDelayIfHighestQualityHelpText": "Evitar el retardo cuando el lanzamiento tiene habilitada la máxima calidad en el perfil de calidad con el protocolo preferido", "DiscordUrlInSlackNotification": "Tienes una notificación de Discord configurada como una notificación de Slack. Configure esto como una notificación de Discord para una mejor funcionalidad. Las notificaciones afectadas son: {0}", "IndexerJackettAll": "Indexadores que utilizan el endpoint no soportado de Jackett 'all': {indexerNames}", - "UpdateAvailable": "La nueva actualización está disponible", + "UpdateAvailableHealthCheckMessage": "La nueva actualización está disponible", "RemotePathMappingCheckImportFailed": "{appName} no pudo importar una película. Comprueba los detalles en tus registros.", "RemotePathMappingCheckLocalFolderMissing": "El cliente de descarga remota {downloadClientName} coloca las descargas en {path} pero este directorio no parece existir. Probablemente falta o el mapeo de la ruta remota es incorrecto.", "RemotePathMappingCheckWrongOSPath": "El cliente de descarga remota {downloadClientName} coloca las descargas en {path} pero esta no es una ruta válida {osName}. Revise los mapeos de las rutas remotas y la configuración del cliente de descarga.", diff --git a/src/NzbDrone.Core/Localization/Core/fi.json b/src/NzbDrone.Core/Localization/Core/fi.json index 75ba1e8b1..f94815a6d 100644 --- a/src/NzbDrone.Core/Localization/Core/fi.json +++ b/src/NzbDrone.Core/Localization/Core/fi.json @@ -988,7 +988,7 @@ "RemoveSelectedItems": "Poista valitut kohteet", "RemotePathMappingCheckLocalWrongOSPath": "Paikallinen lataustyökalu \"{downloadClientName}\" tallentaa lataukset kohteeseen \"{path}\", mutta se ei ole kelvollinen {osName}-sijainti. Tarkista lataustyökalun asetukset.", "TaskUserAgentTooltip": "User-Agent-tiedon ilmoitti rajapinnan kanssa viestinyt sovellus.", - "UpdateAvailable": "Uusi päivitys on saatavilla", + "UpdateAvailableHealthCheckMessage": "Uusi päivitys on saatavilla", "BypassDelayIfHighestQuality": "Ohita, jos korkein laatu", "RemoveFailed": "Poisto epäonnistui", "RemoveCompleted": "Poisto on suoritettu", diff --git a/src/NzbDrone.Core/Localization/Core/fr.json b/src/NzbDrone.Core/Localization/Core/fr.json index c17ff7168..7158b7703 100644 --- a/src/NzbDrone.Core/Localization/Core/fr.json +++ b/src/NzbDrone.Core/Localization/Core/fr.json @@ -962,7 +962,7 @@ "DownloadClientCheckDownloadingToRoot": "Le client de téléchargement {downloadClientName} place les téléchargements dans le dossier racine {path}. Vous ne devez pas télécharger dans un dossier racine.", "NotificationTriggersHelpText": "Sélectionnez les événements qui doivent déclencher cette notification", "From": "de", - "UpdateAvailable": "Une nouvelle mise à jour est disponible", + "UpdateAvailableHealthCheckMessage": "Une nouvelle mise à jour est disponible", "RemotePathMappingCheckImportFailed": "{appName} a échoué en important un Film. Vérifier vos logs pour plus de détails.", "RemotePathMappingCheckDownloadPermissions": "{appName} peut voir mais ne peut accéder au film téléchargé {path}. Il s'agit probablement d'une erreur de permissions.", "ImportListMultipleMissingRoots": "Plusieurs dossiers racines sont manquants pour importer les listes : {rootFoldersInfo}", diff --git a/src/NzbDrone.Core/Localization/Core/hu.json b/src/NzbDrone.Core/Localization/Core/hu.json index 1d0bb8704..6ab4274f4 100644 --- a/src/NzbDrone.Core/Localization/Core/hu.json +++ b/src/NzbDrone.Core/Localization/Core/hu.json @@ -959,7 +959,7 @@ "More": "Több", "Download": "Letöltés", "DownloadClientCheckDownloadingToRoot": "A Letöltőkliens {downloadClientName} a letöltéseket a gyökérmappába helyezi {path}. Nem szabad letölteni egy gyökérmappába.", - "UpdateAvailable": "Új frissítés elérhető", + "UpdateAvailableHealthCheckMessage": "Új frissítés elérhető", "RemotePathMappingCheckFilesGenericPermissions": "A letöltőkliens {downloadClientName} jelentett fájljait a(z) {path} fájlba, de a {appName} nem látja ezt a könyvtárat. Lehet, hogy módosítania kell a mappa engedélyeit.", "RemotePathMappingCheckRemoteDownloadClient": "A távoli letöltőkliens {downloadClientName} fájlokat jelentett a(z) {path} fájlban, de úgy tűnik, hogy ez a könyvtár nem létezik. Valószínűleg hiányzik a távoli útvonal-hozzárendelés.", "RemotePathMappingCheckFolderPermissions": "A {appName} láthatja, de nem fér hozzá a (z) {path} letöltési könyvtárhoz. Valószínűleg engedélyezési hiba.", diff --git a/src/NzbDrone.Core/Localization/Core/it.json b/src/NzbDrone.Core/Localization/Core/it.json index f04cbb326..fa5cb2ed4 100644 --- a/src/NzbDrone.Core/Localization/Core/it.json +++ b/src/NzbDrone.Core/Localization/Core/it.json @@ -982,7 +982,7 @@ "RemoveSelectedItem": "Rimuovi elemento selezionato", "RemoveSelectedItems": "Rimuovi elementi selezionati", "TaskUserAgentTooltip": "User-Agent esposto dalla app che ha chiamato la API", - "UpdateAvailable": "É disponibile un nuovo aggiornamento", + "UpdateAvailableHealthCheckMessage": "É disponibile un nuovo aggiornamento", "BypassDelayIfHighestQualityHelpText": "Evita il ritardo quando la release ha la qualità massima abilitata nel profilo qualità con il protocollo preferito", "NotificationTriggersHelpText": "Seleziona quali eventi attiveranno questa notifica", "Filters": "Filtri", diff --git a/src/NzbDrone.Core/Localization/Core/nl.json b/src/NzbDrone.Core/Localization/Core/nl.json index 3d8c3162c..6d3f13d7e 100644 --- a/src/NzbDrone.Core/Localization/Core/nl.json +++ b/src/NzbDrone.Core/Localization/Core/nl.json @@ -960,7 +960,7 @@ "More": "Meer", "Download": "Downloaden", "DownloadClientCheckDownloadingToRoot": "Downloadclient {downloadClientName} plaatst downloads in de hoofdmap {path}. U mag niet naar een hoofdmap downloaden.", - "UpdateAvailable": "Nieuwe update is beschikbaar", + "UpdateAvailableHealthCheckMessage": "Nieuwe update is beschikbaar", "From": "van", "RemotePathMappingCheckDownloadPermissions": "{appName} kan gedownloade film {path} zien, maar niet openen. Waarschijnlijk fout met machtigingen.", "RemotePathMappingCheckFileRemoved": "Bestand {path} is halverwege de verwerking verwijderd.", diff --git a/src/NzbDrone.Core/Localization/Core/pl.json b/src/NzbDrone.Core/Localization/Core/pl.json index 3ec485e41..2d0c37927 100644 --- a/src/NzbDrone.Core/Localization/Core/pl.json +++ b/src/NzbDrone.Core/Localization/Core/pl.json @@ -1037,7 +1037,7 @@ "RemotePathMappingCheckImportFailed": "{appName} nie mógł zaimportować filmu. Szczegóły znajdziesz w dzienniku.", "RemotePathMappingCheckLocalFolderMissing": "Zdalny klient pobierania {downloadClientName} umieszcza pobrane pliki w {path}, lecz ten folder nie istnieje. Prawdopodobnie wynika to z brakującego lub nieprawidłowego zdalnego mapowania ścieżki.", "RemotePathMappingCheckWrongOSPath": "Zdalny klient pobierania {downloadClientName} umieszcza pobrane pliki w {path}, lecz nie jest to poprawna ścieżka {osName}. Zmień ustawienia zdalnego mapowania ścieżek i klienta pobierania.", - "UpdateAvailable": "Dostępna jest aktualizacja", + "UpdateAvailableHealthCheckMessage": "Dostępna jest aktualizacja", "TaskUserAgentTooltip": "User-Agent podawany przez aplikację wywołującą API", "SetReleaseGroup": "Ustaw grupę wydającą", "SearchOnAddCollectionHelpText": "Po dodaniu do biblioteki wyszukaj filmy z tej kolekcji", diff --git a/src/NzbDrone.Core/Localization/Core/pt.json b/src/NzbDrone.Core/Localization/Core/pt.json index 0b79e0a34..fef9c164a 100644 --- a/src/NzbDrone.Core/Localization/Core/pt.json +++ b/src/NzbDrone.Core/Localization/Core/pt.json @@ -960,7 +960,7 @@ "More": "Mais", "Download": "Transferência", "DownloadClientCheckDownloadingToRoot": "O cliente {downloadClientName} coloca as transferências na pasta raiz {path}. Não transfira para a pasta raiz.", - "UpdateAvailable": "Nova atualização disponível", + "UpdateAvailableHealthCheckMessage": "Nova atualização disponível", "TaskUserAgentTooltip": "Par Utilizador-Agente fornecido pela aplicação que chamou a API", "RemotePathMappingCheckWrongOSPath": "O cliente remoto {downloadClientName} coloca as transferências em {path}, mas esse não é um caminho {osName} válido. Revise os mapeamentos de caminho remoto e as definições do cliente de transferências.", "RemotePathMappingCheckRemoteDownloadClient": "O cliente de transferências remoto {downloadClientName} relatou ficheiros em {path}, mas esse diretório parece não existir. O mapeamento de caminho remoto provavelmente está ausente.", diff --git a/src/NzbDrone.Core/Localization/Core/pt_BR.json b/src/NzbDrone.Core/Localization/Core/pt_BR.json index d4ca3d967..f72c05b2f 100644 --- a/src/NzbDrone.Core/Localization/Core/pt_BR.json +++ b/src/NzbDrone.Core/Localization/Core/pt_BR.json @@ -960,7 +960,7 @@ "More": "Mais", "Download": "Download", "DownloadClientCheckDownloadingToRoot": "O cliente de download {downloadClientName} coloca os downloads na pasta raiz {path}. Você não deve baixar para uma pasta raiz.", - "UpdateAvailable": "Nova atualização está disponível", + "UpdateAvailableHealthCheckMessage": "Nova atualização está disponível", "RemotePathMappingCheckFilesGenericPermissions": "O cliente de download {downloadClientName} relatou arquivos em {path}, mas o {appName} não pode ver esse diretório. Pode ser necessário ajustar as permissões da pasta.", "RemotePathMappingCheckRemoteDownloadClient": "O cliente de download remoto {downloadClientName} relatou arquivos em {path}, mas este diretório parece não existir. Provavelmente faltando mapeamento de caminho remoto.", "RemotePathMappingCheckFolderPermissions": "O {appName} pode ver, mas não pode acessar o diretório de download {path}. Provável erro de permissões.", diff --git a/src/NzbDrone.Core/Localization/Core/ru.json b/src/NzbDrone.Core/Localization/Core/ru.json index 24587741f..c097e60e6 100644 --- a/src/NzbDrone.Core/Localization/Core/ru.json +++ b/src/NzbDrone.Core/Localization/Core/ru.json @@ -970,7 +970,7 @@ "RemotePathMappingCheckFilesWrongOSPath": "Удалённый клиент загрузки {downloadClientName} сообщил о файлах в {path}, но это не правильный путь {osName}. Проверьте правильность указанных удалённых путей и настройки клиента загрузки.", "RemotePathMappingCheckFilesLocalWrongOSPath": "Локальный клиент загрузки {downloadClientName} сообщил о файлах в {path}, но это не правильный путь {osName}. Проверьте настройки клиента загрузки.", "RemotePathMappingCheckFilesGenericPermissions": "Клиент загрузки {downloadClientName} сообщил о файлах в {path}, но {appName} не может найти эту директорию. Возможно, вам нужно настроить права доступа к этой директории.", - "UpdateAvailable": "Доступно новое обновление", + "UpdateAvailableHealthCheckMessage": "Доступно новое обновление", "RemotePathMappingCheckDownloadPermissions": "{appName} видит загруженный фильм {path}, но не может получить доступ к нему. Возможно, ошибка в правах доступа.", "Letterboxd": "Letterboxd", "RemotePathMappingCheckBadDockerPath": "Вы используете docker; клиент загрузки {downloadClientName} сообщил о файлах в {path}, но это не корректный путь {osName}. Проверьте правильность указанного пути и настройки клиента загрузки.", diff --git a/src/NzbDrone.Core/Localization/Core/tr.json b/src/NzbDrone.Core/Localization/Core/tr.json index 91b05c372..c94f03f78 100644 --- a/src/NzbDrone.Core/Localization/Core/tr.json +++ b/src/NzbDrone.Core/Localization/Core/tr.json @@ -1682,7 +1682,7 @@ "TaskUserAgentTooltip": "API'yi çağıran uygulama tarafından sağlanan Kullanıcı Aracısı", "TmdbVotes": "TMDb Oyları", "SizeLimit": "Boyut Limiti", - "UpdateAvailable": "Yeni güncelleme mevcut", + "UpdateAvailableHealthCheckMessage": "Yeni güncelleme mevcut", "RemoveCompletedDownloads": "Tamamlanan İndirmeleri Kaldır", "RemoveSelectedItemQueueMessageText": "1 öğeyi kuyruktan kaldırmak istediğinizden emin misiniz?", "ResetQualityDefinitions": "Kalite Tanımlarını Sıfırla", diff --git a/src/NzbDrone.Core/Localization/Core/uk.json b/src/NzbDrone.Core/Localization/Core/uk.json index 732ff98ac..940189cf7 100644 --- a/src/NzbDrone.Core/Localization/Core/uk.json +++ b/src/NzbDrone.Core/Localization/Core/uk.json @@ -1009,7 +1009,7 @@ "RemoveSelectedItem": "Видалити вибраний елемент", "RemotePathMappingHostHelpText": "Той самий хост, який ви вказали для віддаленого клієнта завантаження", "ShowGenres": "Показати жанри", - "UpdateAvailable": "Доступне нове оновлення", + "UpdateAvailableHealthCheckMessage": "Доступне нове оновлення", "Updates": "Оновлення", "Monitor": "Контрольований", "MonitorCollection": "Контрольовані Колекції", diff --git a/src/NzbDrone.Core/Localization/Core/zh_CN.json b/src/NzbDrone.Core/Localization/Core/zh_CN.json index b30b77d93..4759ed69c 100644 --- a/src/NzbDrone.Core/Localization/Core/zh_CN.json +++ b/src/NzbDrone.Core/Localization/Core/zh_CN.json @@ -984,7 +984,7 @@ "RemotePathMappingCheckFileRemoved": "文件{path} 在处理的过程中被部分删除。", "RemotePathMappingCheckFilesGenericPermissions": "下载{1}中客户端{0}报告的文件,但{appName}无法看到此目录。您可能需要调整文件夹的权限。", "RemotePathMappingCheckGenericPermissions": "下载客户端{downloadClientName}将下载放置在{path}中,但 {appName} 无法看到此目录。您可能需要调整文件夹的权限。", - "UpdateAvailable": "有新的更新可用", + "UpdateAvailableHealthCheckMessage": "有新的更新可用", "Letterboxd": "Letterboxd", "RemoveSelectedItem": "删除所选项目", "RemoveSelectedItems": "删除所选项目",