mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Fixed problem with TMDb list when Year is null, Revert using UrlPathEncode on newznab requests (#937)
* Fixed problem with TMDb list when Year is null * Fuck it, just skip movies with no year. Once they have a year they will be automagically added if sync is enabled. * Revert using UrlPathEncode on newznab requests
This commit is contained in:
@@ -15,24 +15,6 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
||||
: base(httpClient, configService, parsingService, logger)
|
||||
{ }
|
||||
|
||||
/*public new virtual IEnumerable<ProviderDefinition> DefaultDefinitions
|
||||
{
|
||||
get
|
||||
{
|
||||
var config = (CouchPotatoSettings)new CouchPotatoSettings();
|
||||
config.Link = "http://localhost";
|
||||
config.Port = "5050";
|
||||
|
||||
yield return new NetImportDefinition
|
||||
{
|
||||
Name = "Localhost",
|
||||
Enabled = config.Validate().IsValid && Enabled,
|
||||
Implementation = GetType().Name,
|
||||
Settings = config
|
||||
};
|
||||
}
|
||||
}*/
|
||||
|
||||
public override INetImportRequestGenerator GetRequestGenerator()
|
||||
{
|
||||
return new CouchPotatoRequestGenerator() { Settings = Settings };
|
||||
|
||||
@@ -15,8 +15,6 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
||||
private NetImportResponse _importResponse;
|
||||
private readonly Logger _logger;
|
||||
|
||||
private static readonly Regex ReplaceEntities = new Regex("&[a-z]+;", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
||||
public CouchPotatoParser(CouchPotatoSettings settings)
|
||||
{
|
||||
_settings = settings;
|
||||
|
||||
@@ -34,8 +34,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
||||
[FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
|
||||
public int Port { get; set; }
|
||||
|
||||
[FieldDefinition(2, Label = "CouchPotato Url Base",
|
||||
HelpText = "UrlBase your CoouchPootato uses, leave blank for none")]
|
||||
[FieldDefinition(2, Label = "CouchPotato Url Base", HelpText = "UrlBase your CoouchPootato uses, leave blank for none")]
|
||||
public string UrlBase { get; set; }
|
||||
|
||||
[FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
|
||||
|
||||
@@ -43,6 +43,12 @@ namespace NzbDrone.Core.NetImport.TMDb
|
||||
|
||||
foreach (var movie in jsonResponse.results)
|
||||
{
|
||||
// Movies with no Year Fix
|
||||
if (string.IsNullOrWhiteSpace(movie.release_date))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
movies.AddIfNotNull(new Tv.Movie()
|
||||
{
|
||||
Title = movie.title,
|
||||
@@ -70,6 +76,12 @@ namespace NzbDrone.Core.NetImport.TMDb
|
||||
continue;
|
||||
}
|
||||
|
||||
// Movies with no Year Fix
|
||||
if (string.IsNullOrWhiteSpace(movie.release_date))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
movies.AddIfNotNull(new Tv.Movie()
|
||||
{
|
||||
Title = movie.title,
|
||||
|
||||
Reference in New Issue
Block a user