Skip to content

Commit

Permalink
bugfix: fix payload so that it works with public page
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh authored and cdxker committed Dec 19, 2024
1 parent 88875a8 commit dcb4874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/bin/video-worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ async fn video_worker(
tag_set: None,
metadata: Some(json!({
"heading": video.snippet.title.clone(),
"title": video.snippet.title.clone(),
"url": format!("https://www.youtube.com/watch?v={}", video.id.video_id),
"hierarchy": video.snippet.title.clone(),
"description": video.snippet.description.clone()
})),
Expand Down Expand Up @@ -338,15 +340,13 @@ async fn get_channel_video_ids(
.json::<PlaylistResponse>()
.await?;

print!(".");
videos.extend(response.items.into_iter());

match response.next_page_token {
Some(token) => page_token = Some(token),
None => break,
}
}
println!();

Ok(videos)
}
Expand Down

0 comments on commit dcb4874

Please sign in to comment.