youtube_transcript/
config.rs1use once_cell::sync::Lazy;
2pub struct HTMLParserConfig {
3 pub from: &'static str,
4 pub to: &'static str,
5}
6impl Default for HTMLParserConfig {
7 fn default() -> Self {
8 Self {
9 from: "playerCaptionsTracklistRenderer\":",
10 to: "},\"videoDetails\"",
11 }
12 }
13}
14pub struct Config {
16 pub(crate) parser: HTMLParserConfig,
17}
18impl Default for Config {
19 fn default() -> Self {
20 Self {
21 parser: HTMLParserConfig::default(),
22 }
23 }
24}
25pub static CONFIG_VAL: Lazy<Config> = Lazy::new(|| Config::default());