mirror of
https://codeberg.org/YGGverse/ytd.git
synced 2026-04-09 13:25: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 update = config.update.map(Duration::from_secs);
|
||||||
let sleep = config.sleep.map(Duration::from_secs);
|
let sleep = config.sleep.map(Duration::from_secs);
|
||||||
let mut database = Database::new(&config.database).unwrap();
|
let mut database = Database::new(&config.database).unwrap();
|
||||||
let client = match config.provider {
|
let provider = match config.provider {
|
||||||
config::Provider::Youtube => {
|
config::Provider::Youtube => {
|
||||||
debug!("Init Youtube provider");
|
debug!("Init Youtube provider");
|
||||||
Provider::youtube()
|
Provider::youtube()
|
||||||
|
|
@ -55,7 +55,7 @@ async fn main() {
|
||||||
info!("begin {} channels update...", config.channel.len());
|
info!("begin {} channels update...", config.channel.len());
|
||||||
for (c, channel) in &config.channel {
|
for (c, channel) in &config.channel {
|
||||||
debug!("get `{c}` ({})...", channel.id);
|
debug!("get `{c}` ({})...", channel.id);
|
||||||
match client.videos(&channel.id).await {
|
match provider.videos(&channel.id).await {
|
||||||
Ok(items) => {
|
Ok(items) => {
|
||||||
debug!(
|
debug!(
|
||||||
"received {} items to handle, limit: {:?}...",
|
"received {} items to handle, limit: {:?}...",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue