mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed: (FileList) Prevent double query escaping and category IDs correction
This commit is contained in:
parent
3ec6a73656
commit
27518a27fb
2 changed files with 14 additions and 9 deletions
|
@ -23,7 +23,10 @@ namespace NzbDrone.Core.Indexers.FileList
|
||||||
{
|
{
|
||||||
var pageableRequests = new IndexerPageableRequestChain();
|
var pageableRequests = new IndexerPageableRequestChain();
|
||||||
|
|
||||||
pageableRequests.Add(GetRequest("search-torrents", Settings.Categories, string.Format("&type=name&query={0}+{1}", Uri.EscapeDataString(searchCriteria.CleanArtistQuery.Trim()), Uri.EscapeDataString(searchCriteria.CleanAlbumQuery.Trim()))));
|
var artistQuery = searchCriteria.CleanArtistQuery.Replace("+", " ").Trim();
|
||||||
|
var albumQuery = searchCriteria.CleanAlbumQuery.Replace("+", " ").Trim();
|
||||||
|
|
||||||
|
pageableRequests.Add(GetRequest("search-torrents", Settings.Categories, string.Format("&type=name&query={0}+{1}", Uri.EscapeDataString(artistQuery), Uri.EscapeDataString(albumQuery))));
|
||||||
|
|
||||||
return pageableRequests;
|
return pageableRequests;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +35,9 @@ namespace NzbDrone.Core.Indexers.FileList
|
||||||
{
|
{
|
||||||
var pageableRequests = new IndexerPageableRequestChain();
|
var pageableRequests = new IndexerPageableRequestChain();
|
||||||
|
|
||||||
pageableRequests.Add(GetRequest("search-torrents", Settings.Categories, string.Format("&type=name&query={0}", Uri.EscapeDataString(searchCriteria.CleanArtistQuery.Trim()))));
|
var artistQuery = searchCriteria.CleanArtistQuery.Replace("+", " ").Trim();
|
||||||
|
|
||||||
|
pageableRequests.Add(GetRequest("search-torrents", Settings.Categories, string.Format("&type=name&query={0}", Uri.EscapeDataString(artistQuery))));
|
||||||
|
|
||||||
return pageableRequests;
|
return pageableRequests;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,10 +26,10 @@ namespace NzbDrone.Core.Indexers.FileList
|
||||||
BaseUrl = "https://filelist.io";
|
BaseUrl = "https://filelist.io";
|
||||||
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
|
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
|
||||||
|
|
||||||
Categories = new int[]
|
Categories = new[]
|
||||||
{
|
{
|
||||||
(int)FileListCategories.AUDIO,
|
(int)FileListCategories.Audio,
|
||||||
(int)FileListCategories.FLAC
|
(int)FileListCategories.Flac
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ namespace NzbDrone.Core.Indexers.FileList
|
||||||
|
|
||||||
public enum FileListCategories
|
public enum FileListCategories
|
||||||
{
|
{
|
||||||
[FieldOption]
|
[FieldOption(Label = "FLAC")]
|
||||||
AUDIO = 5,
|
Flac = 5,
|
||||||
[FieldOption]
|
[FieldOption(Label = "Audio")]
|
||||||
FLAC = 11
|
Audio = 11
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue