mirror of
https://github.com/Radarr/Radarr
synced 2025-12-18 14:24:50 +01:00
Fix migration to include ConfigContract and EnableAuto. Also fixed redirects on lists.
Please delete NetImport Table and the corresponding VersionInfo Row (123)
This commit is contained in:
parent
76a42b28f3
commit
f481676c81
4 changed files with 8 additions and 3 deletions
|
|
@ -14,7 +14,9 @@ protected override void MainDbUpgrade()
|
|||
.WithColumn("Enabled").AsBoolean()
|
||||
.WithColumn("Name").AsString().Unique()
|
||||
.WithColumn("Implementation").AsString()
|
||||
.WithColumn("Settings").AsString().Nullable();
|
||||
.WithColumn("ConfigContract").AsString().Nullable()
|
||||
.WithColumn("Settings").AsString().Nullable()
|
||||
.WithColumn("EnableAuto").AsInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,8 +57,7 @@ public static void Map()
|
|||
.Ignore(i => i.SupportsSearch);
|
||||
|
||||
Mapper.Entity<NetImportDefinition>().RegisterDefinition("NetImport")
|
||||
.Ignore(i => i.Enable)
|
||||
.Ignore(i => i.ConfigContract);
|
||||
.Ignore(i => i.Enable);
|
||||
|
||||
Mapper.Entity<NotificationDefinition>().RegisterDefinition("Notifications")
|
||||
.Ignore(i => i.SupportsOnGrab)
|
||||
|
|
|
|||
|
|
@ -306,6 +306,8 @@ protected virtual IndexerResponse FetchIndexerResponse(IndexerRequest request)
|
|||
request.HttpRequest.RateLimit = RateLimit;
|
||||
}
|
||||
|
||||
request.HttpRequest.AllowAutoRedirect = true;
|
||||
|
||||
return new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,6 +226,8 @@ protected virtual NetImportResponse FetchIndexerResponse(NetImportRequest reques
|
|||
request.HttpRequest.RateLimit = RateLimit;
|
||||
}
|
||||
|
||||
request.HttpRequest.AllowAutoRedirect = true;
|
||||
|
||||
return new NetImportResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue