mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed up issues with initial XEM implementation
This commit is contained in:
parent
1b2fe6e842
commit
c693f90271
7 changed files with 58 additions and 27 deletions
|
@ -32,14 +32,15 @@ namespace NzbDrone.Core.Providers
|
|||
public virtual List<Int32> GetXemSeriesIds(string origin = "tvdb")
|
||||
{
|
||||
_logger.Trace("Fetching Series IDs from: {0}", origin);
|
||||
var url = String.Format("{0}allNames?origin={1}", XEM_BASE_URL, origin);
|
||||
|
||||
var url = String.Format("{0}havemap?origin={1}", XEM_BASE_URL, origin);
|
||||
var response =_httpProvider.DownloadString(url);
|
||||
|
||||
CheckForFailureResult(response);
|
||||
|
||||
var result = JsonConvert.DeserializeObject<Dictionary<int, List<String>>>(JObject.Parse(response).SelectToken("data").ToString());
|
||||
var result = JsonConvert.DeserializeObject<XemResult<List<Int32>>>(response);
|
||||
|
||||
return result.Keys.ToList();
|
||||
return result.Data.ToList();
|
||||
}
|
||||
|
||||
public virtual List<XemSceneTvdbMapping> GetSceneTvdbMappings(int id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue