diff --git a/pyproject.toml b/pyproject.toml index b8a3f4d..68c2aa7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ authors = [{ name = "Puqns67", email = "me@puqns67.icu" }] dependencies = [ "httpx>=0.27.2", "h2>=4.1.0", - "rich>=13.8.1", + "rich>=13.9.2", "brotli>=1.1.0", "zstandard>=0.23.0", "click>=8.1.7", diff --git a/src/ncmlyrics/constant.py b/src/ncmlyrics/constant.py index 616b8c3..58a84d4 100644 --- a/src/ncmlyrics/constant.py +++ b/src/ncmlyrics/constant.py @@ -2,7 +2,7 @@ from httpx import URL from platformdirs import PlatformDirs APP_NAME = "ncmlyrics" -APP_VERSION = "0.1.0a1" +APP_VERSION = "0.1.0a2" NCM_API_BASE_URL = URL("https://interface.music.163.com/api") diff --git a/src/ncmlyrics/object.py b/src/ncmlyrics/object.py index 796ee24..85df614 100644 --- a/src/ncmlyrics/object.py +++ b/src/ncmlyrics/object.py @@ -23,8 +23,6 @@ class NCMTrack: except JSONDecodeError: raise ObjectParseError("无法以预期的 Json 格式解析响应") - print(data) - if data.get("code") != 200: raise ObjectParseError(f"响应码不为 200: {data["code"]}") diff --git a/uv.lock b/uv.lock index 67d3fe7..32412fe 100644 --- a/uv.lock +++ b/uv.lock @@ -3,15 +3,15 @@ requires-python = ">=3.12" [[package]] name = "anyio" -version = "4.6.0" +version = "4.6.2.post1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, { name = "sniffio" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/78/49/f3f17ec11c4a91fe79275c426658e509b07547f874b14c1a526d86a83fc8/anyio-4.6.0.tar.gz", hash = "sha256:137b4559cbb034c477165047febb6ff83f390fc3b20bf181c1fc0a728cb8beeb", size = 170983 } +sdist = { url = "https://files.pythonhosted.org/packages/9f/09/45b9b7a6d4e45c6bcb5bf61d19e3ab87df68e0601fa8c5293de3542546cc/anyio-4.6.2.post1.tar.gz", hash = "sha256:4c8bc31ccdb51c7f7bd251f51c609e038d63e34219b44aa86e47576389880b4c", size = 173422 } wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/ef/7a4f225581a0d7886ea28359179cb861d7fbcdefad29663fc1167b86f69f/anyio-4.6.0-py3-none-any.whl", hash = "sha256:c7d2e9d63e31599eeb636c8c5c03a7e108d73b345f064f1c19fdc87b79036a9a", size = 89631 }, + { url = "https://files.pythonhosted.org/packages/e4/f5/f2b75d2fc6f1a260f340f0e7c6a060f4dd2961cc16884ed851b0d18da06a/anyio-4.6.2.post1-py3-none-any.whl", hash = "sha256:6d170c36fba3bdd840c73d3868c1e777e33676a69c3a72cf0a0d5d6d8009b61d", size = 90377 }, ] [[package]] @@ -130,15 +130,15 @@ wheels = [ [[package]] name = "httpcore" -version = "1.0.5" +version = "1.0.6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "certifi" }, { name = "h11" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/17/b0/5e8b8674f8d203335a62fdfcfa0d11ebe09e23613c3391033cbba35f7926/httpcore-1.0.5.tar.gz", hash = "sha256:34a38e2f9291467ee3b44e89dd52615370e152954ba21721378a87b2960f7a61", size = 83234 } +sdist = { url = "https://files.pythonhosted.org/packages/b6/44/ed0fa6a17845fb033bd885c03e842f08c1b9406c86a2e60ac1ae1b9206a6/httpcore-1.0.6.tar.gz", hash = "sha256:73f6dbd6eb8c21bbf7ef8efad555481853f5f6acdeaff1edb0694289269ee17f", size = 85180 } wheels = [ - { url = "https://files.pythonhosted.org/packages/78/d4/e5d7e4f2174f8a4d63c8897d79eb8fe2503f7ecc03282fee1fa2719c2704/httpcore-1.0.5-py3-none-any.whl", hash = "sha256:421f18bac248b25d310f3cacd198d55b8e6125c107797b609ff9b7a6ba7991b5", size = 77926 }, + { url = "https://files.pythonhosted.org/packages/06/89/b161908e2f51be56568184aeb4a880fd287178d176fd1c860d2217f41106/httpcore-1.0.6-py3-none-any.whl", hash = "sha256:27b59625743b85577a8c0e10e55b50b5368a4f2cfe8cc7bcfa9cf00829c2682f", size = 78011 }, ] [[package]] @@ -198,7 +198,7 @@ wheels = [ [[package]] name = "ncmlyrics" -version = "0.1.0" +version = "0.1.0a2" source = { editable = "." } dependencies = [ { name = "brotli" }, @@ -217,7 +217,7 @@ requires-dist = [ { name = "h2", specifier = ">=4.1.0" }, { name = "httpx", specifier = ">=0.27.2" }, { name = "platformdirs", specifier = ">=4.3.6" }, - { name = "rich", specifier = ">=13.8.1" }, + { name = "rich", specifier = ">=13.9.2" }, { name = "zstandard", specifier = ">=0.23.0" }, ] @@ -250,15 +250,15 @@ wheels = [ [[package]] name = "rich" -version = "13.8.1" +version = "13.9.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/92/76/40f084cb7db51c9d1fa29a7120717892aeda9a7711f6225692c957a93535/rich-13.8.1.tar.gz", hash = "sha256:8260cda28e3db6bf04d2d1ef4dbc03ba80a824c88b0e7668a0f23126a424844a", size = 222080 } +sdist = { url = "https://files.pythonhosted.org/packages/aa/9e/1784d15b057b0075e5136445aaea92d23955aad2c93eaede673718a40d95/rich-13.9.2.tar.gz", hash = "sha256:51a2c62057461aaf7152b4d611168f93a9fc73068f8ded2790f29fe2b5366d0c", size = 222843 } wheels = [ - { url = "https://files.pythonhosted.org/packages/b0/11/dadb85e2bd6b1f1ae56669c3e1f0410797f9605d752d68fb47b77f525b31/rich-13.8.1-py3-none-any.whl", hash = "sha256:1760a3c0848469b97b558fc61c85233e3dafb69c7a071b4d60c38099d3cd4c06", size = 241608 }, + { url = "https://files.pythonhosted.org/packages/67/91/5474b84e505a6ccc295b2d322d90ff6aa0746745717839ee0c5fb4fdcceb/rich-13.9.2-py3-none-any.whl", hash = "sha256:8c82a3d3f8dcfe9e734771313e606b39d8247bb6b826e196f4914b333b743cf1", size = 242117 }, ] [[package]]