New: Auto map known legacy BaseUrls for non-Cardigann

This commit is contained in:
Qstick
2022-05-01 16:41:48 -05:00
parent 2820ef9375
commit 4002cb764b
9 changed files with 22 additions and 2 deletions
@@ -110,6 +110,7 @@ namespace NzbDrone.Core.Indexers
}
definition.IndexerUrls = defFile.Links.ToArray();
definition.LegacyUrls = defFile.Legacylinks.ToArray();
definition.Description = defFile.Description;
definition.Language = defFile.Language;
definition.Encoding = Encoding.GetEncoding(defFile.Encoding);
@@ -205,6 +206,7 @@ namespace NzbDrone.Core.Indexers
if (definition.Implementation != typeof(Cardigann.Cardigann).Name)
{
definition.IndexerUrls = provider.IndexerUrls;
definition.LegacyUrls = provider.LegacyUrls;
definition.Privacy = provider.Privacy;
definition.Description = provider.Description;
definition.Encoding = provider.Encoding;