support only_e

This commit is contained in:
j 2021-10-29 14:45:21 +01:00
commit b801c52847
2 changed files with 18 additions and 3 deletions

View file

@ -352,7 +352,14 @@ function loadAnnotations(config) {
return
}
annotation.title = clip.title
annotations.push(annotation)
if (config.only_e) {
if (annotation.value.slice(0, 2) == 'E:') {
annotation.value = annotation.value.slice(2).trim()
annotations.push(annotation)
}
} else {
annotations.push(annotation)
}
})
})
loadClips(annotations).then(annotations => {