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

[BUG] 修改 extract_video_info.py 中 title,desc模板不生效 #207

Closed
lateautumn2 opened this issue Mar 18, 2025 · 3 comments · Fixed by #241
Closed

[BUG] 修改 extract_video_info.py 中 title,desc模板不生效 #207

lateautumn2 opened this issue Mar 18, 2025 · 3 comments · Fixed by #241
Assignees
Labels

Comments

@lateautumn2
Copy link

Describe the bug

修改 extract_video_info.py 中 title,desc模板不生效。
已经重新运行./scan.sh和./upload.sh

How To Reproduce

Steps to reproduce the behavior:

  1. 修改 extract_video_info.py 中generate_title函数和generate_desc函数
  2. 重新运行./scan.sh和./upload.sh
  3. 添加一个新的直播间录制,模板还是默认模板

Expected behavior

生成我的新模板.yaml文件
new_title = "【弹幕录播】" + artist + "-" + date + "-" + title
new_desc = f"【弹幕录播】({artist}直播回放)直播间地址:{source_link}\n请关注{artist},谢谢喵!

Image

Screenshots

Image

Image

Environment Information

  • docker 部署
  • Operating System: debian 12
  • Python Version: [e.g. Python 3.10.]

Additional context

(Add any other context about the problem here.)

@timerring timerring self-assigned this Mar 18, 2025
@timerring
Copy link
Owner

确实考虑不周了,docker 的守护进程我设置的 upload,所以重启还是会优先执行原来的 script,我最近会重构 docker image,届时所有的配置包括文件都会挂载出来,自定义就更灵活了。目前如果确实需要自定义上传模版的话,直接 clone 项目运行吧,流程基本一样。

@lateautumn2
Copy link
Author

确实考虑不周了,docker 的守护进程我设置的 upload,所以重启还是会优先执行原来的 script,我最近会重构 docker image,届时所有的配置包括文件都会挂载出来,自定义就更灵活了。目前如果确实需要自定义上传模版的话,直接 clone 项目运行吧,流程基本一样。

辛苦,我目前是把Videos挂载了出来,但是好像有个记录文件列表的txt没法弄出来;目前我先restart了,麻烦一点也还是能用

@timerring
Copy link
Owner

已经支持在 config 中直接定义标题和简介。

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

Successfully merging a pull request may close this issue.

2 participants