bili23-cli 0.2.0__tar.gz → 0.2.2__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.2}/CHANGELOG.md +13 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/PKG-INFO +1 -1
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/pyproject.toml +1 -1
- bili23_cli-0.2.2/src/bili23_cli/__init__.py +11 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/cli.py +3 -1
- bili23_cli-0.2.0/src/bili23_cli/__init__.py +0 -6
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/.gitignore +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/LICENSE +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/README.md +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/__main__.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/client.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/config.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/download.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/merge.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/naming.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/parse.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/search.py +0 -0
- {bili23_cli-0.2.0 → bili23_cli-0.2.2}/src/bili23_cli/wbi.py +0 -0
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.2] - 2026-07-07
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- `--version` 现在从已安装的包元数据读取真实版本号(之前硬编码为 0.1.0)。
|
|
14
|
+
|
|
15
|
+
## [0.2.1] - 2026-07-07
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- 支持 `bili23-cli --version` / `-V` 查看版本号。
|
|
19
|
+
|
|
10
20
|
## [0.2.0] - 2026-07-07
|
|
11
21
|
|
|
12
22
|
### Added
|
|
@@ -29,6 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
39
|
- Multi-part video support (`-p`).
|
|
30
40
|
- Anonymous fallback (`--no-cookie`).
|
|
31
41
|
|
|
32
|
-
[Unreleased]: https://github.com/1WorldCapture/bili23-cli/compare/v0.2.
|
|
42
|
+
[Unreleased]: https://github.com/1WorldCapture/bili23-cli/compare/v0.2.2...HEAD
|
|
43
|
+
[0.2.2]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.2.2
|
|
44
|
+
[0.2.1]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.2.1
|
|
33
45
|
[0.2.0]: https://github.com/1WorldCapture/bili23-cli/releases/tag/v0.2.0
|
|
34
46
|
[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.2
|
|
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.2"
|
|
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"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Bili23-Downloader 的 headless CLI。
|
|
2
|
+
|
|
3
|
+
复用 GUI 版本(Bili23-Downloader)登录后的 cookie 数据,给一个 B 站地址即可下载。
|
|
4
|
+
详见:https://github.com/ScottSloan/Bili23-Downloader
|
|
5
|
+
"""
|
|
6
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
__version__ = version("bili23-cli")
|
|
10
|
+
except PackageNotFoundError: # 源码直接运行(未安装)时兜底
|
|
11
|
+
__version__ = "0.0.0+unknown"
|
|
@@ -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
|