mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
AnimeBytes: more fixes
This commit is contained in:
@@ -26,9 +26,6 @@ namespace Jackett.Common.Indexers
|
||||
public bool AddSynonyms { get { return configData.AddSynonyms.Value; } }
|
||||
public bool FilterSeasonEpisode { get { return configData.FilterSeasonEpisode.Value; } }
|
||||
|
||||
string csrfIndex = null;
|
||||
string csrfToken = null;
|
||||
|
||||
private new ConfigurationDataAnimeBytes configData
|
||||
{
|
||||
get { return (ConfigurationDataAnimeBytes)base.configData; }
|
||||
@@ -170,6 +167,10 @@ namespace Jackett.Common.Indexers
|
||||
if (json["error"] != null)
|
||||
throw new Exception(json["error"].ToString());
|
||||
|
||||
var Matches = (long)json["Matches"];
|
||||
|
||||
if(Matches > 0)
|
||||
{
|
||||
var groups = (JArray)json.Groups;
|
||||
|
||||
foreach (JObject group in groups)
|
||||
@@ -249,7 +250,6 @@ namespace Jackett.Common.Indexers
|
||||
continue;
|
||||
}
|
||||
var torrentID = (long)torrent["ID"];
|
||||
logger.Error(torrentID);
|
||||
var Property = (string)torrent["Property"];
|
||||
Property = Property.Replace(" | Freeleech", "");
|
||||
var Link = (string)torrent["Link"];
|
||||
@@ -275,13 +275,13 @@ namespace Jackett.Common.Indexers
|
||||
|
||||
if (searchType == "anime")
|
||||
{
|
||||
if (category == "TV Series")
|
||||
if (GroupName == "TV Series")
|
||||
Category = new List<int> { TorznabCatType.TVAnime.ID };
|
||||
|
||||
// Ignore these categories as they'll cause hell with the matcher
|
||||
// TV Special, OVA, ONA, DVD Special, BD Special
|
||||
|
||||
if (category == "Movie")
|
||||
if (GroupName == "Movie")
|
||||
Category = new List<int> { TorznabCatType.Movies.ID };
|
||||
|
||||
if (category == "Manga" || category == "Oneshot" || category == "Anthology" || category == "Manhwa" || category == "Manhua" || category == "Light Novel")
|
||||
@@ -357,10 +357,9 @@ namespace Jackett.Common.Indexers
|
||||
foreach (var title in synonyms)
|
||||
{
|
||||
string releaseTitle = null;
|
||||
if (category == "Movie")
|
||||
if (GroupName == "Movie")
|
||||
{
|
||||
var year = 0;
|
||||
releaseTitle = string.Format("{0} {1} {2}{3}", title, year, group, infoString);
|
||||
releaseTitle = string.Format("{0} {1} {2}{3}", title, Year, releasegroup, infoString);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -391,6 +390,7 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnParseError(response.Content, ex);
|
||||
|
Reference in New Issue
Block a user