um-pmag

um-pmag submits a magnet link to the premiumize transfer API, prints live transfer progress, and opens um-pmdl when the transfer finishes so the new content can be browsed and downloaded.

Setup

The credentials line:

apikey=...

The key comes from the premiumize control panel, API section, key type "api key". Keep the file readable only by you (chmod 600).

Usage

um-pmag "magnet:?xt=urn:btih:..."   # explicit link
um-pmag                             # link from the clipboard

An argument always wins over the clipboard. A value that does not start with magnet: is rejected before anything is sent.

Behavior

Statuses

The progress line shows the API status verbatim: waiting while queued, downloading with a percentage, finished on success, error on failure.