Magnets with names are always saved to /tmp #1197

Closed
opened 2026-02-21 15:31:49 -05:00 by deekerman · 3 comments
Owner

Originally created by @ValdikSS on GitHub (Feb 8, 2014).

If you try to download a single-file torrent with magnet link with embedded name, e.g.
magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU&dn=20140207%20Sochi%20otkrytiye%20igr.ts
It would always be downloaded to /tmp/magnet_id/file_name
But if you remove file name from the magnet, e.g.
magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU
everything works as it should. You can download the file wherever you want.

Steps to reproduce:

  1. File → add link to torrent
  2. Paste magnet with embedded name (magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU&dn=20140207%20Sochi%20otkrytiye%20igr.ts)
  3. Select download directory (/home)
  4. Press OK.

Expected result:
Torrent file downloads to /home

Actual result:
Torrent file downloads to /tmp/ee554cd881b6b99e0ec9366c72684b54ebc4dc94

Originally created by @ValdikSS on GitHub (Feb 8, 2014). If you try to download a single-file torrent with magnet link with embedded name, e.g. magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU&dn=20140207%20Sochi%20otkrytiye%20igr.ts It would always be downloaded to /tmp/magnet_id/file_name But if you remove file name from the magnet, e.g. magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU everything works as it should. You can download the file wherever you want. Steps to reproduce: 1. File → add link to torrent 2. Paste magnet with embedded name (magnet:?xt=urn:btih:5ZKUZWEBW24Z4DWJGZWHE2CLKTV4JXEU&dn=20140207%20Sochi%20otkrytiye%20igr.ts) 3. Select download directory (/home) 4. Press OK. Expected result: Torrent file downloads to /home Actual result: Torrent file downloads to /tmp/ee554cd881b6b99e0ec9366c72684b54ebc4dc94
deekerman 2026-02-21 15:31:49 -05:00
  • closed this issue
  • added the
    Duplicate
    label
Author
Owner

@ValdikSS commented on GitHub (Feb 8, 2014):

qBittorrent 3.1.8
libtorrent-rasterbar 1:0.16.12
ArchLinux

@ValdikSS commented on GitHub (Feb 8, 2014): qBittorrent 3.1.8 libtorrent-rasterbar 1:0.16.12 ArchLinux
Author
Owner

@sledgehammer999 commented on GitHub (Feb 8, 2014):

It was fixed with libtorrent 0.16.13 See #994

@sledgehammer999 commented on GitHub (Feb 8, 2014): It was fixed with libtorrent 0.16.13 See #994
Author
Owner

@ValdikSS commented on GitHub (Feb 8, 2014):

Oh, sorry for the duplicate.

@ValdikSS commented on GitHub (Feb 8, 2014): Oh, sorry for the duplicate.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#1197
No description provided.