feat: Add timed IPTV playlist and EPG updates #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/iptv-update-scheduler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add background update scheduler for IPTV playlists and EPG data that continues running even when the app is closed.
Changes
Config (
crashfin-core/src/config.rs)IptvUpdateIntervalenum with presets (8h, 24h, 48h) and custom intervaliptv_update_intervalandiptv_last_updatefields to ConfigScheduler (
crashfin-xtream/src/scheduler.rs)UpdateSchedulerstruct with cancellation token supportIPC Methods (
src/main.rs)setIptvUpdateInterval- Configure update frequency (8h/24h/48h/custom)getIptvUpdateInterval- Get current interval settingstriggerIptvUpdate- Manually trigger an immediate updategetIptvUpdateStatus- Check if scheduler is runningUI (
ui/js/components/settings-panel.js)Background Updates
The scheduler uses
tokio_util::sync::CancellationTokento allow graceful shutdown and supports:Closes #XXX
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.