Jackett: AnimeTorrents - PerformQuery needs an update

Created on 11 Mar 2018  路  6Comments  路  Source: Jackett/Jackett

Hi guys,
There is an issue with AnimeTorrents search where it would be too specific with the wording, for example,
the "-" needs to be including for it to show any results

The fix for this can be resolved via an update to the code: for instance:

"Before, in PerformQuery

var searchString = query.GetQueryString();
var searchUrl = SearchUrl;

After

var searchString = query.GetQueryString();
var match = System.Text.RegularExpressions.Regex.Match(searchString, " [0-9]+$").Index;
if (match != 0) searchString = searchString.Substring(0, match) + " - " + searchString.Substring(match+1).PadLeft(2,'0');
var searchUrl = SearchUrl;

For example, this changes "Boku no Hero Academia 13" to "Boku no Hero Academia - 13" or "Boku no Hero Academia 9" to "Boku no Hero Academia - 09"

To be more clear, can we get the AnimeTorrents.cs file update as it is not going to show searches for:
"Boku no Hero Academia 13"
but will show if adding a dash "-"
"Boku no Hero Academia - 13"

All 6 comments

I can't find any results with Boku no Hero Academia - 13 either.
In general it seems like it's possible to use % as wildcard.
So just replacing all whitespaces with % looks like a better solution.
so the search string would become Boku%no%Hero%Academia%13

How are you doing the tests? It is a private tracker site, so you鈥檒l need an account.
Is the % method working for you?

Hey Kaso, i am very sorry. I used a horrible example, as Boku no Hero episodes aren't there anymore (they are all batched)

Here's a better example:
https://animetorrents.me/torrents.php?search=Boruto%3A+Naruto+Next+Generations+-+48&SearchSubmit=

If the percentage method works for that also, can it be added ASAP. Also, with Baruto: net generations, when added the percentage after Baruto:% it comes up as nothing

212045751835a35813439cc2ac231917ca23bfc9 should fix your problem

Was this page helpful?
0 / 5 - 0 ratings