-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
修改option_workflow_download.yml,你是想改GitHub Actions工作流的option文件,对工作流生效吗? |
Beta Was this translation helpful? Give feedback.
-
如果你不是想改工作流,而是有自己的python代码,那么下面是一个最简单的例子: from jmcomic import *
JmModuleConfig.PFIELD_ADVICE['myname'] = lambda photo: f'【{photo.id}】{photo.title}'
option = create_option_by_str('''
dir_rule:
rule: Bd / Pmyname
''')
option.download_album(123) |
Beta Was this translation helpful? Give feedback.
-
我看了下你的repo,你是要改GitHub Actions啊。GitHub Actions是运行usage/workflow_download.py这个文件,你把这行代码加到文件开头就行了 JmModuleConfig.PFIELD_ADVICE['myname'] = lambda photo: f'【{photo.id}】{photo.title}' 也就是下面这样 from jmcomic import *
from jmcomic.cl import JmcomicUI
# 就加这里
JmModuleConfig.PFIELD_ADVICE['myname'] = lambda photo: f'【{photo.id}】{photo.title}'
# 以下是原文件内容
# 下方填入你要下载的本子的id,一行一个,每行的首尾可以有空白字符
jm_albums = '''
... |
Beta Was this translation helpful? Give feedback.
-
你下载得到空文件是因为把jmcomic的源码改错了,jmcomic库直接报错了,你还是重新fork一下吧 |
Beta Was this translation helpful? Give feedback.
我看了下你的repo,你是要改GitHub Actions啊。GitHub Actions是运行usage/workflow_download.py这个文件,你把这行代码加到文件开头就行了
也就是下面这样