cinera.c: Only build search if != Single Edition
This commit is contained in:
parent
c1d6c87746
commit
7d88e3c17d
|
@ -14,7 +14,7 @@ typedef struct
|
|||
version CINERA_APP_VERSION = {
|
||||
.Major = 0,
|
||||
.Minor = 5,
|
||||
.Patch = 18
|
||||
.Patch = 19
|
||||
};
|
||||
|
||||
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c
|
||||
|
@ -2448,9 +2448,12 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen
|
|||
|
||||
HMML_Annotation *Anno = HMML.annotations + AnnotationIndex;
|
||||
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "\"%d\": \"", TimecodeToSeconds(Anno->time));
|
||||
CopyStringToBufferJSONSafe(&CollationBuffers->Search, Anno->text);
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "\"\n");
|
||||
if(Config.Edition != EDITION_SINGLE)
|
||||
{
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "\"%d\": \"", TimecodeToSeconds(Anno->time));
|
||||
CopyStringToBufferJSONSafe(&CollationBuffers->Search, Anno->text);
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "\"\n");
|
||||
}
|
||||
|
||||
categories LocalTopics = { 0 };
|
||||
categories LocalMedia = { 0 };
|
||||
|
@ -2933,7 +2936,11 @@ AppendedIdentifier:
|
|||
DeclaimBuffer(&AnnotationHeader);
|
||||
DeclaimBuffer(&Annotation);
|
||||
}
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "---\n");
|
||||
|
||||
if(Config.Edition != EDITION_SINGLE)
|
||||
{
|
||||
CopyStringToBuffer(&CollationBuffers->Search, "---\n");
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
printf("\n\n --- End of Annotations Loop ---\n\n\n\n");
|
||||
|
|
Loading…
Reference in New Issue