kmoe-manga-downloader 1.2.5__tar.gz → 1.2.6__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.
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/PKG-INFO +1 -1
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/_version.py +3 -3
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/DirectDownloader.py +1 -1
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/ReferViaDownloader.py +12 -2
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/PKG-INFO +1 -1
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/workflows/release-package.yml +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/workflows/unit-test.yml +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.gitignore +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/LICENSE +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/README.md +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/assets/kmdr-demo.gif +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/assets/kmdr-log-demo.gif +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/mirror/mirrors.json +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/pyproject.toml +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/setup.cfg +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/bases.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/console.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/constants.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/context.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/defaults.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/error.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/protocol.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/registry.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/session.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/structure.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/core/utils.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/main.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/authenticator/CookieAuthenticator.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/authenticator/LoginAuthenticator.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/authenticator/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/authenticator/utils.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/BaseUrlUpdator.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/ConfigClearer.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/ConfigUnsetter.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/OptionLister.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/OptionSetter.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/option_validate.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/download_utils.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/misc.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/BookUrlLister.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/FollowedBookLister.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/utils.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/picker/ArgsFilterPicker.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/picker/DefaultVolPicker.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/picker/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/picker/utils.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/SOURCES.txt +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/dependency_links.txt +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/entry_points.txt +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/requires.txt +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmoe_manga_downloader.egg-info/top_level.txt +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/__init__.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_async_retry_decorator.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_kmdr_config_option.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_kmdr_download.py +0 -0
- {kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_utils_resolve_volme.py +0 -0
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (1, 2,
|
|
31
|
+
__version__ = version = '1.2.6'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 2, 6)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'ge80e6fa7b'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from functools import partial
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
+
import aiohttp
|
|
4
5
|
from async_lru import alru_cache
|
|
5
6
|
|
|
6
7
|
from kmdr.core import Downloader, VolInfo, DOWNLOADER, BookInfo
|
|
@@ -44,7 +45,7 @@ class ReferViaDownloader(Downloader):
|
|
|
44
45
|
API_ROUTE.GETDOWNURL.format(
|
|
45
46
|
book_id=book_id,
|
|
46
47
|
volume_id=volume_id,
|
|
47
|
-
is_vip=self._profile.is_vip if
|
|
48
|
+
is_vip=self._profile.is_vip if self._use_vip else 0
|
|
48
49
|
)
|
|
49
50
|
) as response:
|
|
50
51
|
response.raise_for_status()
|
|
@@ -52,6 +53,15 @@ class ReferViaDownloader(Downloader):
|
|
|
52
53
|
data = json.loads(data)
|
|
53
54
|
debug("获取下载链接响应数据:", data)
|
|
54
55
|
if (code := data.get('code')) != 200:
|
|
55
|
-
|
|
56
|
+
|
|
57
|
+
if code in {401, 403, 404}:
|
|
58
|
+
raise ResponseError("无法获取下载链接" + data.get('msg', 'Unknown error'), code)
|
|
59
|
+
|
|
60
|
+
raise aiohttp.ClientResponseError(
|
|
61
|
+
response.request_info,
|
|
62
|
+
history=response.history,
|
|
63
|
+
status=code,
|
|
64
|
+
message=data.get('msg', 'Unknown error')
|
|
65
|
+
)
|
|
56
66
|
|
|
57
67
|
return data['url']
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/ISSUE_TEMPLATE/bug_report.yml
RENAMED
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/.github/workflows/release-package.yml
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/authenticator/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/configurer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/downloader/misc.py
RENAMED
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/BookUrlLister.py
RENAMED
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/lister/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/src/kmdr/module/picker/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_async_retry_decorator.py
RENAMED
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_kmdr_config_option.py
RENAMED
|
File without changes
|
|
File without changes
|
{kmoe_manga_downloader-1.2.5 → kmoe_manga_downloader-1.2.6}/tests/test_utils_resolve_volme.py
RENAMED
|
File without changes
|