Skip to content

Commit

Permalink
fix: manages empty transcription json files
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaburg1 committed Mar 8, 2024
1 parent 0f5b5a6 commit 3c4e877
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/data_management.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ parse_transcript_json <- function(
"Please remove it and try transcription again.")
}

if (length(transcript_list[[i]]$segments) == 0) {
# skip this file, there was nothing to transcribe
next
}

transcript_data <- transcript_list[[i]]$segments |>
bind_rows() |>
# Select only the columns to import
Expand Down

0 comments on commit 3c4e877

Please # to comment.