Skip to content

Collection (Click'n'Load)

Collection lets websites and browser extensions send links to Fret in one click. It speaks Click’n’Load, the protocol JDownloader introduced: anything that can send links to JDownloader or pyLoad can send them to Fret.

A Click’n’Load button on a web page (or an extension) sends its links to http://127.0.0.1:9666, a port on the computer where the browser runs. Fret listens on that port and turns the links into a shipment:

  • its name is the one sent by the website, otherwise “Collected from site”;
  • the first password sent with the links becomes the shipment password;
  • by default, it arrives held, with a banner on the dock: Ship sends it off, Refuse deletes it.

Fret answers the usual Click’n’Load requests: /jdcheck.js (detection), /flash/add (plain links) and /flash/addcrypted2 (encrypted links).

Because the browser sends to 127.0.0.1:9666, collection only works when that address reaches Fret:

Setup What to do
Fret runs on the same computer as the browser Nothing: the binary listens on 127.0.0.1:9666 by default.
Fret runs in Docker on the same computer Publish the port: -p 9666:9666 (the image listens on :9666).
Fret runs on another machine (NAS, server) Forward the port from your computer, for instance ssh -N -L 9666:localhost:9666 user@nas, or use an extension that lets you choose the address it sends to.

The address Fret listens on is set with FRET_COLLECT_ADDR (see Configuration). Settings › Collection and unpacking shows it.

In Settings › Collection and unpacking:

  • Collection (Click’n’Load): turns collection on or off without restarting. When off, the port stays open but refuses every request.
  • Confirm collected shipments (on by default): collected shipments wait for Ship on the dock.

To turn collection off completely, start Fret with FRET_COLLECT_ADDR=off: the port is not opened at all.

Built with Kiln