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 = {
|
version CINERA_APP_VERSION = {
|
||||||
.Major = 0,
|
.Major = 0,
|
||||||
.Minor = 5,
|
.Minor = 5,
|
||||||
.Patch = 18
|
.Patch = 19
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c
|
// 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;
|
HMML_Annotation *Anno = HMML.annotations + AnnotationIndex;
|
||||||
|
|
||||||
|
if(Config.Edition != EDITION_SINGLE)
|
||||||
|
{
|
||||||
CopyStringToBuffer(&CollationBuffers->Search, "\"%d\": \"", TimecodeToSeconds(Anno->time));
|
CopyStringToBuffer(&CollationBuffers->Search, "\"%d\": \"", TimecodeToSeconds(Anno->time));
|
||||||
CopyStringToBufferJSONSafe(&CollationBuffers->Search, Anno->text);
|
CopyStringToBufferJSONSafe(&CollationBuffers->Search, Anno->text);
|
||||||
CopyStringToBuffer(&CollationBuffers->Search, "\"\n");
|
CopyStringToBuffer(&CollationBuffers->Search, "\"\n");
|
||||||
|
}
|
||||||
|
|
||||||
categories LocalTopics = { 0 };
|
categories LocalTopics = { 0 };
|
||||||
categories LocalMedia = { 0 };
|
categories LocalMedia = { 0 };
|
||||||
|
@ -2933,7 +2936,11 @@ AppendedIdentifier:
|
||||||
DeclaimBuffer(&AnnotationHeader);
|
DeclaimBuffer(&AnnotationHeader);
|
||||||
DeclaimBuffer(&Annotation);
|
DeclaimBuffer(&Annotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Config.Edition != EDITION_SINGLE)
|
||||||
|
{
|
||||||
CopyStringToBuffer(&CollationBuffers->Search, "---\n");
|
CopyStringToBuffer(&CollationBuffers->Search, "---\n");
|
||||||
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
printf("\n\n --- End of Annotations Loop ---\n\n\n\n");
|
printf("\n\n --- End of Annotations Loop ---\n\n\n\n");
|
||||||
|
|
Loading…
Reference in New Issue