mirror of
https://codeberg.org/YGGverse/ytd.git
synced 2026-04-09 05:15:30 +00:00
debug provider instance initiated
This commit is contained in:
parent
22e3c301a2
commit
83b5998b76
1 changed files with 8 additions and 2 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -36,8 +36,14 @@ async fn main() {
|
|||
let sleep = config.sleep.map(Duration::from_secs);
|
||||
let mut database = Database::new(&config.database).unwrap();
|
||||
let client = match config.provider {
|
||||
config::Provider::Youtube => Provider::youtube(),
|
||||
config::Provider::Invidious(instance) => Provider::invidious(instance),
|
||||
config::Provider::Youtube => {
|
||||
debug!("Init Youtube provider");
|
||||
Provider::youtube()
|
||||
}
|
||||
config::Provider::Invidious(instance) => {
|
||||
debug!("Init Invidious ({instance:?}) provider");
|
||||
Provider::invidious(instance)
|
||||
}
|
||||
};
|
||||
let channel_item_id_regex = Regex::new(r"^[A-z0-9_-]{11}$").unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue