Skip to content

Commit

Permalink
Do not fill announce when tracker is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiShi1313 committed Mar 15, 2022
1 parent ff5cd24 commit a4aad6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion differential/utils/torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def remake_torrent(path: Path, tracker: str, old_torrent: str) -> Optional[bytes
logger.warning(f"洗种的基础种子很可能不匹配!基础种子文件名为:{_name},而将要制种的文件名为:{path.name}")

new_torrent = {}
new_torrent[b'announce'] = tracker
if tracker:
new_torrent[b'announce'] = tracker
new_torrent[b'created by'] = f"Differential {version}"
new_torrent[b'comment'] = f"Generate by Differential {version} made by XGCM"
new_torrent[b'info'] = {b'private': 1}
Expand Down

0 comments on commit a4aad6a

Please sign in to comment.