mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
Compare commits
3 Commits
v4.0.10.26
...
v4.0.11.26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b38ccfb63 | ||
|
|
91c5e6f122 | ||
|
|
dcbef6b7b7 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -22,7 +22,7 @@ env:
|
||||
FRAMEWORK: net6.0
|
||||
RAW_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
SONARR_MAJOR_VERSION: 4
|
||||
VERSION: 4.0.10
|
||||
VERSION: 4.0.11
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
|
||||
@@ -11,6 +11,7 @@ using NzbDrone.Core.Languages;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
using NzbDrone.Core.Profiles;
|
||||
using NzbDrone.Core.Profiles.Qualities;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Core.Test.CustomFormats;
|
||||
@@ -365,5 +366,38 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
|
||||
|
||||
Subject.IsSatisfiedBy(_parseResultSingle, null).Accepted.Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_false_if_quality_profile_does_not_allow_upgrades_but_format_cutoff_is_above_current_score()
|
||||
{
|
||||
var customFormat = new CustomFormat("My Format", new ResolutionSpecification { Value = (int)Resolution.R1080p }) { Id = 1 };
|
||||
|
||||
GivenProfile(new QualityProfile
|
||||
{
|
||||
Cutoff = Quality.SDTV.Id,
|
||||
MinFormatScore = 0,
|
||||
CutoffFormatScore = 10000,
|
||||
Items = Qualities.QualityFixture.GetDefaultQualities(),
|
||||
FormatItems = CustomFormatsTestHelpers.GetSampleFormatItems("My Format"),
|
||||
UpgradeAllowed = false
|
||||
});
|
||||
|
||||
_parseResultSingle.Series.QualityProfile.Value.FormatItems = new List<ProfileFormatItem>
|
||||
{
|
||||
new ProfileFormatItem
|
||||
{
|
||||
Format = customFormat,
|
||||
Score = 50
|
||||
}
|
||||
};
|
||||
|
||||
GivenFileQuality(new QualityModel(Quality.WEBDL1080p));
|
||||
GivenNewQuality(new QualityModel(Quality.WEBDL1080p));
|
||||
|
||||
GivenOldCustomFormats(new List<CustomFormat>());
|
||||
GivenNewCustomFormats(new List<CustomFormat> { customFormat });
|
||||
|
||||
Subject.IsSatisfiedBy(_parseResultSingle, null).Accepted.Should().BeFalse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,8 +135,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
||||
private bool CustomFormatCutoffNotMet(QualityProfile profile, List<CustomFormat> currentFormats)
|
||||
{
|
||||
var score = profile.CalculateCustomFormatScore(currentFormats);
|
||||
var cutoff = profile.UpgradeAllowed ? profile.CutoffFormatScore : profile.MinFormatScore;
|
||||
|
||||
return score < profile.CutoffFormatScore;
|
||||
return score < cutoff;
|
||||
}
|
||||
|
||||
public bool CutoffNotMet(QualityProfile profile, QualityModel currentQuality, List<CustomFormat> currentFormats, QualityModel newQuality = null)
|
||||
|
||||
@@ -1016,7 +1016,7 @@
|
||||
"ImportListStatusAllUnavailableHealthCheckMessage": "Ninguna lista está disponible debido a fallos",
|
||||
"ImportLists": "Listas de Importación",
|
||||
"ImportListsAniListSettingsImportHiatusHelpText": "Medios: Series en hiatus",
|
||||
"ImportListsAniListSettingsImportCompleted": "Importación Completados",
|
||||
"ImportListsAniListSettingsImportCompleted": "Importar Completados",
|
||||
"ImportListsAniListSettingsImportCancelledHelpText": "Medios: Series que están canceladas",
|
||||
"ImportListsCustomListSettingsName": "Lista personalizada",
|
||||
"ImportListsCustomListSettingsUrl": "URL de la lista",
|
||||
@@ -2130,5 +2130,10 @@
|
||||
"FavoriteFolders": "Carpetas favoritas",
|
||||
"ManageFormats": "Gestionar formatos",
|
||||
"FavoriteFolderAdd": "Añadir carpeta favorita",
|
||||
"FavoriteFolderRemove": "Eliminar carpeta favorita"
|
||||
"FavoriteFolderRemove": "Eliminar carpeta favorita",
|
||||
"NotificationsSettingsWebhookHeaders": "Cabeceras",
|
||||
"Completed": "Completado",
|
||||
"CutoffNotMet": "Límite no alcanzado",
|
||||
"Menu": "Menú",
|
||||
"Premiere": "Estreno"
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
"Added": "Adicionado",
|
||||
"ApiKeyValidationHealthCheckMessage": "Atualize sua chave de API para ter pelo menos {length} caracteres. Você pode fazer isso através das configurações ou do arquivo de configuração",
|
||||
"RemoveCompletedDownloads": "Remover downloads concluídos",
|
||||
"AppDataLocationHealthCheckMessage": "A atualização não será possível para evitar a exclusão de AppData",
|
||||
"AppDataLocationHealthCheckMessage": "A atualização não será possível para evitar a exclusão de AppData na Atualização",
|
||||
"DownloadClientCheckUnableToCommunicateWithHealthCheckMessage": "Não é possível se comunicar com {downloadClientName}. {errorMessage}",
|
||||
"DownloadClientRootFolderHealthCheckMessage": "O cliente de download {downloadClientName} coloca os downloads na pasta raiz {rootFolderPath}. Você não deve baixar para uma pasta raiz.",
|
||||
"DownloadClientSortingHealthCheckMessage": "O cliente de download {downloadClientName} tem classificação {sortingMode} habilitada para a categoria {appName}. Você deve desativar a classificação em seu cliente de download para evitar problemas de importação.",
|
||||
@@ -419,7 +419,7 @@
|
||||
"AddReleaseProfile": "Adicionar perfil de lançamento",
|
||||
"AddRemotePathMapping": "Adicionar mapeamento de caminho remoto",
|
||||
"AddRemotePathMappingError": "Não foi possível adicionar um novo mapeamento de caminho remoto. Tente novamente.",
|
||||
"AfterManualRefresh": "Após a atualização manual",
|
||||
"AfterManualRefresh": "Após a Atualização Manual",
|
||||
"Always": "Sempre",
|
||||
"AnalyseVideoFiles": "Analisar arquivos de vídeo",
|
||||
"Analytics": "Análises",
|
||||
@@ -2131,5 +2131,9 @@
|
||||
"FavoriteFolderAdd": "Adicionar Pasta Favorita",
|
||||
"FavoriteFolderRemove": "Remover Pasta Favorita",
|
||||
"FavoriteFolders": "Pastas Favoritas",
|
||||
"Fallback": "Reserva"
|
||||
"Fallback": "Reserva",
|
||||
"CutoffNotMet": "Corte Não Alcançado",
|
||||
"Premiere": "Estreia",
|
||||
"Completed": "Completado",
|
||||
"Menu": "Menu"
|
||||
}
|
||||
|
||||
@@ -2088,5 +2088,6 @@
|
||||
"SeasonsMonitoredAll": "Все",
|
||||
"LogSizeLimit": "Ограничение размера журнала",
|
||||
"LogSizeLimitHelpText": "Максимальный размер файла журнала в МБ перед архивированием. По умолчанию - 1 МБ.",
|
||||
"IndexerHDBitsSettingsMediums": "Mediums"
|
||||
"IndexerHDBitsSettingsMediums": "Mediums",
|
||||
"CountCustomFormatsSelected": "{count} пользовательских форматов выбрано"
|
||||
}
|
||||
|
||||
@@ -607,7 +607,7 @@
|
||||
"TheLogLevelDefault": "Günlük düzeyi varsayılan olarak 'Bilgi' şeklindedir ve [Genel Ayarlar](/settings/general) bölümünden değiştirilebilir",
|
||||
"NotificationsTwitterSettingsAccessToken": "Erişim Jetonu",
|
||||
"AutoRedownloadFailedHelpText": "Otomatik olarak farklı bir Yayın arayın ve indirmeye çalışın",
|
||||
"Queue": "Sırada",
|
||||
"Queue": "Kuyruk",
|
||||
"RemoveFromQueue": "Kuyruktan kaldır",
|
||||
"TorrentDelayTime": "Torrent Gecikmesi: {torrentDelay}",
|
||||
"Yes": "Evet",
|
||||
|
||||
@@ -1954,5 +1954,6 @@
|
||||
"Install": "安装",
|
||||
"InstallMajorVersionUpdate": "安装更新",
|
||||
"InstallMajorVersionUpdateMessage": "此更新将安装新的主要版本,这可能与您的系统不兼容。您确定要安装此更新吗?",
|
||||
"Fallback": "备选"
|
||||
"Fallback": "备选",
|
||||
"FailedToFetchSettings": "设置同步失败"
|
||||
}
|
||||
|
||||
@@ -29,5 +29,12 @@
|
||||
"ApplyTagsHelpTextHowToApplyDownloadClients": "如何將標籤套用在被選擇的下載客戶端",
|
||||
"AddRootFolderError": "無法加進根目錄",
|
||||
"ApplyTagsHelpTextAdd": "加入:將標籤加入已存在的標籤清單",
|
||||
"ApplyTagsHelpTextHowToApplyImportLists": "如何套用標籤在所選擇的輸入清單"
|
||||
"ApplyTagsHelpTextHowToApplyImportLists": "如何套用標籤在所選擇的輸入清單",
|
||||
"Version": "版本",
|
||||
"UpdateAppDirectlyLoadError": "無法直接更新 {appName},",
|
||||
"Uptime": "上線時間",
|
||||
"AddCustomFilter": "新增自定義過濾器",
|
||||
"UnselectAll": "取消全選",
|
||||
"Any": "任何",
|
||||
"UpdateAvailableHealthCheckMessage": "可用的新版本: {version}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user