mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
Fixed: Remove support for IMDb Lists of the form 'ls12345678'
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
|
||||
// Use IMDb list Export for user lists to bypass RadarrAPI caching
|
||||
if (Settings.ListId.StartsWith("ls", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return new HttpRequest($"https://www.imdb.com/list/{Settings.ListId}/export", new HttpAccept("*/*"));
|
||||
throw new Exception("IMDb lists of the form 'ls12345678' are no longer supported. Feel free to remove this list after you review your Clean Library Level.");
|
||||
}
|
||||
|
||||
return RequestBuilder.Create()
|
||||
|
||||
@@ -8,9 +8,10 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
|
||||
{
|
||||
public IMDbSettingsValidator()
|
||||
{
|
||||
RuleFor(c => c.ListId)
|
||||
.Matches(@"^top250$|^popular$|^ls\d+$|^ur\d+$")
|
||||
.WithMessage("List ID must be 'top250', 'popular', an IMDb List ID of the form 'ls12345678' or an IMDb user watchlist of the form 'ur12345678'");
|
||||
RuleFor(c => c.ListId).Cascade(CascadeMode.Stop)
|
||||
.NotEmpty()
|
||||
.Matches(@"^(top250|popular)$|^ur\d+$")
|
||||
.WithMessage("List ID must be 'top250', 'popular' or an IMDb user watchlist of the form 'ur12345678'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +19,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
|
||||
{
|
||||
private static readonly IMDbSettingsValidator Validator = new ();
|
||||
|
||||
[FieldDefinition(1, Label = "List/User ID", HelpText = "IMDb list ID (e.g ls12345678), IMDb user ID (e.g. ur12345678), 'top250' or 'popular'")]
|
||||
[FieldDefinition(1, Label = "List/User ID", HelpText = "IMDb user ID (e.g. ur12345678), 'top250' or 'popular'")]
|
||||
public string ListId { get; set; }
|
||||
|
||||
public override NzbDroneValidationResult Validate()
|
||||
|
||||
Reference in New Issue
Block a user