Skip to content

Commit

Permalink
chore(reannounce): add hash to torrent log
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Aug 21, 2024
1 parent 6e3b1f9 commit 948076a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ All commands have extensive help with all available options.

```bash
$ qbtools export -h
usage: qbtools.py reannounce [-h] [--pause-resume] [--process-seeding]
usage: qbtools.py reannounce [-h] [--process-seeding]
[-c /app/config.yaml] [-p 12345] [-s 127.0.0.1] [-U username]
[-P password]

options:
-h, --help show this help message and exit
--pause-resume Will pause/resume torrents that are invalid.
--process-seeding Will also process seeding torrents for reannouncements.
-c /app/config.yaml, --config /app/config.yaml
-p 12345, --port 12345
Expand Down
5 changes: 3 additions & 2 deletions qbtools/commands/reannounce.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ def process_torrents(status):
logger.debug("Torrent %s has reached %s reannounce tries - not reannouncing", t.name, retries)
continue

logger.info("Reannouncing torrent %s", t.name)
logger.info("Reannouncing torrent %s (%s)", t.name, t.hash)
t.reannounce()
torrents_retries[t.hash] = torrent_retries + 1

retries[status] = torrents_retries
if torrents:
retries[status] = torrents_retries

logger.info("Starting reannounce process...")

Expand Down

0 comments on commit 948076a

Please sign in to comment.