Commit 7d88e3c1 authored by Matt Mascarenhas's avatar Matt Mascarenhas

cinera.c: Only build search if != Single Edition

parent c1d6c877
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment