qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.68k stars 4.01k forks source link

Create torrent tracker list blank lines #14873

Closed anoname1 closed 3 years ago

anoname1 commented 3 years ago

Please provide the following information

qBittorrent version and Operating System

4.3.4.1

What is the problem

The tracker list of the "create torrent" window, given a blank line, will add the string "el" to the tracker list in the created torrent.

What is the expected behavior

Skip the line and do not add any text to the torrent as it seems to break tracker functionality

Steps to reproduce

In the tracker list, leave a blank line between trackers.

Extra info(if any)

The reason a blank line is useful is to separate trackers from different sources.

FranciscoPombal commented 3 years ago

See https://www.bittorrent.org/beps/bep_0003.html (specifically the section about "bencoding") and https://www.bittorrent.org/beps/bep_0012.html. What you are seeing is simply the bencoding delimiters of tracker announce_list elements. Nothing's wrong here. A blank line in the dialog simply separates between tiers.

Here is an example of the start of a .torrent file created with mktorrent:

d8:announce33:http://footracker.com:80/announce13:announce-listll33:http://footracker.com:80/announceel34:udp://bartracker.net:1337/announceel34:udp://baztracker.com:1337/announceee7:comment12:Some comment(...)