# Manage torrents in qui

> Tags, categories, tracker URLs, leftover folders after deletes and moves, saved filter views, keyboard control, table columns, torrent creation, export, MediaInfo, and BDInfo reports.

# Torrent Management

qui provides tools to manage torrent lists: tags, categories, tracker URLs, saved filter views, keyboard control, table columns, a torrent creator, `.torrent` export, MediaInfo, and BDInfo Disc reports. For queue, speed, and share limits, see [qBittorrent Preferences](./instance-settings.md#qbittorrent-preferences).

## Deleting and moving torrents

When a delete reaches 10 torrents or more, or when Ctrl/Cmd + A selected all torrents, the delete dialog names the first three torrents and gives the number of the others. The **Delete** button shows the count, for example **Delete 7500 torrents**. After Ctrl/Cmd + A, the dialog also tells you that select all is on, and how many of the selected torrents are not loaded in the table.

qBittorrent removes a torrent's own folder when you delete it with its files, but not the folders above it, and a move leaves the old folder behind. On an instance with **Local Filesystem Access**, qui removes these leftover folders after it deletes a torrent with its files, changes its location, changes its category, turns on Automatic Torrent Management, or changes a category's save path. This covers the qui UI, automations, and requests from Sonarr, Radarr, autobrr, and other clients that go through the [reverse proxy](./reverse-proxy.md), when the request is sent as a URL-encoded form. There is no setting.

qui removes a folder only when it is empty, or holds nothing but `Thumbs.db`, `desktop.ini`, `.directory`, `.DS_Store`, or files whose names end in `~`. It starts at the torrent's own folder and works up, one empty folder at a time. It stops at:

- the default save path, the download path, a category folder, a category's download folder, and the hardlink base directory. A category's download folder is the folder that qBittorrent downloads the category into. On qBittorrent 5.0 and later, a category with no download path setting takes the setting of its parent category. If that path is empty, the folder is named after the category, in the parent's download folder or in the download path. qui never removes these;
- a folder qBittorrent monitors for `.torrent` files, and the save path set for it. qui never removes these either;
- a folder that holds any other file, such as subtitles or an `.nfo` you added. A symlink, a Windows junction, or another special file counts as a file even when its name is on the list above;
- a folder under your [orphan scan ignore paths](./orphan-scan.md), even with orphan scan off;
- the save path or content path of a torrent still in the instance, or a folder above one;
- a symlink or a Windows junction.

When the save path is not inside a folder from the first item in this list, qui never goes above the torrent's save path, and never removes the save path itself. For an incomplete torrent in its own download path, the same holds for that download path. A monitored folder and the save path set for it are never removed, but they do not limit how far up qui goes. When qBittorrent adds a torrent from a subfolder of a monitored folder, it saves the torrent to a subfolder of the same name wherever that monitored folder saves, and qui can remove that subfolder once it is empty if it sits inside one of the folders from the first item, which is always the case with **Default save location**.

qui waits up to two minutes for qBittorrent to finish deleting or moving the files, and for the torrent to leave the instance after a delete or show its new content path after a move. When files are still there after two minutes, such as an `.nfo` you added in one of the torrent's subfolders, and the torrent has left the instance or moved, qui removes the torrent's folders that are empty and keeps the rest. This needs qBittorrent to answer a sync just before the two minutes are up. Otherwise the folders are left to orphan scan. A torrent that turns out not to be deleted or moved keeps its folder. Anything still there after a move to another disk that takes longer, or in a folder qui could not read, is left to [orphan scan](./orphan-scan.md#abandoned-directories). If the content was already missing before the delete or move, for example because a disk was not mounted, qui leaves the folder alone.

Before it sends a delete or move, qui checks the content for at most 5 seconds for a request that comes through the reverse proxy, and for at most 30 seconds for one from the qui UI or an automation, even when a disk or network mount stops answering. Content it has not checked by then is left to orphan scan.

qui does not clean up after a delete made in the qBittorrent WebUI, by qBittorrent's share limits, or by a client that talks to qBittorrent directly. Orphan scan's **Delete Abandoned Directories** covers those.

## Tags and categories

Manage tags and categories from the **Tags** and **Categories** sections in the filter sidebar. Click **Create tag** or **Create category** at the top of a section. Open the context menu on a tag or category for the other actions.

- **Create tag** adds one tag to the instance.
- **Delete Tag** removes a tag from the instance.
- **Delete unused tags** lists every tag with zero torrents and removes them in one step.
- **Create category** adds a category with an optional save path.
- **Create Subcategory** adds a child category. The dialog pre-fills the name with `parent/`.
- **Edit Category** changes the save path of a category. The name stays fixed.
- **Delete Category** removes one category.
- **Remove Empty Categories** lists every category with zero torrents and removes them in one step.

### Subcategories

qBittorrent stores a subcategory as a name with `/` separators, for example `media/movies`. qui shows the categories as a collapsible tree sorted by name when the instance supports subcategories (qBittorrent WebUI API 2.9.0 or newer). The qBittorrent preference **Enable Subcategories** (Instance Preferences > Files) must also be on. From WebUI API 2.15.0, subcategories are always on. In other cases, qui shows a flat list.

## Exclude a filter

Click a status, category, tag, or tracker in the filter sidebar to show only the torrents that match it. Ctrl+click the same item (Cmd+click on macOS) to exclude it instead. The list then shows the torrents that do not match. On a touch screen, press and hold the item for the same result. Click it again to clear the exclusion.

## Clear filters

Click **Clear filters** at the top of the filter sidebar to remove sidebar and column filters. The button appears when either group has active filters. Search text and sorting stay unchanged.

Open the arrow menu beside the button for these actions:

- **Clear sidebar filters** keeps column filters and search text.
- **Clear column filters** keeps sidebar filters and search text.
- **Clear filters and search** removes both filter groups and search text.

Each action keeps the current sort order. The table toolbar's clear button removes column filters only.

## Change a tracker URL

Use this when a tracker resets your passkey or changes its announce address.

1. In the **Trackers** section of the filter sidebar, open the context menu on the tracker.
2. Click **Edit tracker URL**. If the entry groups more than one domain, select the domain.
3. Check **Current Full Tracker URL**. On qBittorrent 5.1 or newer, qui fills it in from your torrents. If your torrents use more than one URL for this tracker, select the one to replace. On older versions, enter the complete current URL yourself.
4. Enter the complete new URL, with the new passkey, in **New Full Tracker URL**.
5. Click **Update Tracker**.

qui replaces the URL on every torrent of the instance that has exactly the current URL. To change the URL of one torrent only, open the **Trackers** tab in its details panel and open the context menu on the tracker. On qBittorrent 5.1 or newer, if the tracker has `http://` URLs, the dialog also shows **Convert all HTTP to HTTPS**, which changes them to `https://`.

The menu entry is gray when the instance is read-only or qBittorrent is older than 4.1.5.

:::warning
If an automation removes unregistered torrents, disable it before you change the URL. Until the tracker accepts the new passkey, qBittorrent can report every torrent of that tracker as unregistered, and the automation then removes all of them. Enable the automation again when the torrents show a working tracker status.
:::

## Saved filter views

The **Views** section in the filter sidebar saves the current filter selection as a named view.

1. Select filters in the sidebar.
2. Click **Save current filters**.
3. Enter a name and click **Save**.

Click a saved view to apply its filters. qui highlights the active view. Each view has a menu with three actions:

- **Update filters** overwrites the view with the current sidebar selection. The confirmation toast has an **Undo** action that restores the previous filters.
- **Rename** changes the name of the view.
- **Delete** removes the view.

A view stores the sidebar filter selection only. It does not include search text, sorting, or column filters. Names must be unique and have a limit of 100 characters.

## Selection and keyboard control

| Input | Action |
|-------|--------|
| Click | Selects only the row and opens the details panel. Other selected rows become unselected, also after Ctrl/Cmd + A. If the row is the only selected row and its details panel is open, the click closes the panel and clears the selection. |
| Right-click | Opens the context menu. If the row is selected, the menu acts on all selected rows. If the row is not selected, qui selects only that row, and the menu acts on that row. |
| Ctrl/Cmd + click | Toggles selection of the row |
| Shift + click | Selects the range from the last selected row |
| Ctrl/Cmd + A | Selects all torrents in the current view |
| Arrow Up / Arrow Down | Moves the selection one row |
| Enter | Opens the details panel for the focused row |
| Escape | Closes the details panel and clears the selection |

The arrow keys replace the selection with the focused row, the same as a plain click. When the details panel is open, it follows the arrow keys. If you type in an input field or open a dialog, hotkeys are inactive.

## Table columns

**Toggle columns** in the table toolbar shows or hides columns. Drag the handle next to a column in that menu to change its position, or drag a column header directly.

Drag the edge of a column header to change the width of that column. The button next to **Toggle columns** decides how the Name column gets its width.

Stretch mode is the default. In stretch mode, the Name column takes the width that the other columns leave, so the table fills the window. You cannot resize the Name column in stretch mode. In scroll mode, you set the width of the Name column, and the table scrolls sideways when the columns do not fit. If the visible columns leave no room for the Name column, qui scrolls anyway and the button turns gray until you hide a column. qui remembers the choice for each instance.

## Live updates paused

While the torrent table is open, qui asks qBittorrent for changes every 2 seconds. qBittorrent answers these requests on the same thread that runs its torrents. If that thread is busy, the answer waits.

If qBittorrent does not answer in time, the status bar under the table shows **Live updates paused**. qui keeps the last data on screen and tries again. To see the reason and the age of the data, put the pointer on the status.

If the reason is that qBittorrent did not answer in time, look for these causes:

- qBittorrent is not running, or its host does not answer. Make sure that the qBittorrent WebUI opens.
- qBittorrent checks or moves torrents. The live updates return when the check or the move ends.
- Other apps send many requests to the same qBittorrent, for example a second web UI or a tool that lists all torrents.
- The torrent data is on network storage (NFS, SMB, or an rclone mount) and qBittorrent uses libtorrent 2.0. qBittorrent issue reports show that qBittorrent can stop answering in this setup. In qBittorrent, set **Advanced > Disk IO type** to **Simple pread/pwrite**, or use a qBittorrent build with libtorrent 1.2.
- You run qBittorrent 5.2.x. An [open qBittorrent issue](https://github.com/qbittorrent/qBittorrent/issues/25068) reports that 5.2.x keeps one thread at 100% CPU and stops answering, and that 5.1.4 works with the same setup.

A large library makes the first update after qui connects slower. If none of the causes above applies, split the torrents over two or more qBittorrent instances. The [Export to Instance](./automations.md#export-to-instance) action adds torrents to the new instance. The torrent data must already be on the new instance. The action does not remove the torrents from the old instance. After the torrents seed on the new instance, remove them from the old instance. If both instances use the same files, keep the files when you remove the torrents. The new instance needs them.

## Torrent creator

The **Create torrent** button opens the creator dialog. On desktop it is in the header. On phones it is the **Create** button in the bottom bar. It creates a new `.torrent` file from a file or folder on the qBittorrent server. The button appears only when the instance supports torrent creation, which requires qBittorrent 5.0 or newer (WebUI API 2.11.2).

| Field | Description | Default |
|-------|-------------|---------|
| Source Path | Full path to a file or folder on the qBittorrent server. Folders and files appear as suggestions while you type. | Required |
| Private torrent | Disables DHT, PEX, and local peer discovery | On |
| Trackers | Pick from active trackers or enter one URL per line | - |
| Comment | Free-text comment stored in the torrent | - |
| Source | Source field stored in the torrent | - |
| Add to qBittorrent | Adds the created torrent and starts seeding. When off, qui only creates the file for download. | On |
| Torrent Format | `v1 (Compatible)`, `v2 (Modern)`, or `Hybrid (v1 + v2)` | v1 |
| Piece Size | Piece size for the torrent | Auto |
| Save .torrent to (optional) | Full file path on the server for the created file. A directory alone is invalid. | - |
| Web Seeds (HTTP/HTTPS) | URLs where clients download content, one per line | - |

The last four fields are under **Advanced Options**.

:::note
Hybrid and v2 formats require a qBittorrent build with libtorrent 2. On a libtorrent 1.x build, qui creates v1 torrents only.
:::

### Creation tasks

The **Torrent Creation Tasks** list in the header shows every creation job with its status: Queued, Running, Finished, or Failed. Running tasks show a progress bar. While tasks run, the list refreshes every 2 seconds. From a finished task, you can download the `.torrent` file or delete the task. If the download fails with the qBittorrent option **Delete .torrent files afterwards** enabled, see [Troubleshooting](../advanced/compatibility.md#download-of-a-created-torrent-fails-with-failed-to-download-torrent-file).

## Torrent export

**Export Torrent** in the torrent context menu downloads the `.torrent` file for the selected torrent. With multiple torrents selected, the action reads **Export Torrents (N)**. Export requires qBittorrent WebUI API 2.8.11 or newer.

Up to 10 torrents download as individual files. Larger selections download as one `qui-torrents.zip` archive. Inside the archive, qui groups files into folders by category. qui places torrents without a category into `Uncategorized`. When the selection spans multiple instances, each instance gets its own top-level folder.

If some torrents fail to export, the archive still downloads. An `export-errors.txt` file inside the archive lists the failures.

## Content tab sorting

The **Content** tab of the details panel shows the files of a torrent as a folder tree. Click a column header (**Name**, **Progress**, **Size**, or **Priority**) to sort the rows by that column. Click the same header again to reverse the direction. The narrow layout shows the same four choices as a row of buttons above the file list.

Folders always stay above files. A folder sorts by the total of its files. The **Priority** column appears only when the instance supports per-file priority. The sort resets to **Name** when you reload the page.

## MediaInfo

The **Content** tab of the details panel offers a **MediaInfo** action on each file. It analyzes the file on disk and opens a dialog with two tabs: **Summary** and **Raw JSON**. **Copy Summary** and **Copy JSON** copy the report to the clipboard.

Because qui reads the file from disk, MediaInfo requires the instance option **Local Filesystem Access**. See [Instance Settings](./instance-settings.md#local-filesystem-access).

## BDInfo

The **Content** tab offers a **BDInfo** action on each Disc in a torrent. A Disc is a folder that holds a `BDMV` folder, or an `.iso` file. A box set gets one action per Disc. DVD folders (`VIDEO_TS`) are not supported.

The first click starts a scan with [go-bdinfo](https://github.com/autobrr/go-bdinfo) and opens a dialog. The scan runs in the background, so you can close the dialog or leave the page. qui shows a toast when the scan finishes. Scans run one at a time in the order you start them. The dialog shows the queue position of a waiting scan, the progress of a running scan, and a **Cancel scan** button for both.

A finished scan opens a dialog with two tabs: **Quick Summary** and **Forum**. The Forum tab holds the BBCode block for tracker upload forms. Each tab has a copy button. The report covers the main playlist only.

qui keeps the report, so a second visit to the same Disc opens it at once. Two torrents on one instance that point at the same Disc share one report. **Rescan** replaces the stored report with a new scan. A scan that was running when qui restarted shows as failed; use **Rescan** to run it again.

Because qui reads the Disc from disk, BDInfo requires the instance option **Local Filesystem Access**. See [Instance Settings](./instance-settings.md#local-filesystem-access).
