Fixed: Dowload client category validation messages not showing

pull/428/head
Qstick 6 years ago
parent 274df2f1ed
commit a9d66133a6

@ -303,7 +303,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DownloadStationTests
.Returns(_serialNumber);
}
protected void GivenTvCategory()
protected void GivenMusicCategory()
{
_settings.MusicCategory = _category;
}
@ -389,7 +389,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DownloadStationTests
public void Download_with_category_should_force_directory()
{
GivenSerialNumber();
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
var remoteEpisode = CreateRemoteAlbum();

@ -196,7 +196,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DownloadStationTests
.Returns(_serialNumber);
}
protected void GivenTvCategory()
protected void GivenMusicCategory()
{
_settings.MusicCategory = _category;
}
@ -268,7 +268,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DownloadStationTests
public void Download_with_category_should_force_directory()
{
GivenSerialNumber();
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
var remoteEpisode = CreateRemoteAlbum();

@ -84,7 +84,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
[Test]
public void Download_with_category_should_force_directory()
{
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
var remoteEpisode = CreateRemoteAlbum();
@ -100,7 +100,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
[Test]
public void Download_with_category_should_not_have_double_slashes()
{
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
_transmissionConfigItems["download-dir"] += "/";
@ -207,7 +207,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
[Test]
public void should_exclude_items_not_in_category()
{
GivenTvCategory();
GivenMusicCategory();
_downloading.DownloadDir = @"C:/Downloads/Finished/transmission/Lidarr";

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using Moq;
using NUnit.Framework;
@ -110,7 +110,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
}
protected void GivenTvCategory()
protected void GivenMusicCategory()
{
_settings.MusicCategory = "Lidarr";
}
@ -194,4 +194,4 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
});
}
}
}
}

@ -93,7 +93,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
[Test]
public void Download_with_category_should_force_directory()
{
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
var remoteEpisode = CreateRemoteAlbum();
@ -109,7 +109,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
[Test]
public void Download_with_category_should_not_have_double_slashes()
{
GivenTvCategory();
GivenMusicCategory();
GivenSuccessfulDownload();
_transmissionConfigItems["download-dir"] += "/";
@ -216,7 +216,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.VuzeTests
[Test]
public void should_exclude_items_not_in_category()
{
GivenTvCategory();
GivenMusicCategory();
_downloading.DownloadDir = @"C:/Downloads/Finished/transmission/Lidarr";

@ -257,7 +257,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
if (!enabledPlugins.Contains("Label"))
{
return new NzbDroneValidationFailure("TvCategory", "Label plugin not activated")
return new NzbDroneValidationFailure("MusicCategory", "Label plugin not activated")
{
DetailedDescription = "You must have the Label plugin enabled in Deluge to use categories."
};
@ -272,7 +272,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
if (!labels.Contains(Settings.MusicCategory))
{
return new NzbDroneValidationFailure("TvCategory", "Configuration of label failed")
return new NzbDroneValidationFailure("MusicCategory", "Configuration of label failed")
{
DetailedDescription = "Lidarr as unable to add the label to Deluge."
};

@ -210,7 +210,7 @@ namespace NzbDrone.Core.Download.Clients.NzbVortex
{
if (Settings.MusicCategory.IsNotNullOrWhiteSpace())
{
return new NzbDroneValidationFailure("TvCategory", "Group does not exist")
return new NzbDroneValidationFailure("MusicCategory", "Group does not exist")
{
DetailedDescription = "The Group you entered doesn't exist in NzbVortex. Go to NzbVortex to create it."
};

@ -284,7 +284,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
if (!Settings.MusicCategory.IsNullOrWhiteSpace() && !categories.Any(v => v.Name == Settings.MusicCategory))
{
return new NzbDroneValidationFailure("TvCategory", "Category does not exist")
return new NzbDroneValidationFailure("MusicCategory", "Category does not exist")
{
InfoLink = string.Format("http://{0}:{1}/", Settings.Host, Settings.Port),
DetailedDescription = "The Category your entered doesn't exist in NzbGet. Go to NzbGet to create it."

@ -217,7 +217,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
else if (Settings.MusicCategory.IsNullOrWhiteSpace())
{
// warn if labels are supported, but category is not provided
return new NzbDroneValidationFailure("TvCategory", "Category is recommended")
return new NzbDroneValidationFailure("MusicCategory", "Category is recommended")
{
IsWarning = true,
DetailedDescription = "Lidarr will not attempt to import completed downloads without a category."

@ -435,7 +435,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
{
if (category.Dir.EndsWith("*"))
{
return new NzbDroneValidationFailure("TvCategory", "Enable Job folders")
return new NzbDroneValidationFailure("MusicCategory", "Enable Job folders")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/categories/", Settings.Host, Settings.Port),
DetailedDescription = "Lidarr prefers each download to have a separate folder. With * appended to the Folder/Path Sabnzbd will not create these job folders. Go to Sabnzbd to fix it."
@ -446,7 +446,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
{
if (!Settings.MusicCategory.IsNullOrWhiteSpace())
{
return new NzbDroneValidationFailure("TvCategory", "Category does not exist")
return new NzbDroneValidationFailure("MusicCategory", "Category does not exist")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/categories/", Settings.Host, Settings.Port),
DetailedDescription = "The Category your entered doesn't exist in Sabnzbd. Go to Sabnzbd to create it."
@ -455,7 +455,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
}
if (config.Misc.enable_tv_sorting && ContainsCategory(config.Misc.tv_categories, Settings.MusicCategory))
{
return new NzbDroneValidationFailure("TvCategory", "Disable TV Sorting")
return new NzbDroneValidationFailure("MusicCategory", "Disable TV Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
DetailedDescription = "You must disable Sabnzbd TV Sorting for the category Lidarr uses to prevent import issues. Go to Sabnzbd to fix it."
@ -463,7 +463,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
}
if (config.Misc.enable_movie_sorting && ContainsCategory(config.Misc.movie_categories, Settings.MusicCategory))
{
return new NzbDroneValidationFailure("TvCategory", "Disable Movie Sorting")
return new NzbDroneValidationFailure("MusicCategory", "Disable Movie Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
DetailedDescription = "You must disable Sabnzbd Movie Sorting for the category Lidarr uses to prevent import issues. Go to Sabnzbd to fix it."
@ -471,7 +471,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
}
if (config.Misc.enable_date_sorting && ContainsCategory(config.Misc.date_categories, Settings.MusicCategory))
{
return new NzbDroneValidationFailure("TvCategory", "Disable Date Sorting")
return new NzbDroneValidationFailure("MusicCategory", "Disable Date Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
DetailedDescription = "You must disable Sabnzbd Date Sorting for the category Lidarr uses to prevent import issues. Go to Sabnzbd to fix it."

Loading…
Cancel
Save