streamrip 0.1.0

Recursively mirror an HLS (.m3u8) or DASH (.mpd) stream for local hosting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let hls = std::env::var_os("CARGO_FEATURE_HLS").is_some();
    let dash = std::env::var_os("CARGO_FEATURE_DASH").is_some();

    if !hls && !dash {
        panic!(
            "\nerror: You must enable at least one feature: `hls` or `dash`.\n\
             Examples:\n\
               cargo build --features hls\n\
               cargo build --features dash\n\
               cargo build --features \"hls,dash\"\n"
        );
    }
}