Skip to content

Commit

Permalink
fix: restore correct speaker extraction Webex VTT
Browse files Browse the repository at this point in the history
The implementation of the parsing of MS Teams VTT broke the Webex one
  • Loading branch information
bakaburg1 committed May 22, 2024
1 parent cfef0b3 commit d189980
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/data_management.R
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,9 @@ import_transcript_from_file <- function(
# Normal VTT style
if (stringr::str_detect(cur_speaker, "^\\d+ ")) {
# the name is between double quotes
stringr::str_extract_all('(?<=").*(?=")') |>
unlist()
cur_speaker <- stringr::str_extract_all(
cur_speaker, '(?<=").*(?=")') |>
unlist()
} else if (stringr::str_detect(lines[.x + 1], "^<v ")) {
# MS Teams vtt style: <v speaker first name [second name]>
cur_speaker <- stringr::str_extract_all(
Expand Down

0 comments on commit d189980

Please # to comment.