Minor fixes for Anime Tosho

This commit is contained in:
chibidev 2017-07-21 00:32:57 +02:00
parent 929c12ccc6
commit 7eb57d8e9a
2 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace Jackett.Indexers.Newznab
{ {
// TODO // TODO
// this might be downloaded and refreshed instead of hard-coding it // this might be downloaded and refreshed instead of hard-coding it
TorznabCaps = new TorznabCapabilities TorznabCaps = new TorznabCapabilities(new TorznabCategory(5070, "Anime"))
{ {
SearchAvailable = true, SearchAvailable = true,
TVSearchAvailable = false, TVSearchAvailable = false,
@ -28,6 +28,6 @@ namespace Jackett.Indexers.Newznab
Type = "public"; Type = "public";
} }
protected override Uri FeedUri => new Uri("https://animetosho.org/feed/api"); protected override Uri FeedUri => new Uri(SiteLink + "/feed/api");
} }
} }

View File

@ -21,7 +21,11 @@ namespace Jackett.Indexers
public override Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson) public override Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
{ {
LoadValuesFromJson(configJson);
IsConfigured = true; IsConfigured = true;
SaveConfig();
return Task.FromResult(IndexerConfigurationStatus.RequiresTesting); return Task.FromResult(IndexerConfigurationStatus.RequiresTesting);
} }
@ -33,7 +37,8 @@ namespace Jackett.Indexers
var request = new WebRequest var request = new WebRequest
{ {
Url = requestUri, Url = requestUri,
Type = RequestType.GET Type = RequestType.GET,
Encoding = Encoding
}; };
var result = await webclient.GetString(request); var result = await webclient.GetString(request);