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

[req]: HellasHut (API) #15252

Open
2 tasks done
hon4 opened this issue Apr 16, 2024 · 4 comments
Open
2 tasks done

[req]: HellasHut (API) #15252

hon4 opened this issue Apr 16, 2024 · 4 comments

Comments

@hon4
Copy link

hon4 commented Apr 16, 2024

Have you read our Contributing Guidelines?

  • I have read the Contributing Guidelines

Is there already a request for your tracker?

  • I have checked older issues, open and closed

Type

Private

Tracker details

It is already in jackett but when dynamic ip changes can't re-login automatically. Today they enabled their API. URL of API: https://hellashut.net/getapi.php

@ilike2burnthing
Copy link
Contributor

ilike2burnthing commented Apr 16, 2024

While we're always happy to use an API over site scraping, it doesn't look like there's a way to download using the API, so we'd still have to log in with credentials.

Also, as far as I'm aware that bencoding is going to be an absolute pain, we'd have to convert it to a pseudo-JSON output to actually use it. Ideally they (you?) would either change it completely, or have an optional search parameter like &output=json.

If those two sticking points can be resolved, it would be a lot more useful.

@hon4
Copy link
Author

hon4 commented Apr 19, 2024

I am the one of the three coders.
It gives results only in BEncode format.
It is still in development and it is still not finished. That's why the code hasn't been published yet.

Edit:
I can help by building a BEncode parser for jackett if you give me some explainations on the way it works.

@ilike2burnthing
Copy link
Contributor

Contribution and environment info - https://github.com/Jackett/Jackett/blob/master/CONTRIBUTING.md#contributing-code

There have been changes since, so check the current files, but you can find the PR that added JSON parsing here - #12424

YAML definitions format - https://github.com/Jackett/Jackett/wiki/Definition-format

Current HellasHut YAML definition (much of this can be carried over for the API definition) - https://github.com/Jackett/Jackett/blob/master/src/Jackett.Common/Definitions/hellashut.yml

You can find all of our current YAML definitions which use a JSON response here - https://github.com/search?q=repo%3AJackett%2FJackett+%22type%3A+json%22+language%3AYAML&type=code

@mynameisbogdan
Copy link
Contributor

At this point would be easier to switch to C#.

Weird seeing a REST API returning with BEncode.

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

3 participants