Torrent details and location
Torrent details and location provide the focused view for one or more selected torrents. The client combines live daemon data with actions for per-torrent limits, file selection, file priority, metadata review, and data relocation. These views sit below the main torrent list and send changes to the Transmission daemon through the RPC layer. They are a child workflow of Torrent workflows.
Detail view
The detail view is a set of tabs that follows the torrent selected in the main list. Selecting a torrent changes the current torrent and starts a fresh detail request; selecting a tab tells the client which kind of data to request. The main tabs relevant to this page are General and Files. Trackers and Peers are separate views covered by Tracker management and are part of the same detail area.
flowchart LR
A[Select torrent] --> B[Set current torrent]
B --> C[Request detail data]
C --> D[General view]
C --> E[Files view]
C --> F[Tracker or peer view]
D --> G[Inspect or edit torrent]
E --> H[Inspect or change files]
General metadata
The General view presents transfer state and torrent metadata in one place. It shows status and errors with progress, remaining data, transfer totals, speeds, share ratio, limits, peer counts, tracker timing, and last activity. A second group shows the data path, creation details, total size, piece information, hash, comment, add and completion dates, magnet link, and labels. The values come from the selected torrent and update when the detail request completes.
References: main.pas• L6872-7099 main.lfm• L295-880
Detail refresh
The detail request is tied to the current torrent and current view. While a new file request is pending, file actions remain unavailable so that an action cannot target stale rows. If the selected torrent disappears or the request fails, the detail area is cleared.
References: rpc.pas• L382-400 rpc.pas• L586-605 main.pas• L4645-4681 main.pas• L5690-5705
Per-torrent configuration
Per-torrent configuration changes rules for the selected torrent without changing the daemon's global defaults. The Torrent properties dialog reads the current values before display and sends one update for all selected torrents when the user confirms it.
The General tab supports these choices:
- A maximum download speed and maximum upload speed. Each limit can be enabled or left unlimited.
- A peer limit for the torrent.
- A seed ratio policy. The torrent can follow the global rule, stop at a chosen ratio, or seed without a ratio limit.
- An idle seeding policy. The torrent can follow the global rule, stop after a chosen inactive time, or seed without an idle limit.
Property controls
The dialog uses a three-state choice where a grayed option means “use the global setting.” The Advanced tab shows the torrent's tracker entries. Tracker add, replace, and remove operations are part of the same save action; Tracker management explains tracker-specific workflows.
References: torrprops.lfm• L1-215 torrprops.pas• L42-106 main.pas• L4102-4229 main.pas• L4230-4364
RPC compatibility
The available controls depend on the daemon RPC version. Older daemons use older speed-limit fields and do not expose some seeding controls. The client hides unsupported controls and sends the matching form of the update.
References: main.pas• L4150-4222 main.pas• L4242-4283 main.pas• L5651-5683
File presentation
The Files view turns the daemon's file list into a browsable representation of the torrent contents. Each file can show its path, size, completed amount, progress, and priority. A multi-file torrent is grouped into folders when possible; a plain sorted view shows file rows without folder grouping.
The file view also acts as a control surface. Selecting a folder applies a file choice to its child files, and parent folders show a mixed state when their children differ. The client sends only the file IDs whose wanted state or priority must change. This keeps the visible tree aligned with the daemon after the update and lets users control which parts of a torrent consume disk space.
flowchart TD
A[Daemon file records] --> B[Files view]
B --> C{User action}
C --> D[Expand or search]
C --> E[Set wanted state]
C --> F[Set file priority]
C --> G[Rename path]
E --> H[Send file IDs]
F --> H
G --> I[Send path and new name]
H --> J[Refresh file details]
I --> J
File tree and paths
The tree keeps a download directory with the relative file path so that the client can derive a full remote path. That path supports copy, open, and open-containing-folder actions. A completed torrent can open its file or folder from the main list, while the Files view can open the current row or its containing folder.
References: addtorrent.pas• L110-169 addtorrent.pas• L247-441 addtorrent.pas• L480-495 main.pas• L6855-6870 main.pas• L2236-2279 main.pas• L4690-4719
File choices
File choices are used both during intake and after a torrent is active. During intake, the contents tree lets the user choose wanted files and shows the selected size against the full torrent size. After intake, the same model displays completion and priority and sends changes through torrent-set. See Torrent intake for the add flow.
References: addtorrent.lfm• L205-282 addtorrent.pas• L1029-1070 main.pas• L7492-7623
Data location
The data location action changes the download directory recorded for one or more selected torrents. It opens a remote-folder chooser with the current location as the starting value and offers a choice to move the existing data from the old location to the new one.
Location change
When the user confirms, the client sends the selected torrent IDs, the new remote location, and the move choice to Transmission. A blank location is rejected before the request is sent. After a successful request, the client refreshes file details and waits for the selected torrents to report the new path. The last used location is saved for the next move operation.
References: movetorrent.lfm• L1-94 movetorrent.pas• L40-96 main.pas• L2144-2228
Path refresh
The move action can apply to several selected torrents, but it needs daemon support for the location operation. The client disables it for unsupported RPC versions and while the torrent list has no usable selection. A move changes the path used by the Files view and by open or copy-path actions, so those views must refresh before they are used again.
References: main.pas• L2155-2178 main.pas• L2180-2223 main.pas• L5651-5660 main.pas• L2040-2045
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the detail tab mapping aligned with the RPC request type. A tab change must not display rows from a prior torrent or a prior request.
- Keep file row IDs, wanted state, priority, and remote paths aligned. File actions use the daemon's file IDs rather than the visible row order.
- Keep RPC-version gates aligned with both the controls shown and the field names sent for speed and seeding settings.
- Keep location changes tied to the file-detail refresh. Open, rename, and copy-path actions depend on the refreshed download directory.
- Keep multi-selection behavior consistent between property updates and location moves. The dialog labels and the RPC ID list must describe and target the same set.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A file detail response arrives for a torrent that is no longer current | The file view could show or act on the wrong torrent | The RPC thread checks the request generation and torrent ID before filling the view. |
| The selected torrent has no file list or the file request fails | The Files tab is cleared and file actions cannot proceed | The detail fill rejects missing file, priority, or wanted arrays and marks the view unavailable. |
| A move request uses an empty location | Transmission is not called and no location changes | The move dialog trims the value and shows an error for a blank path. |
| The daemon does not support a requested property or location operation | The action is hidden or the request can fail | The client gates controls and fields by RPC version. |
| The data moves but the old file view remains in memory | Open, rename, or copy-path actions can use an old path | A successful location request marks file details changed and refreshes the selected torrents. |
Key files
| File | Why to read it |
|---|---|
main.pas | Connects selection, detail tabs, property editing, file actions, and location changes to the user workflow. |
main.lfm | Shows the General and Files detail surfaces and the commands available from the main window. |
rpc.pas | Shows how current-torrent detail requests become General and Files view updates. |
torrprops.pas | Defines the property dialog behavior and its enable or disable rules. |
torrprops.lfm | Shows the per-torrent speed, peer, seeding, and tracker controls. |
addtorrent.pas | Defines the shared file tree model used for file paths, wanted state, priority, progress, and size summaries. |
addtorrent.lfm | Shows how the file tree presents torrent contents during intake. |
movetorrent.pas | Validates the new location and captures the move-data choice. |
movetorrent.lfm | Shows the remote location and data-move controls. |