Skip to main content

Crate crispy_catchup

Crate crispy_catchup 

Source
Expand description

Catchup/timeshift URL template system for IPTV channels.

Translated from Kodi pvr.iptvsimple’s CatchupController and Channel catchup logic. Provides:

  • Mode configuration — 8 catchup modes with automatic source generation
  • Template engine — variable substitution for time-based URL placeholders
  • Provider parsing — Flussonic and Xtream Codes URL regex extraction
  • Window validation — catchup availability checking
  • EPG-tag processors — convenience wrappers for programme/channel playback

Re-exports§

pub use error::CatchupError;
pub use mode::CatchupConfig;
pub use mode::CatchupMode;
pub use mode::IGNORE_CATCHUP_DAYS;
pub use mode::configure_catchup;
pub use template::format_catchup_url;
pub use template::format_catchup_url_with_granularity;
pub use template::format_now_only;
pub use template::is_within_catchup_window;

Modules§

error
Catchup error types.
mode
Catchup mode enum and configuration.
provider
Provider-specific URL regex parsing for Flussonic and Xtream Codes.
template
Template variable substitution engine for catchup URLs.

Functions§

process_channel_for_live
Build a live-stream URL with catchup “now” placeholders substituted.
process_programme_for_timeshift
Build a catchup URL for time-shifted playback of a specific EPG programme.
process_programme_for_vod
Build a catchup URL for VOD playback of an EPG programme.