From 9348fb7b74e1c82c9e02bdc40c0c0c48faa2911f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 7 Oct 2026 12:22:06 +0200 Subject: Show colored album and file progress bars Use rich for two live bars: the album (files done, elapsed time) and the current file (percent, size, speed, ETA). The file bar starts at the resumed offset and is removed when the file finishes; album bars stay as a record. Messages go through console.out so they print above the bars. Adds rich as a runtime dependency. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 3919287..75a0929 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,8 +5,8 @@ Guidance for AI coding agents working in this repository. ## What this is `bunkr_dl`: single-file Python script that downloads Bunkr albums and search -results. Runtime dependencies: `requests`, `beautifulsoup4`, `lxml`. Keep it a -single file and do not add dependencies. +results. Runtime dependencies: `requests`, `beautifulsoup4`, `lxml`, `rich`. +Keep it a single file and do not add dependencies without asking. On the maintainer's machine the script is installed as a symlink into the repo, so edits are live immediately: @@ -31,6 +31,8 @@ finds nothing, re-inspect the live pages with `curl` before changing code. ## Conventions +- Output goes through `console.out`, never `print`, so messages do not tear + the `rich` progress bars. - New options go in the `argparse` setup in `main()` and in the README usage table. - `download_file` resumes with a per-request `Range` header. Never mutate the -- cgit v1.2.3