Skip to content

Commit

Permalink
fix(export-data): title should be appended by subclip
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Nov 17, 2023
1 parent 65e19ff commit 997f92d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/vidispine/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ func (s *VidispineService) GetDataForExport(itemVXID string, languagesToExport [
// Check for sequence
isSequence := meta.Get(vscommon.FieldSequenceSize, "0") != "0"

title := meta.Get(vscommon.FieldSubclipToExport, meta.Get(vscommon.FieldTitle, ""))
title := meta.Get(vscommon.FieldTitle, "")
subclipTitle := meta.Get(vscommon.FieldSubclipToExport, "")
if subclipTitle != "" {
title += " - " + subclipTitle
}

// clean up the title
safeTitle := strings.ReplaceAll(title, " ", "_")
Expand Down

0 comments on commit 997f92d

Please sign in to comment.