1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Async Stalker/MAG portal API client.
//!
//! This crate implements the Stalker middleware portal protocol, a legacy
//! query-string-based API used by MAG set-top-box portals. It handles
//! portal discovery, MAC-based authentication, paginated data fetching,
//! and stream URL resolution.
//!
//! # Usage
//!
//! ```no_run
//! use crispy_stalker::{StalkerClient, StalkerCredentials};
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let creds = StalkerCredentials {
//! base_url: "http://portal.example.com".into(),
//! mac_address: "00:1A:79:AB:CD:EF".into(),
//! timezone: None,
//! };
//!
//! let mut client = StalkerClient::new(creds, false)?;
//! client.authenticate().await?;
//!
//! let genres = client.get_genres().await?;
//! for genre in &genres {
//! let channels = client.get_all_channels(&genre.id, None).await?;
//! println!("{}: {} channels", genre.title, channels.len());
//! }
//! # Ok(())
//! # }
//! ```
pub use BackoffConfig;
pub use StalkerClient;
pub use StalkerError;
pub use StalkerSession;
pub use ;
pub use resolve_stream_url;