Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/backend/src/ai/youtube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ pub fn fetch_transcript(

loop {
match reader.read_event_into(&mut buf) {
Ok(Event::Start(ref e)) => {
if e.name().as_ref() == b"text" {
Ok(Event::Start(ref e))
if e.name().as_ref() == b"text" => {
in_text = true;
// Parse start and duration attributes
for attr in e.attributes().flatten() {
Expand All @@ -185,7 +185,6 @@ pub fn fetch_transcript(
}
}
}
}
Ok(Event::Text(e)) if in_text => {
let text = e.unescape().unwrap().into_owned();
current_text = text.clone();
Expand Down
Loading