Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: 图源插件可重用 #249

Open
DGCK81LNN opened this issue Sep 18, 2024 · 3 comments
Open

Feature: 图源插件可重用 #249

DGCK81LNN opened this issue Sep 18, 2024 · 3 comments

Comments

@DGCK81LNN
Copy link

Sources

E621 (and E926), Local

Describe the problem related to the feature request

需用同一个图源插件连接不同图站/图库

Describe the solution you'd like

使图源插件可重用

Describe alternatives you've considered

No response

Additional context

No response

@Lipraty
Copy link
Member

Lipraty commented Sep 19, 2024

Local 在配置项中支持多个文件夹作为图源,你的具体需求是什么?

@DGCK81LNN
Copy link
Author

比如可以同时连接 e621 和 e926,我自己的 philomena 图源可以同时连接 Derpibooru、Ponybooru、Furbooru 并使用不同的图源标签(看起来本仓库内维护的图源插件似乎都没有支持重用,所以我不清楚是否可以以及怎样让我写的图源支持重用)

@Lipraty
Copy link
Member

Lipraty commented Sep 19, 2024

比如可以同时连接 e621 和 e926

e621 图源重用问题可以单独 pr 或者 issue

怎样让我写的图源支持重用

在支持重用上,需要几点:

  • 能管理图源副作用
  • 能够在多个插件的情况下不发生冲突

重用方法:

export const reusable = true

export function apply(ctx: Context) {

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants