mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 13:16:16 +00:00
Minor fixes for Anime Tosho
This commit is contained in:
parent
929c12ccc6
commit
7eb57d8e9a
2 changed files with 8 additions and 3 deletions
|
@ -14,7 +14,7 @@ namespace Jackett.Indexers.Newznab
|
|||
{
|
||||
// TODO
|
||||
// this might be downloaded and refreshed instead of hard-coding it
|
||||
TorznabCaps = new TorznabCapabilities
|
||||
TorznabCaps = new TorznabCapabilities(new TorznabCategory(5070, "Anime"))
|
||||
{
|
||||
SearchAvailable = true,
|
||||
TVSearchAvailable = false,
|
||||
|
@ -28,6 +28,6 @@ namespace Jackett.Indexers.Newznab
|
|||
Type = "public";
|
||||
}
|
||||
|
||||
protected override Uri FeedUri => new Uri("https://animetosho.org/feed/api");
|
||||
protected override Uri FeedUri => new Uri(SiteLink + "/feed/api");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,11 @@ namespace Jackett.Indexers
|
|||
|
||||
public override Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
LoadValuesFromJson(configJson);
|
||||
|
||||
IsConfigured = true;
|
||||
SaveConfig();
|
||||
|
||||
return Task.FromResult(IndexerConfigurationStatus.RequiresTesting);
|
||||
}
|
||||
|
||||
|
@ -33,7 +37,8 @@ namespace Jackett.Indexers
|
|||
var request = new WebRequest
|
||||
{
|
||||
Url = requestUri,
|
||||
Type = RequestType.GET
|
||||
Type = RequestType.GET,
|
||||
Encoding = Encoding
|
||||
};
|
||||
var result = await webclient.GetString(request);
|
||||
|
||||
|
|
Loading…
Reference in a new issue