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

support DETAILS function from Newznab API spec #942

Closed
maddox opened this issue May 11, 2024 · 3 comments
Closed

support DETAILS function from Newznab API spec #942

maddox opened this issue May 11, 2024 · 3 comments

Comments

@maddox
Copy link

maddox commented May 11, 2024

Can we please support the details function of the Newznab API spec?

DETAILS function in spec

This function allows you to get the JSON/XML representation of an NZB via its GUID.

While search results return perfect representation of the NZBs from indexers in JSON/XML, there's no way to fetch a single record with nzbhydra2 using its GUID.

I apologize if I'm missing something, if someone could point me to how to do this with Nzbhydra2. I searched for a while but was unable to find how to do this, or an explanation of why it doesn't work. This includes the source code.

@theotherp
Copy link
Owner

I'll look into it. First time I've heard of that function. If the indexers support it it's a simple matter of delegating the call to them.

I'm curious, what do you need this for?

@maddox
Copy link
Author

maddox commented May 11, 2024

Awesome, thanks!

I have my own software that has the need to fetch an NZB via the GUID. After receiving search results, it uses it as the unique ID and stores it to fetch the nzb later for other needs when it only has the GUID.

Everything is working great after moving to nzbhydra2, the results are great. But this is the one thing that’s not working.

@maddox
Copy link
Author

maddox commented May 11, 2024

It's probably worth brining up that NZBs in results from nzbhydra2, have their own GUID and don't match the guid in the provider's NZB. So using this GUID and passing it through to the original provider would not just work.

I bring this up while being unfamiliar with the architecture of nzbhydra2, though, and how it transforms the results. Obviously, a cache hit in nzbhydra2 would probably just immediately return the NZB again, but in cases where the GUID is from an NZB that may have been flushed from the cache, it would be problematic.

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

No branches or pull requests

2 participants