mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Album Search for Omgwtfnzbs
Album Search for Omgwtfnzbs
This commit is contained in:
parent
3888fec0d1
commit
f72afba764
1 changed files with 12 additions and 2 deletions
|
@ -90,7 +90,15 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
|||
|
||||
public IndexerPageableRequestChain GetSearchRequests(AlbumSearchCriteria searchCriteria)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
var pageableRequests = new IndexerPageableRequestChain();
|
||||
|
||||
|
||||
pageableRequests.Add(GetPagedRequests(string.Format("{0}+{1}",
|
||||
searchCriteria.Artist.Name,
|
||||
searchCriteria.Album.Title)));
|
||||
|
||||
|
||||
return pageableRequests;
|
||||
}
|
||||
|
||||
public IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria)
|
||||
|
@ -101,7 +109,9 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
|||
private IEnumerable<IndexerRequest> GetPagedRequests(string query)
|
||||
{
|
||||
var url = new StringBuilder();
|
||||
url.AppendFormat("{0}?catid=19,20&user={1}&api={2}&eng=1&delay={3}", BaseUrl, Settings.Username, Settings.ApiKey, Settings.Delay);
|
||||
|
||||
// Category 22 is Music-FLAC, category 7 is Music-MP3
|
||||
url.AppendFormat("{0}?catid=22,7&user={1}&api={2}&eng=1&delay={3}", BaseUrl, Settings.Username, Settings.ApiKey, Settings.Delay);
|
||||
|
||||
if (query.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue