mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-22 14:33:30 -07:00
Added partial season searching when a full season NZB is not available.
This commit is contained in:
parent
fbb4ced77c
commit
35cad3d27e
12 changed files with 510 additions and 20 deletions
|
@ -52,12 +52,27 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
};
|
||||
}
|
||||
|
||||
return new List<string>
|
||||
if (searchModel.SearchType == SearchType.SeasonSearch)
|
||||
{
|
||||
return new List<string>
|
||||
{
|
||||
String.Format(
|
||||
@"http://www.newzbin.com/search/query/?q={0}+Season+{1}&fpn=p&searchaction=Go&category=8&{2}",
|
||||
searchModel.SeriesTitle, searchModel.SeasonNumber, UrlParams)
|
||||
};
|
||||
}
|
||||
|
||||
if (searchModel.SearchType == SearchType.PartialSeasonSearch)
|
||||
{
|
||||
return new List<string>
|
||||
{
|
||||
String.Format(
|
||||
@"http://www.newzbin.com/search/query/?q={0}+{1}x{2}&fpn=p&searchaction=Go&category=8&{3}",
|
||||
searchModel.SeriesTitle, searchModel.SeasonNumber, searchModel.EpisodePrefix, UrlParams)
|
||||
};
|
||||
}
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
|
||||
public override string Name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue