Skip to content

[Help] #460

Closed
Closed

Description

@1275716569

注意事项

  • 提ISSUE前,请确认你已经在GitHub Issues和Discussions里搜索过类似的问题,并且没找到想要的答案。

你使用的是哪种方式?

jmcomic命令行

你的目的?

使用option下载漫画时不缺失

你遇到的困难?

如果在“请求重试次数”里面使用默认值5,会出现严重的内容缺失,如果将值改为100,则程序好像会额外运行非常久的时间,而使用Github Action下载时更加的快速,内容也不会出现缺失,使用默认的命令行下载时也不会出现此问题

额外信息(代码/option配置/截图等)

client:
cache: null
domain: []
impl: api
postman:
meta_data:
headers: null
impersonate: chrome
proxies: {}
type: curl_cffi
retry_times: 20
dir_rule:
base_dir: D:\漫画
rule: Bd_Aname_Pindex
download:
cache: true
image:
decode: true
suffix: .jpg
threading:
image: 49
photo: 12
log: true
plugins:
valid: log
version: '2.1'

Activity

  1. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner

    贴一下你运行程序的日志

  2. 1275716569 commented on Jul 28, 2025

    @1275716569
    Author

    贴一下你运行程序的日志

    [2025-07-28 09:51:04] [Thread-395 (download_by_image_detail)]:【req.error】Failed to perform, curl: (35) Recv failure: Connection was reset. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
    [2025-07-28 09:51:04] [Thread-395 (download_by_image_detail)]:【req.retry】次数: [17/100], 域名: [2 of ['www.cdnaspa.vip', 'www.cdnaspa.club', 'www.cdnplaystation6.vip', 'www.cdnplaystation6.cc']], 路径: [https://cdn-msp3.jmapiproxy2.cc/media/photos/1160576/00007.webp], 参数: [{'headers': {'Accept-Encoding': 'gzip, deflate', 'user-agent': 'Mozilla/5.0 (Linux; Android 9; V1938CT Build/PQ3A.190705.11211812; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Safari/537.36', 'Accept': 'image/avif,image/webp,image/apng,image/svg+xml,image/,/;q=0.8', 'X-Requested-With': 'com.jiaohua_browser', 'Referer': 'https://www.cdnplaystation6.org', 'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7'}}]
    [2025-07-28 09:51:04] [Thread-395 (download_by_image_detail)]:【req.error】Failed to perform, curl: (35) Recv failure: Connection was reset. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
    [2025-07-28 09:51:04] [Thread-395 (download_by_image_detail)]:【req.retry】次数: [18/100], 域名: [2 of ['www.cdnaspa.vip', 'www.cdnaspa.club', 'www.cdnplaystation6.vip', 'www.cdnplaystation6.cc']], 路径: [https://cdn-msp3.jmapiproxy2.cc/media/photos/1160576/00007.webp], 参数: [{'headers': {'Accept-Encoding': 'gzip, deflate', 'user-agent': 'Mozilla/5.0 (Linux; Android 9; V1938CT Build/PQ3A.190705.11211812; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Safari/537.36', 'Accept': 'image/avif,image/webp,image/apng,image/svg+xml,image/
    ,/;q=0.8', 'X-Requested-With': 'com.jiaohua_browser', 'Referer': 'https://www.cdnplaystation6.org', 'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7'}}]

    贴不下太多

  3. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner

    这个是下载报错信息 【req.error】Failed to perform, curl: (35) Recv failure: Connection was reset. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
    说明你所在的网络环境访问不了禁漫,请求被墙了,需要使用代理工具。GitHub Actions是使用GitHub服务器下载,所以没有网络问题。

  4. 1275716569 commented on Jul 28, 2025

    @1275716569
    Author

    感谢回答,额,代理工具解决方法是改option还是挂个梯子这样的?
    但是在使用100次请求尝试时,看了一眼结果,东西基本上就都可以下载完全了,但程序还在运行

  5. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner

    先挂梯子,再修改option的client.postman.meta_data.proxies配置
    不过你重试之后居然能成功,这说明不是所有域名都被墙了
    你也可以手动试一下哪些域名是没被墙的,把没被墙的域名设置为下载域名,这样应该也行,这样就不用挂梯子了

  6. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner
    cdn-msp.jmapiproxy1.cc
    cdn-msp.jmapiproxy2.cc
    cdn-msp2.jmapiproxy2.cc
    cdn-msp3.jmapiproxy2.cc
    cdn-msp.jmapinodeudzn.net
    cdn-msp3.jmapinodeudzn.net
    

    这些是jmcomic内置的API图片域名,你可以手动复制域名到浏览器访问,如果能访问通,就是没被墙。
    把没被墙的域名设置为下载域名,需要改代码,你可以选择写python代码运行:

    from jmcomic import JmModuleConfig, str_to_list
    
    JmModuleConfig.DOMAIN_IMAGE_LIST = str_to_list('''
    cdn-msp.jmapinodeudzn.net
    cdn-msp3.jmapinodeudzn.net
    ''')

    或者改你本地pip下载的jmcomic的jm_config.py:120行的源代码

  7. 1275716569 commented on Jul 28, 2025

    @1275716569
    Author

    感觉还是使用Github Action方便,相当的便捷快速,但是主要是文件下载后得储存进移动存储设备,从github上下下来再解压好几次(是我方法不对吗,每次都得解压2-3次),还得用zip存进存储设备后再解压,就显得麻烦了。后续流程也很慢。
    那么如果用默认的命令行下载,却好像不会有以上问题,不过存储路径,文件下载命名方式不可改,有没有办法使用默认的命令行下载却可以对以上进行修改的方法?

  8. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner

    文件下载命名方式能改,自行参考option文档:https://jmcomic.readthedocs.io/zh-cn/latest/option_file_syntax/#

  9. 1275716569 commented on Jul 28, 2025

    @1275716569
    Author

    还是用github吧,本地确实不太行,感谢作者

  10. 1275716569 commented on Jul 28, 2025

    @1275716569
    Author

    有没有必要出一个配置github的下载的教程呢

  11. hect0x7 commented on Jul 28, 2025

    @hect0x7
    Owner

    有没有必要出一个配置github的下载的教程呢

    配置啥?

  12. Repository owner locked and limited conversation to collaborators on Jul 28, 2025
  13. converted this issue into a discussion #461 on Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions