Celeb Glow
general | March 28, 2026

How can I use aria2c to convert magnet link to .torrent file while changing .torrent file name?

I am using aria2c to convert a magnet link to a .torrent file with the following command:

aria2c --bt-metadata-only=true --bt-save-metadata=true <MAGNET_LINK>

However it returns a really messy filename. Is there any way I can change the output of the torrent file?

I tried using --dir=./ --index-out=1=MYTORRENT.torrent but that didn't work.

1

2 Answers

No, as per the man page. The name is always the btih field of the magnet link.

--bt-save-metadata [true|false] Save meta data as ".torrent" file. This option has effect only when BitTorrent Magnet URI is used. The file name is hex encoded info hash with suffix ".torrent". The directory to be saved is the same directory where download file is saved. If the same file already exists, meta data is not saved. See also --bt-metadata-only option. Default: false
aria2c --follow-torrent=false "your magnet link"

will save the torrent file your magnet link linked to and not download the files listed in the torrent.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy