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

请问这个程序有没有导出同步信息的接口? #8

Closed
AlynxZhou opened this issue Nov 20, 2017 · 2 comments
Closed

请问这个程序有没有导出同步信息的接口? #8

AlynxZhou opened this issue Nov 20, 2017 · 2 comments

Comments

@AlynxZhou
Copy link

比如我想把把同步的时间,同步状态导出到一个json文件里,方便网页前端调用,请问是否有现成的功能呢?或者需要修改哪些代码呢?

@ideal
Copy link
Owner

ideal commented Nov 23, 2017

你好,嗯有的,你可以把这个文件https://github.com/ideal/mirror/blob/master/config/plugin.ini 放到~/.config/mirror/下面,设置一下status_file指向的路径,当任务状态变化时,会写入到相应的json文件。

@AlynxZhou
Copy link
Author

吼啊,多谢学长,回去看看照着这个输出格式生成网页#(滑稽)

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

No branches or pull requests

2 participants