pub fn generate_xtream_codes_source(
url: &str,
) -> Result<(String, bool), CatchupError>Expand description
Generate an Xtream Codes catchup source URL from a stream URL.
Returns (catchup_source, is_ts_stream).
Translated from Channel::GenerateXtreamCodesCatchupSource() in Channel.cpp.
ยงStream URL patterns
stream: http://list.tv:8080/my@account.xc/my_password/1477
catchup: http://list.tv:8080/timeshift/my@account.xc/my_password/{duration:60}/{Y}-{m}-{d}:{H}-{M}/1477.ts
stream: http://list.tv:8080/live/my@account.xc/my_password/1477.m3u8
catchup: http://list.tv:8080/timeshift/my@account.xc/my_password/{duration:60}/{Y}-{m}-{d}:{H}-{M}/1477.m3u8