Skip to content

Show private flag in --show-files output - #2367

Open
swarooppatilx wants to merge 1 commit into
aria2:masterfrom
swarooppatilx:fix/show-private-flag
Open

swarooppatilx wants to merge 1 commit into
aria2:masterfrom
swarooppatilx:fix/show-private-flag

Conversation

@swarooppatilx

Copy link
Copy Markdown

aria2c -S or --show-files already parses the torrent's private flag internally (TorrentAttribute::privateTorrent), but it does not display it in the output.

This patch adds a Private: yes/no line to the BitTorrent file information so that users can immediately verify whether a torrent is marked as private.

Example output:

$ aria2c --show-files private.torrent
>>> Printing the contents of file 'private.torrent'...
*** BitTorrent File Information ***
Mode: single
Private: yes
Announce:
 <removed>
Info Hash: <removed>
Piece Length: 16KiB
The Number of Pieces: 1
Total Length: 57B (57)
Name: testfile.bin
Magnet URI: magnet:?<removed>
Files:

Fixes #2297.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--show-files does not list torrent's private flag

1 participant