feat(torbox): Implement Payload Slicing and Auto-Cacher Toggle #2
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR introduces two major optimizations for the TorBox debrid service to significantly reduce API latency and eliminate friction for uncached content.
TorBox Payload Slicing (Zero-Latency API Checks)
Problem: Previously, all scraped Wawacity/Darki links were hashed and sent to TorBox's
/checkcachedendpoint. Sending 100+ hashes caused high latency and risked rate limits. 8 Solution: Links are now pre-sorted using WAStream'squality_sort_key. We slice the array and only send the Top 15 best links to the TorBox API. The remaining links default touncached, dropping API response times to milliseconds.TorBox Auto-Cacher (Zero-Click Downloads)
Problem: Users had to manually guess which
⏳(uncached) link was best and click it to trigger the background download.Solution: Introduced a new
trigger_auto_downloadmethod intorbox.py. If a user queries a movie/series and0cached TorBox streams are returned, WAStream automatically selects the absolute best uncached link and silently triggers a/createwebdownload(or usenet equivalent) in the background.Configuration Toggle
The Auto-Cacher is entirely optional. Added an
auto_cacheproperty to the Pydantic data model and a sleek toggle in the Web UI (index.html) that only appears when TorBox is selected. 16 * Added English and French localization for the new toggle intranslations.js.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.