Jackett icon indicating copy to clipboard operation
Jackett copied to clipboard

Request freeleech token support for TVChaosUK

Open 2fst4u opened this issue 4 years ago • 2 comments

In my TVChaosUK account I note I have freeleech tokens but they are never used. In the alpharatio settings in Jackett there is an option to use freeleech tokens where available. Can this functionality be copied to the TVChaosUK tracker too please?

2fst4u avatar May 05 '20 21:05 2fst4u

Actually not as straight forward as it first may seem. The alpharatio website uses the gazelle engine on its server, and the Jackett indexer is written in C# using the GazelleTracker abstract. Using C# code mans the indexer can make choices about freeleech tokens, use them if available, switch to normal download when they are not.

The uktvchaos web site uses the unit3d engine on its server, and the Jackett indexer is written in yaml. The yaml code is not as flexible when it comes to making these kinds of choices. Right now, none of the unit3d indexers that Jackett has defined cater for freeleech token use. So we will need to research this.

@HDVinnie when a user decides to use a freeleech token, what changes in the url that is used to fetch a download? currently all the unit3d jackett indexers just have a hard-coded selector for a[href*="/download/"] to pick up the download url. Assuming for example, that the download url simply gets a &usetoken=1 parm added to it (as the gazelletracker does), what happens if the user does not have a freeleech token? Does the download get rejected, or is the download allowed to continue but as a regular download?

garfield69 avatar May 05 '20 22:05 garfield69

I just came back to this to see if there are updates but I notice there was no investigation added.

When you click the freeleech button the URL is

https://tvchaosuk.com/torrents/[torrentID]/freeleech_token

But this doesn't initiate the download. It just uses the token and assigns it to that torrent.

Then when you download the file it's the exact same URL as without the token. The token must just get used in the background.

So if there are no tokens to use, the site throws an error and says there are none to use, but this throws a visible error that takes over the page and appears to be CSS, it's not a clickable URL to clear the error

2fst4u avatar Jun 01 '21 06:06 2fst4u