Skip to content
New issue

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

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

Already on GitHub? # to your account

docker 版本能配置定时更新的时间? #440

Closed
sztuxp opened this issue Oct 23, 2024 · 12 comments
Closed

docker 版本能配置定时更新的时间? #440

sztuxp opened this issue Oct 23, 2024 · 12 comments
Labels
enhancement New feature or request

Comments

@sztuxp
Copy link

sztuxp commented Oct 23, 2024

docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?

@Guovin Guovin added the enhancement New feature or request label Oct 23, 2024
@Guovin
Copy link
Owner

Guovin commented Oct 23, 2024

docker目前默认每日6点与18点自动执行,暂时无法自定义

@sztuxp
Copy link
Author

sztuxp commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

1 similar comment
@sztuxp
Copy link
Author

sztuxp commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

@Guovin
Copy link
Owner

Guovin commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

是的

chavan-arvind added a commit to chavan-arvind/TV that referenced this issue Oct 24, 2024
Fixes Guovin#440

Add configuration for scheduled updates in Docker version.

* **Dockerfile**
  - Add `UPDATE_CRON` environment variable to allow custom cron schedules.
  - Modify the `RUN` command to use the `UPDATE_CRON` variable for setting the cron jobs.

* **config/config.ini**
  - Add a new setting `update_cron` for specifying the cron schedule.

* **docs/tutorial.md**
  - Update the documentation to explain how to configure the update time or interval for the Docker version.

* **docs/tutorial_en.md**
  - Update the documentation to explain how to configure the update time or interval for the Docker version.
@dawnsummit
Copy link

docker目前默认每日6点与18点自动执行,暂时无法自定义

我试了一下,自动更新都没有正确执行。会提示8000端口被占用然后就结束了。

@Guovin
Copy link
Owner

Guovin commented Oct 30, 2024

docker目前默认每日6点与18点自动执行,暂时无法自定义

我试了一下,自动更新都没有正确执行。会提示8000端口被占用然后就结束了。

更新是否成功以文件结果为准,不能只看容器日志。

@BG5HGY
Copy link

BG5HGY commented Nov 26, 2024

docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?

没验证过,但猜测进Docker修改文件“/container/iptv/var/spool/cron/crontabs/root”并执行“/etc/init.d/cron restart”说不定可以,如有需求不妨试试。

@WongMinHo
Copy link

可以进入docker容器里面用命令行重新配置。

@Fengikjing
Copy link

potplayer无法使用
http://111.9.163.109:9901/tsfile/live/0001_1.m3u8$订阅源-1920x1080
有“$订阅源-1920x1080”这个就没办法打开。手动复制删除后可以打开
image

@Guovin
Copy link
Owner

Guovin commented Jan 3, 2025

potplayer无法使用 http://111.9.163.109:9901/tsfile/live/0001_1.m3u8$订阅源-1920x1080 有“$订阅源-1920x1080”这个就没办法打开。手动复制删除后可以打开 image

请不要询问无关非本问题的情况,该情况已经在配置项和已存在的问题讨论解答。

@389377616
Copy link

其实想要解决这个问题也很简单,在宿主机设置定时任务,任务命令就是重启在这个docker容器的命令,应为每次容器启动都会自动执行一次更新直播源,我就是通过这个方式控制这个服务按自己希望时间进行更新.

Guovin added a commit that referenced this issue Jan 21, 2025
@Guovin
Copy link
Owner

Guovin commented Jan 21, 2025

已支持定时任务时间环境变量,欢迎拉取镜像试测。

-e UPDATE_CRON1="0 22 * * *"
-e UPDATE_CRON2="0 10 * * *"

@Guovin Guovin mentioned this issue Jan 22, 2025
15 tasks
@Guovin Guovin closed this as completed Jan 22, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants