Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ebooks category ID is incorrect for MyAnonamouse #689

Closed
p5nbTgip0r opened this issue Feb 21, 2021 · 0 comments
Closed

Ebooks category ID is incorrect for MyAnonamouse #689

p5nbTgip0r opened this issue Feb 21, 2021 · 0 comments
Labels

Comments

@p5nbTgip0r
Copy link

The ebooks category mapping for MyAnonamouse (through Jackett) seems to be set/found incorrectly when checking the indexer.

When I search for a book through Readarr I see this in the log:

MyAnonamouse: Calling https://[jackett]/api/v2.0/indexers/myanonamouse/results/torznab/api?apikey=[api key]&t=book&extended=1&password=1&cat=100060

Category 100060 is for Ebooks - Action/Adventure according to Jackett and the book I am searching for is not in that category.

The other Jackett indexers in that same torznab search use category IDs representing the correct category:

IPTorrents: Calling https://[jackett]/api/v2.0/indexers/iptorrents/results/torznab/api?apikey=[api key]&t=book&extended=1&password=1&cat=7020,8010 
(7020 = 'Books/EBook', 8010 = 'Other/Misc')
TorrentDB: Calling https://[jackett]/api/v2.0/indexers/torrentdb/results/torznab/api?apikey=[api key]&t=search&extended=1&password=1&cat=7020,8010 
(same as above)
AlphaRatio: Calling https://[jackett]/api/v2.0/indexers/alpharatio/results/torznab/api?apikey=[api key]&t=search&extended=1&password=1&cat=100027 
(10027 = 'eBook')

This can be reproduced through NZBHydra's UI by searching MyAnonamouse with the Ebook category, then looking at the logs to see what cat= it called Jackett with:

INFO --- [http-nio-0.0.0.0-5] org.nzbhydra.searching.SearchWeb         : [ID: 37343, Host: [ip]] New search request: SearchRequest{source=INTERNAL, indexers=[MyAnonamouse], searchType=BOOK, category=Ebook, offset=0, limit=100, maxsize=100, query=test, identifiers={}}
INFO --- [http-nio-0.0.0.0-5] o.n.searching.IndexerForSearchSelector   : [ID: 37343, Host: [ip]] Not using IPTorrents because it was not selected by the user
INFO --- [http-nio-0.0.0.0-5] o.n.searching.IndexerForSearchSelector   : [ID: 37343, Host: [ip]] Not using TorrentDB because it was not selected by the user
INFO --- [http-nio-0.0.0.0-5] o.n.searching.IndexerForSearchSelector   : [ID: 37343, Host: [ip]] Not using AlphaRatio because it was not selected by the user
INFO --- [http-nio-0.0.0.0-5] o.n.searching.IndexerForSearchSelector   : [ID: 37343, Host: [ip]] Selected 1 out of 4 indexers: MyAnonamouse
INFO --- [pool-12348-thread-] org.nzbhydra.indexers.torznab.Torznab    : [ID: 37343, Host: [ip]] MyAnonamouse: Calling https://[jackett]/api/v2.0/indexers/myanonamouse/results/torznab/api?apikey=<apikey>&t=book&extended=1&q=test&password=1&cat=100060
INFO --- [pool-12348-thread-] org.nzbhydra.indexers.torznab.Torznab    : [ID: 37343, Host: [ip]] MyAnonamouse: Successfully executed search call in 259ms with 0 total results

Or check the nzbhydra.yml file for what value categoryMapping -> ebook has under the MyAnonamouse entry. Here is a copy of my nzbhydra.yml file, stripped to just the MAM indexer and censored of sensitive info.

I think the issue is coming from here. A possible fix might be to check for e-book in addition to ebook (like how the magazine category checks for both magazine and mags).

Lastly, I'm using NZBHydra (hotio/nzbhydra2:release, version 3.12.0) and Jackett (hotio/jackett:release, version 0.17.562) through Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant