bili23-cli 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/CHANGELOG.md +7 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/PKG-INFO +1 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/pyproject.toml +1 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/cli.py +3 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/.gitignore +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/LICENSE +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/README.md +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/__init__.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/__main__.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/client.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/config.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/download.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/merge.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/naming.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/parse.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/search.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.1}/src/bili23_cli/wbi.py +0 -0
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.1] - 2026-07-07
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- 支持 `bili23-cli --version` / `-V` 查看版本号。
|
|
14
|
+
|
|
10
15
|
## [0.2.0] - 2026-07-07
|
|
11
16
|
|
|
12
17
|
### Added
|
|
@@ -29,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
34
|
- Multi-part video support (`-p`).
|
|
30
35
|
- Anonymous fallback (`--no-cookie`).
|
|
31
36
|
|
|
32
|
-
[Unreleased]: https://github.com/1WorldCapture/bili23-cli/compare/v0.2.
|
|
37
|
+
[Unreleased]: https://github.com/1WorldCapture/bili23-cli/compare/v0.2.1...HEAD
|
|
38
|
+
[0.2.1]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.2.1
|
|
33
39
|
[0.2.0]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.2.0
|
|
34
40
|
[0.1.0]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.1.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bili23-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Headless CLI for downloading Bilibili videos — reuses the Bili23-Downloader GUI login session, no separate login required.
|
|
5
5
|
Project-URL: Homepage, https://github.com/1WorldCapture/bili23-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/1WorldCapture/bili23-cli
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bili23-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Headless CLI for downloading Bilibili videos — reuses the Bili23-Downloader GUI login session, no separate login required."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -52,6 +52,7 @@ def _progress_bar(downloaded: int, total: int, *, label: str = ""):
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
def build_parser() -> argparse.ArgumentParser:
|
|
55
|
+
from . import __version__
|
|
55
56
|
p = argparse.ArgumentParser(
|
|
56
57
|
prog="bili23-cli",
|
|
57
58
|
description="Bili23-Downloader 的 headless CLI —— 复用 GUI 登录态下载 B 站视频",
|
|
@@ -64,6 +65,7 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
64
65
|
" 搜索后下载第3条:bili23-cli search 错题本 --download 3",
|
|
65
66
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
66
67
|
)
|
|
68
|
+
p.add_argument("-V", "--version", action="version", version=f"bili23-cli {__version__}")
|
|
67
69
|
sub = p.add_subparsers(dest="command")
|
|
68
70
|
|
|
69
71
|
# ---- download(默认子命令)----
|
|
@@ -310,7 +312,7 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
310
312
|
argv = sys.argv[1:]
|
|
311
313
|
|
|
312
314
|
# 向后兼容:无子命令时(如 bili23-cli BV1GE411Q7Ew)补 "download"
|
|
313
|
-
if argv and argv[0] not in ("download", "search", "-h", "--help"):
|
|
315
|
+
if argv and argv[0] not in ("download", "search", "-h", "--help", "-V", "--version"):
|
|
314
316
|
argv = ["download"] + argv
|
|
315
317
|
|
|
316
318
|
parser = build_parser()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|