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

BIT-HDTV: Convert from Scraping to API #888

Open
1 task done
mvanbaak opened this issue Mar 14, 2022 · 1 comment
Open
1 task done

BIT-HDTV: Convert from Scraping to API #888

mvanbaak opened this issue Mar 14, 2022 · 1 comment
Labels

Comments

@mvanbaak
Copy link

mvanbaak commented Mar 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe

Bit-hdtv recently created an API to search their site without having to provide your username/password or site-cookie, but using an API key.
This weekend they also added the possibity to grab the actual torrent file this way.

Describe the solution you'd like

Prowlarr should use the bit-hdtv api to do it's job. This way it wont be scraping the html etc.

Describe alternatives you've considered

N/A

Anything else?

As described in their announcement (https://www.bit-hdtv.com/forums/viewtopic.php?pid=102411):

Copied from above link

This announcement is more for the tech savy users / developers.

As we know a while back we have an API from where you can search torrents and get response in a standardized format. (https://api.bit-hdtv.com/docs)

We extended these with some easy options to search / upload and download torrents using the api key without totally exposing your account (using cookies or user/pass).

The following 3 actions can be done by api key (without cookies or user/pass) and response in standard format for scripts/scrapers/automations projects can handle easy.

  1. Search torrents using the API (already available)
  2. Upload torrent
  3. Download torrent

It has some code examples in PHP
I'm only pasting the part about downloading here. The part about searching has no code examples, the api.bit-hdtv.com/docs has all the info needed (swaggerui)

- rssdownload.php using just the api key

https://www.bit-hdtv.com/rssdownload.php?id=<the id>&api_key=<the api key>

Example:
https://www.bit-hdtv.com/rssdownload.php?id=431273&api_key={{apiKey}}

How to get your API key?

Go to Profile in the top left and at the bottom of the page you will see an option to add an Api Key.
Input password and Submit.

AB#2791

@mvanbaak mvanbaak added Status: Needs Triage New Issue needing triage Type: Feature Request Issue is a feature request. labels Mar 14, 2022
@bakerboy448 bakerboy448 changed the title BIT-HDTV: Use API to grab torrents BIT-HDTV: Convert from Scraping to API Mar 14, 2022
@bakerboy448 bakerboy448 added Area: Indexers and removed Status: Needs Triage New Issue needing triage labels Mar 14, 2022
@Qstick
Copy link
Contributor

Qstick commented Dec 19, 2022

Seems like they only allow power users to create API keys, thus this would limit the user base in Prowlarr that are able to use the indexer.

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

4 participants