Use join method

This commit is contained in:
Jeffrey Serio 2024-08-01 13:05:37 -05:00
parent b543c2bd99
commit 54ad29fab8

View File

@ -42,6 +42,4 @@ if __name__ == "__main__":
combined_trackers_urls.extend(tracker_urls) combined_trackers_urls.extend(tracker_urls)
for torrent in qb.torrents(): for torrent in qb.torrents():
for tracker in combined_trackers_urls: qb.add_trackers(torrent.get("hash"), "\n".join(combined_trackers_urls)) # type: ignore
qb.add_trackers(torrent.get("hash"), f"{tracker}\n") # type: ignore
print(f"Added {tracker} to {torrent.get('name')}") # type: ignore