mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Use join method
This commit is contained in:
parent
b543c2bd99
commit
54ad29fab8
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user