Skip to content

关于自定义字段来文件夹格式修改的具体操作方法请教 #314

Answered by hect0x7
Arkyuyuzi asked this question in Q&A
Discussion options

You must be logged in to vote

我看了下你的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 = '''
...

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hect0x7
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #313 on December 12, 2024 17:13.