Replies: 3 comments 1 reply
-
会被官网阻止,是啥意思?给个代码示例? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
很好的功能,我之前直接把下载过来的第一张图片当cover了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
v2.6.9,增加了下载本子封面的函数和下载插件 示例:使用代码下载本子123的封面 from jmcomic import *
op = JmOption.default()
client = op.new_jm_client()
client.download_album_cover(123, './cover.jpg')示例:使用插件,在下载本子时顺带下载封面 plugins:
before_album:
- plugin: download_cover # 下载封面插件
kwargs:
dir_rule:
base_dir: D:/a/b/c
rule: '{Aid}/cover-{Aid}.jpg' # 封面文件路径规则
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
尝试在程序里直接通过拼接url的形式获取本子封面,如果把这个过程添加到获取本子信息之前,会被官网阻止。获取信息之后才会成功显示。
Beta Was this translation helpful? Give feedback.
All reactions