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

添加MySQL超时参数、本地文件缓存模块 #27

Merged
merged 8 commits into from
Nov 12, 2022

Conversation

jin38324
Copy link
Contributor

添加MySQL超时参数
之前运行一段时间后卡住的问题还是存在,但是添加了这个参数之后,目前没有什么问题。虽然我也不知道为什么😅

jin38324 and others added 8 commits November 11, 2022 10:30
	modified:   Dockerfile
	modified:   app/api/__init__.py  启动定时任务,删除缓存的视频
	modified:   app/api/a4gtv/tasks.py 增加定时任务,删除缓存的视频
	modified:   app/api/a4gtv/utile.py 增加本地文件处理模块,缓存视频到本地
	modified:   app/api/v2/endpoints/sgtv.py  增加本地文件处理模块,缓存视频到本地
	modified:   app/assets/config.ini    增加配置提示,数据库不配置mysql会使用本地缓存
	modified:   app/conf/config.py       增加配置参数datadir,用于指定缓存文件地址
	new file:   app/db/localfile.py       增加本地文件处理模块
@jin38324 jin38324 changed the title 添加MySQL超时参数 添加MySQL超时参数、本地文件缓存模块 Nov 12, 2022
@jin38324
Copy link
Contributor Author

增加本地文件缓存模块

modified: Dockerfile
执行apt-get导致镜像体积非常大,使用中发现并不需要跑这一段脚本,如果这个过程是必要的,能否作为安装的额外前置条件,而不是包含在镜像本身
modified: app/api/init.py 启动定时任务,删除缓存的视频
modified: app/api/a4gtv/tasks.py 增加定时任务,删除缓存的视频
modified: app/api/a4gtv/utile.py 增加本地文件处理模块,缓存视频到本地
modified: app/api/v2/endpoints/sgtv.py 增加本地文件处理模块,缓存视频到本地
modified: app/assets/config.ini 增加配置提示,数据库不配置mysql会使用本地缓存
modified: app/conf/config.py 增加配置参数datadir,用于指定缓存文件地址
new file: app/db/localfile.py 增加本地文件处理模块

Copy link
Owner

@239144498 239144498 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新增支持对online接口的视频缓存到本地
增加数据库超时机制
做的很好,感谢对程序的完善,共同创造将使路走的更远

@239144498 239144498 merged commit cf3d944 into 239144498:main Nov 12, 2022
@239144498
Copy link
Owner

增加本地文件缓存模块

modified: Dockerfile 执行apt-get导致镜像体积非常大,使用中发现并不需要跑这一段脚本,如果这个过程是必要的,能否作为安装的额外前置条件,而不是包含在镜像本身 modified: app/api/init.py 启动定时任务,删除缓存的视频 modified: app/api/a4gtv/tasks.py 增加定时任务,删除缓存的视频 modified: app/api/a4gtv/utile.py 增加本地文件处理模块,缓存视频到本地 modified: app/api/v2/endpoints/sgtv.py 增加本地文件处理模块,缓存视频到本地 modified: app/assets/config.ini 增加配置提示,数据库不配置mysql会使用本地缓存 modified: app/conf/config.py 增加配置参数datadir,用于指定缓存文件地址 new file: app/db/localfile.py 增加本地文件处理模块

构建镜像时需要gcc环境支持,所以需要安装所需依赖,完整构建报错日志:https://github.com/239144498/Streaming-Media-Server-Pro/actions/runs/3451776563/jobs/5761233635

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

Successfully merging this pull request may close these issues.

None yet

2 participants