Skip to content

Commit

Permalink
add length to info
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiShi1313 committed Mar 15, 2022
1 parent a4aad6a commit 80c9539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion differential/utils/torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def remake_torrent(path: Path, tracker: str, old_torrent: str) -> Optional[bytes
new_torrent[b'comment'] = f"Generate by Differential {version} made by XGCM"
new_torrent[b'info'] = {b'private': 1}
for k, v in torrent[b'info'].items():
if k in (b'files', b'name', b'piece length', b'pieces'):
if k in (b'length', b'files', b'name', b'piece length', b'pieces'):
new_torrent[b'info'][k] = v
return bencodepy.encode(new_torrent)

Expand Down

0 comments on commit 80c9539

Please sign in to comment.