# Торренти

VDM downloads BitTorrent files from magnet links and `.torrent` files. Torrents appear in the same list as other downloads, marked **Torrent** in the **Source** column, and can be queued and scheduled like them.

## Додати торрент

1. Натисніть **Додати торрент** на панелі інструментів, щоб вибрати файл `.torrent`. Або натисніть стрілку поруч і виберіть **Відкрити файл torrent...** чи **Додати magnet-посилання...** (також у меню **Завдання**).
2. Відкриється вікно **Додати торрент**. Вставте magnet-посилання в поле **Торрент** або натисніть **...**, щоб вибрати файл `.torrent`, а потім натисніть **Знайти**.
3. VDM reads the torrent and shows its files as a folder tree. A `.torrent` file is read at once. A magnet link first has to get the file list from other peers, usually within seconds. While it waits, **Add torrent** shows how many peers it found, from the trackers, the DHT or your local network, and how many answered. After 30 seconds without an answer, it says what may be in the way: a link with no trackers while the DHT is off, or a firewall, a VPN or a network that blocks BitTorrent.
4. Зніміть позначки з папок або файлів, які вам не потрібні. Команди **Вибрати все** та **Скасувати вибір** допоможуть із великими торрентами. У полі **Вибрано** показано кількість вибраних файлів і їхній загальний розмір.
5. Перевірте **Зберегти до**. **Файли зберігаються в** показує точну папку. Торренти мають власну категорію, тому за замовчуванням це `Downloads\Torrents`. Для багатофайлового торрента, завантаженого безпосередньо через BitTorrent, **Створити папку для цього торрента** за замовчуванням позначено. Зніміть позначку, щоб розмістити файли безпосередньо в **Зберегти до**, зберігаючи їхні внутрішні папки. Дерево файлів і **Файли зберігаються в** оновлюються відповідно. **Перейменувати** вимкнено, доки немає зовнішньої папки для назви.
6. Щоб дивитися відео під час завантаження, поставте позначку **Завантажувати по порядку** (див. [Завантажувати по порядку](#download-in-order)).
7. Натисніть **Завантажити зараз** або **Пізніше**, щоб додати його до списку без початку завантаження.

Призначення, вже зайняте іншим завантаженням, включно з тим, що очікує з **Пізніше**, має бути змінено, перш ніж торрент можна буде додати. Це включає невибрані шляхи, оскільки частина, що перекривається, може в них записувати. Старіший торрент без збереженого списку файлів консервативно резервує все своє призначення; виберіть інше призначення або видаліть цей запис зі списку без видалення його файлів, перш ніж ділитися каталогом.

**Also delete the file from disk** removes the files VDM made for the torrent, each recognised by its file index and the time it was created, so a file that took the same name later is never taken for the torrent's. Files that were already there, files another download claims and files you agreed to use stay. VDM creates every ticked file of a torrent itself, empty, before it starts, so they are removed with it. Unticked files aren't made in the folder: the parts of the pieces they share with ticked files are kept in VDM's own torrent data, and go with the torrent; a file ticked later is made then, and gets them. Only empty folders VDM created are removed; existing folders and a shared **Save to** folder stay. A torrent with its own outer folder, added before this version, is deleted the way it always was. An older one-file torrent is deleted by name, from its own folder. Another older torrent (saved without an outer folder) has no record of its files: VDM keeps them and says why, so check and remove them yourself. A filesystem that gives no reliable creation time (FAT and exFAT, some network and Linux filesystems) keeps its files: VDM never deletes what it cannot recognise. Whenever **Also delete the file from disk** leaves files on the disk, VDM lists them. A **Save to** folder that does not exist yet is made, with its parents, when the torrent starts. A torrent added before this version, with its own folder or one file, takes the files already there as its own once, so resuming it or sharing it again does not ask about files VDM itself downloaded.

The torrent can only write into files VDM has checked, however it starts (**Download Now**, **Resume**, the Files tab, **Recheck**, or when VDM opens). If a file is at one of its paths and VDM did not make it (saved there after the torrent was added, replaced while the torrent was stopped, or moved to another drive by something other than VDM), VDM asks before using it. **Yes** lets the torrent use the file and write into it, and VDM never deletes it; **No** leaves it as it is and the torrent does not start. Starting it again asks again. An empty file is asked about too (a `.gitkeep`, or a file another program has just made and is about to write). If you replace a file while its torrent is stopped, starting the torrent adds it again on the file that is there now, so what you agreed to is what it writes to. When VDM opens, finished torrents are shared again only if their files are as VDM left them; one with a file that would need your permission is left stopped, and VDM asks nothing then.

An older VDM can open a list that holds a torrent saved without its own folder, but it does not know that its folder is shared: do not Move, Rename or Delete that torrent there. Its Delete with files removes every file of the torrent in **Save to**, those you agreed to use included, and **Save to** itself if that is then empty. This version recognises such a torrent again from its address, which an older VDM keeps.

1. Зніміть позначки з непотрібних файлів, а потім натисніть «Завантажити зараз».

   [![Додавання торента: файли торента у вигляді дерева папок, папка для збереження та кнопка «Завантажити зараз»](https://vdm.mikaillab.com/help/images/help/torrent-add.webp)](https://vdm.mikaillab.com/help/images/help/torrent-add.webp) [![Додавання торента: файли торента у вигляді дерева папок, папка для збереження та кнопка «Завантажити зараз»](https://vdm.mikaillab.com/help/images/help/torrent-add-dark.webp)](https://vdm.mikaillab.com/help/images/help/torrent-add-dark.webp)
2. Вікно перебігу завантаження: кожен файл і обсяг його завантажених даних.

   [![Вікно прогресу торрента на вкладці «Файли»](https://vdm.mikaillab.com/help/images/help/torrent-files.webp)](https://vdm.mikaillab.com/help/images/help/torrent-files.webp)
3. Частини: карта торрента, що заповнюється.

   [![Вкладка «Частини»: квадрат для кожної частини, який заповнюється після її отримання](https://vdm.mikaillab.com/help/images/help/torrent-pieces.webp)](https://vdm.mikaillab.com/help/images/help/torrent-pieces.webp)

You can also paste a magnet link into **Add URL**, or drop a magnet link or a `.torrent` file on the drop target (**Tasks → Show drop target**). If a torrent is already in the list, VDM says so instead of adding it twice.

A `.torrent` file's web address works too: paste it into **Add URL** or **Torrent**, or let the browser hand the download over. VDM fetches the file, with the browser's cookies when the browser sent it, and **Add torrent** shows what it holds. The browser hands `.torrent` downloads over when `TORRENT` is in **Options → File types** and **Open magnet links and .torrent files with Volt Download Manager** is on in [Torrent settings](#torrent-settings). `TORRENT` is in the list by default; a list you had before it came keeps what it had, so add `TORRENT` to it yourself. While that setting is off, the browser keeps `.torrent` downloads and opens them in your own torrent program, and the extension's button says why. **Download with Volt Download Manager** on a link always hands it over. A command line with `/n` (silent) saves the `.torrent` file itself, like any file. VDM fetches at most 10 MB: anything bigger isn't a `.torrent` file.

If some of the torrent's files are already in the folder, VDM asks before using them. **Yes** keeps them for the torrent: VDM checks them, keeps what matches the torrent and downloads the rest, which is how you continue a download started elsewhere or share files you already have. **No** (the default) goes back, so you can choose another folder and nothing of yours is overwritten.

The chosen layout is kept when the torrent is paused or VDM restarts. A multi-file torrent saved directly in **Save to** shares that directory: **Move/Rename** and folder renaming on completion are disabled for it so they cannot move unrelated files. Deleting the torrent's files leaves unrelated files and the shared destination folder in place. The layout option applies to direct BitTorrent downloads; torrents downloaded through a debrid account keep their existing layout.

Some programs (BitComet, for one) write a torrent's names in another encoding and add a UTF-8 copy of them (`name.utf-8`, `path.utf-8`); VDM shows and saves the files under the UTF-8 names. A torrent like that which was downloading in an earlier version starts those files again under their correct names, and leaves the files with the old names in the folder.

VDM refuses a torrent with file names your system can't write safely, says which name, and writes nothing. What others can see, the network switches in **Torrent settings**, blocklists and proxies: [Torrents and your security](https://vdm.mikaillab.com/uk/help/torrent-security.html).

## Під час завантаження

Двічі клацніть торрент у списку, щоб відкрити вікно перебігу завантаження. Крім звичайного стану, у вікні торрента є п'ять вкладок:

- **Файли** — список файлів, їхній розмір і обсяг завантажених даних. Біля файлів, з яких ви зняли позначки, показано **Пропущено**. Поставте або зніміть позначку біля файла, щоб змінити список завантажень навіть під час роботи торрента. Принаймні один файл має залишатися позначеним. Якщо зняти позначки з усіх файлів, які ще не завантажено, торрент завершить роботу. Якщо до завершеного торрента, який не працює, знову додати файл, торрент залишиться зупиненим, доки ви його не відновите, тож жоден файл не завантажиться непомітно.
- **Піри** — комп'ютери, з яких ви завантажуєте файли, і дані про обсяг отриманих від кожного з них даних та обсяг надісланих їм даних.
- **Трекери** — трекери торрента. Якщо трекерів немає, піри знаходяться через DHT та інших пірів.
- **Частини** — карта частин торрента: наявні, частково завантажені або відсутні.
- **General** — the info hash, pieces, peers, how much was sent, the share ratio, how long it has been shared and the folder. What was sent and the time shared add up over all of the torrent's runs: they don't start again at 0 after a pause or a restart of VDM.

Вкладки залишаються після завершення завантаження торента, доки він розповсюджується.

A file is made when its first byte is downloaded, and only a ticked one is made in the folder: what an unticked file shares with a ticked one waits in VDM's own torrent data. A running torrent keeps only the files it is reading or writing open, a few hundred at most for all of VDM's torrents together (fewer where the system allows fewer, as macOS does), so a torrent of thousands of files runs where it used to fail with "Too many open files".

A stopped torrent keeps none of its files open: you can move, rename or delete them, or open them in another program, while it waits. When you start it again, VDM opens them where they are; a file that was moved away or deleted meanwhile is made again and its pieces downloaded again. A finished torrent that is shared (**Keep sharing torrents after they finish**, in Torrent settings) keeps its files open only to read them: other programs can open, copy, run, move or rename them meanwhile.

У вкладці **Обмежувач швидкості** вікна торрента, крім обмеження швидкості завантаження, є параметр **Обмежити надсилання**, який дає змогу вибрати швидкість надсилання. Це обмеження зберігається для торрента й застосовується щоразу, коли торрент працює або роздається. За будь-яких умов швидкість торрента не можна обмежити значенням нижче 16 КБ/с.

## Команди для торрентів

Клацніть торрент у списку правою кнопкою миші та відкрийте меню **Торрент**:

- **Повторна перевірка файлів** — зчитує та перевіряє кожну частину файлів торрента, наприклад, після переміщення файлів або помилок диска. Торрент, який працює, після цього продовжить роботу й завантажить відсутні дані. Зупинений торрент залишиться зупиненим. У журналі подій буде вказано, скільки даних знайдено. Якщо в завершеному торренті пошкоджено частину, він зупиниться. Після відновлення завантаження ця частина буде завантажена знову.
- **Повторне оголошення** — негайно знову запитує в трекерів торрента список пірів, не чекаючи наступного запиту. Працює, коли торрент завантажується або роздається.
- **Add trackers...** — adds trackers, one address a line (`http`, `https` or `udp`). They are kept with the torrent, after the ones it has, and the **Trackers** tab shows them. A tracker on your computer or your local network is refused: VDM never contacts those ([why](https://vdm.mikaillab.com/uk/help/torrent-security.html)).
- **Завантажувати по порядку** — завантажує файли торрента з їхнього початку (див. нижче). Натисніть ще раз, щоб повернутися до завантаження найрідкісніших частин спочатку.
- **Спочатку перші та останні частини** — з **Завантажувати по порядку** перші та останні частини кожного файлу завантажуються раніше за решту. Увімкнено за замовчуванням.
- **Копіювати магнітне посилання** — копіює магнітне посилання для торрента, з його трекерами.

Результат кожної команди записується в журнал подій торрента. Щоб переглянути його, наведіть курсор на комірку **Стан** торрента у списку.

## Завантажувати по порядку

By default VDM downloads the pieces that the fewest peers have first, as BitTorrent programs usually do. That way a piece only one peer has is fetched before that peer leaves, and VDM can pass it on to others sooner. On VDM's test swarms it finished just as fast as downloading in order, and it was the only order that finished when a scarce piece's only holder left.

**Завантажувати по порядку** спочатку отримує початок файлу, тож ви можете дивитися відео під час його завантаження: відкрийте його у своєму плеєрі, щойно завантажиться перша частина. Поставте позначку в **Додати торрент** або виберіть **Торрент → Завантажувати по порядку** у контекстному меню списку в будь-який час, навіть під час роботи. Наступні запитувані частини слідують новому порядку.

- З **Спочатку перші та останні частини** (увімкнено за замовчуванням) останні частини кожного файлу також завантажуються раніше. Більшість відеофайлів зберігають свій індекс в кінці, і плеєр читає його перед відтворенням.
- Якщо файлів кілька, вони завантажуються один за одним, за назвою.
- Повільніші піри отримують частини трохи далі від початку, щоб не затримувати завантаження початку файлу.

Торрент по порядку не завершується швидше, і він менше допомагає рою: використовуйте його для того, що ви хочете подивитися зараз.

## Канали RSS

Many sites publish their new torrents as an RSS or Atom feed. VDM can watch feeds, list what they hold, and add the new torrents you want by itself. Choose **Tasks → RSS feeds...**, or click the arrow next to **Add Torrent**.

[![RSS feeds: the feeds VDM follows and their items](https://vdm.mikaillab.com/help/images/help/rss-feeds.webp)](https://vdm.mikaillab.com/help/images/help/rss-feeds.webp) [![RSS feeds: the feeds VDM follows and their items](https://vdm.mikaillab.com/help/images/help/rss-feeds-dark.webp)](https://vdm.mikaillab.com/help/images/help/rss-feeds-dark.webp)

Канали RSS та правила, які вибирають, що завантажувати.

Вкладка **Канали**:

- Type a feed's address into **Feed address** and click **Add feed**. VDM fetches it at once, then every 30 minutes; change that under **Check feeds every ... minutes**, 5 at the least.
- Виберіть канал ліворуч, щоб переглянути його статті. Стаття з торрентом показує значок торрента та його розмір, якщо канал надає цю інформацію. Двічі клацніть на ній або виберіть її та натисніть **Завантажити...**, щоб відкрити **Додати торрент** з нею, як для будь-якого магнітного посилання або адреси `.torrent`.
- **Оновити** отримує вибраний канал зараз. **Видалити** припиняє його відстеження. Канал, який неможливо прочитати, відображається червоним кольором, а в його рядку внизу вказано причину.

Вкладка **Правила завантаження**: правило додає торренти з нових статей, заголовки яких відповідають правилу, без запиту.

- **Повинно містити**: слова, які заголовок повинен містити, всі вони, в будь-якому порядку. `|` розділяє альтернативи (`1080p|2160p`), а `*` та `?` є символами-замінниками. Регістр не має значення.
- **Не повинно містити**: слова, які змушують правило пропускати статтю, написані так само.
- **Регулярні вирази**: два поля містять регулярні вирази замість слів.
- **Епізоди**: які епізоди брати, зчитані з `S01E05` або `1x05` у заголовку. `1x2` – це 1 сезон 2 епізод, `1x5-8` – епізоди з 5 по 8, `2x1-` – все з 2 сезону 1 епізоду, а `3` – весь 3 сезон, розділені `;`. Пусто: будь-яка стаття. Правило бере кожен епізод один раз: другий випуск епізоду, який вже був доданий, пропускається.
- **Зберегти до**: папка, куди йдуть його торренти; якщо порожньо, папка категорії «Торренти». **Додати без запуску** додає їх так, як це зробила б функція **Завантажити пізніше**.
- **Канали**: канали, які він відстежує; якщо жоден не позначений, то всі.

Rules only look at articles that are new since the feed was last fetched, and a feed's first fetch only lists what is there. So adding a feed or a rule never downloads a whole backlog. **Matches ... articles now** shows which of the articles the feeds hold now the rule matches, to check it; download those by hand. A torrent the list already has isn't added again, and neither is one whose files are already in the folder: VDM never writes into files it didn't make without asking. The bottom line of the tab says what the rules did last, and a torrent a rule added says so in its event log.

Feeds and rules are kept in `rss.json` in VDM's data folder. VDM reads at most 5 MB of a feed.

## Налаштування торрентів

Виберіть **Завдання → Налаштування торрентів...** (або стрілку поруч із **Додати торрент**):

[![Налаштування торрентів: роздача, обмеження та видимість для інших](https://vdm.mikaillab.com/help/images/help/torrent-settings.webp)](https://vdm.mikaillab.com/help/images/help/torrent-settings.webp) [![Налаштування торрентів: роздача, обмеження та видимість для інших](https://vdm.mikaillab.com/help/images/help/torrent-settings-dark.webp)](https://vdm.mikaillab.com/help/images/help/torrent-settings-dark.webp)

Завдання → Налаштування торрентів...

- **Продовжувати роздачу торрентів після завершення** — за замовчуванням вимкнено: після завершення торрент зупиняється, як і будь-яке завантаження. Увімкніть цей параметр, щоб після завершення завантаження й надалі надсилати дані іншим пірам.
- **Зупинити розповсюдження при коефіцієнті розповсюдження** — роздача завершеного торента припиняється, коли обсяг надісланих даних у стільки разів перевищує обсяг отриманих (2.00: удвічі). За замовчуванням вимкнено.
- **Зупинити розповсюдження після розповсюдження протягом … хвилин** — або коли загальний час роздачі досягне цього значення за всі запуски. За замовчуванням вимкнено.

A torrent stopped by one of these says so in its event log, and isn't shared again when VDM starts. Raise or turn off the limit to share it again. - **Limit uploading for all torrents to** — off by default. Caps what all your torrents together send to other peers, while they download and while they share. A torrent's own upload limit, in its progress window, applies on top of it. - **Open magnet links and .torrent files with Volt Download Manager** — Windows then opens magnet links in your browser and `.torrent` files in Explorer with VDM. This is for your Windows account only. It also lists VDM in Windows' **Settings → Apps → Default apps** for `MAGNET` and `.torrent`. A program already chosen there (or in **Open with**) stays first, because Windows lets only you change that choice: when you turn the setting on and Windows still opens them with another program, VDM says which and opens its own **Default apps** page, where you set **MAGNET** and **.torrent** to Volt Download Manager. Firefox can keep a choice of its own for magnet links: when **magnet** is listed in its **Settings → General → Applications**, set its action to Volt Download Manager (shown as the default once Windows has it) or to **Always ask**. The setup can turn it on for you. It also decides whether the browser hands `.torrent` downloads to VDM: off, they stay with the browser for your own torrent program, even with `TORRENT` in **Options → File types**. It starts as you chose in the setup; a portable copy, or an VDM updated from an earlier version, starts with it on when your system already opens `.torrent` files with this VDM (or you had ticked it), off otherwise. From then on it stays as you leave it. On Linux it makes VDM your desktop's default app for them; on macOS, their default app (Finder offers VDM in **Open With** for `.torrent` files either way, and a double-click opens them in VDM when no other app is their default).

- **Connect over uTP too (UDP)** — on by default. uTP is BitTorrent over UDP. Many peers (qBittorrent's, µTorrent's, Transmission's and others) take uTP, and some take nothing else: without it, VDM can't reach those, and a torrent with few peers may find almost none. VDM tries TCP first and uTP when TCP doesn't answer within a second, on the same port it listens on, so uTP needs **Accept incoming connections** on. A SOCKS5 proxy carries only TCP, so with **Use the proxy** on, uTP is off. A chosen network adapter holds uTP's socket too.
- **Add the trackers of this public list to public torrents** — off by default. While it is on, every public torrent also asks the trackers of a public tracker list, so it finds peers sooner, above all an old torrent whose own trackers have gone quiet: the ones you add from then on, and those already in your list (once, when you turn it on). The list is [ngosang/trackerslist](https://github.com/ngosang/trackerslist)'s best trackers unless you type another address in the box (one tracker per line). VDM fetches it with its own downloader, through your proxy and network adapter, once a day (an hour later when a fetch failed), and keeps the last good copy: a new torrent never waits for it, and takes the list as last fetched. When a newer list brings new trackers, each torrent gets those too. A **private torrent** (one from a private tracker, marked so inside the torrent) never gets them: it may only ask its own trackers. Turning it off doesn't take away the trackers already added. Each torrent's **Trackers** tab shows them, and its event log says how many were added. `voltdownloadmanager-cli torrent-get` follows the same switch.

У тому ж вікні є мережеві перемикачі (вхідні з’єднання, порт, UPnP, uTP, DHT, SOCKS5 проксі), чорний список і публічний список трекерів: дивіться [Торренти та ваша безпека](https://vdm.mikaillab.com/uk/help/torrent-security.html).

VDM starts its torrent engine the first time you add a torrent. If you never use torrents, it never listens for peers.

When the network comes back after a drop (Wi-Fi reconnecting, the computer waking from sleep, a VPN connecting or switching), VDM notices within a few seconds and calls the torrents' peers again at once, and asks their trackers and the DHT again, so a download picks up where it was instead of waiting minutes for each peer's next try. Each peer is called once for it; a tracker is still never asked sooner than its minimum interval. Behind a SOCKS5 proxy, a drop the computer itself doesn't see (the router losing its line while Wi-Fi stays up) is noticed only through the DHT, which is off there, so those torrents come back on their own, as before.

To find peers without trackers, VDM joins the DHT through four public routers (`dht.libtorrent.org`, `dht.transmissionbt.com`, `router.bittorrent.com` and `router.utorrent.com`); any one that answers is enough. It keeps the DHT nodes it found for the next start, so later starts don't depend on those routers.

VDM's log (`logs\vdm.log` in [VDM's data folder](https://vdm.mikaillab.com/uk/help/crash-reports.html#where-reports-are-kept)) says where it listens, for example `torrents: listening for peers on TCP and uTP (UDP) port 51413 (every address, IPv4 and IPv6: [::]:51413)`. That is one socket for IPv4 and IPv6 (and one UDP socket for uTP), so on Windows `netstat -ano -p tcp` (IPv4 only) doesn't list it; `netstat -ano` or `Get-NetTCPConnection -State Listen` does, under `[::]` or `::` (and `Get-NetUDPEndpoint` the uTP one).

On a Linux system without CA certificates (a minimal install without the `ca-certificates` package), torrents still work: peers, the DHT and `http://` trackers. An `https://` tracker can't be checked there, so VDM skips it; install that package to use those too.

With a debrid account, torrents and magnet links can go to the service instead of to peers, and VDM downloads the files from it over HTTP: see [Torrents through the service](https://vdm.mikaillab.com/uk/help/debrid.html#torrents-through-the-service).

## Наступні кроки

- [Черги та Планувальник →](https://vdm.mikaillab.com/uk/help/queues-and-scheduler.html)
- [Завантаження відео →](https://vdm.mikaillab.com/uk/help/video.html)
- [Список завантажень →](https://vdm.mikaillab.com/uk/help/download-list.html)

## Пов’язані теми

- [Завантаження відео](https://vdm.mikaillab.com/uk/help/video.html)
- [Галереї зображень](https://vdm.mikaillab.com/uk/help/galleries.html)
- [Торренти та ваша безпека](https://vdm.mikaillab.com/uk/help/torrent-security.html)
- [Облікові записи служби дебридингу](https://vdm.mikaillab.com/uk/help/debrid.html)

[Редагувати цю сторінку на GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/torrents.md) [Повідомити про проблему з цією сторінкою](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20Torrents&page=https%3A//vdm.mikaillab.com/help/torrents.html) [Історія сторінки](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/torrents.md)

Безкоштовно, з відкритим кодом, без реклами, без пробного періоду.

[Download Volt Download Manager](https://vdm.mikaillab.com/uk/download.html)
