mirror of
https://codeberg.org/YGGverse/ytd.git
synced 2026-04-08 12:55:32 +00:00
debug active limits
This commit is contained in:
parent
588ad6b9dd
commit
1a9b46fbb5
1 changed files with 5 additions and 1 deletions
|
|
@ -42,7 +42,11 @@ async fn main() {
|
|||
match rp.query().channel_videos(&channel.id).await {
|
||||
Ok(result) => {
|
||||
let items = result.content.items;
|
||||
debug!("received {:?} items to handle...", items.len());
|
||||
debug!(
|
||||
"received {:?} items to handle, limit: {:?}...",
|
||||
items.len(),
|
||||
channel.items_limit
|
||||
);
|
||||
for (i, item) in items.into_iter().enumerate() {
|
||||
if channel.items_limit.is_some_and(|l| i > l) {
|
||||
debug!("items limit for channel `{c}` reached at {i}; break.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue