hmmlconv.c: Convert to new [video] format

hmml_to_html.c: Remove special-casing of handmade_hero quotes [#20]
master
Matt Mascarenhas 5 years ago
parent 0aa204c042
commit ad9d64b31c
  1. 6
      hmml_to_html/hmml_to_html.c
  2. 2
      hmmlconv/hmmlconv.c

@ -208,7 +208,7 @@ CopyStringToBuffer(buffer *Dest, char *Format, ...)
{
fprintf(stderr, "CopyStringToBuffer: %s cannot accommodate %d-character string:\n"
"\n"
"%.*s\n", Dest->ID, Length, Length, Format);
"%s\n", Dest->ID, Length, Format);
__asm__("int3");
}
}
@ -765,10 +765,6 @@ BuildQuote(quote_info *Info, char *Speaker, int ID)
// Also notable that there are different paths for different projects
char *QuoteDir = "/home/matt/git/GitHub/insofaras/25fc16d58a297a486334";
if(!StringsDiffer(Speaker, "handmade_hero"))
{
QuoteDir = "/home/matt/git/GitHub/Chronister/01e754a09fd84c839ad7";
}
char Path[255] = {0};
sprintf(Path, "%s/#%s", QuoteDir, Speaker);

@ -450,7 +450,7 @@ int ProcessFile(char *InFileName, FILE *InFile, FILE *OutFile)
}
else if(strncmp(LinePtr, "markers:", 8) == 0)
{
fprintf(OutFile, "[video member=cmuratori project=hero twitch_username=handmade_hero title=\"%s\" platform=youtube id=%s annotator=Miblo]\n", Title, VideoID);
fprintf(OutFile, "[video member=cmuratori stream_platform=twitch stream_username=handmade_hero project=hero title=\"%s\" vod_platform=youtube id=%s annotator=Miblo]\n", Title, VideoID);
State = STATE_MARKERS;
}
} break;

Loading…
Cancel
Save