mirror of
https://codeberg.org/YGGverse/ytd.git
synced 2026-04-08 21:05:30 +00:00
rename var
This commit is contained in:
parent
83b5998b76
commit
321b2bcde1
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ async fn main() {
|
|||
let update = config.update.map(Duration::from_secs);
|
||||
let sleep = config.sleep.map(Duration::from_secs);
|
||||
let mut database = Database::new(&config.database).unwrap();
|
||||
let client = match config.provider {
|
||||
let provider = match config.provider {
|
||||
config::Provider::Youtube => {
|
||||
debug!("Init Youtube provider");
|
||||
Provider::youtube()
|
||||
|
|
@ -55,7 +55,7 @@ async fn main() {
|
|||
info!("begin {} channels update...", config.channel.len());
|
||||
for (c, channel) in &config.channel {
|
||||
debug!("get `{c}` ({})...", channel.id);
|
||||
match client.videos(&channel.id).await {
|
||||
match provider.videos(&channel.id).await {
|
||||
Ok(items) => {
|
||||
debug!(
|
||||
"received {} items to handle, limit: {:?}...",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue