Commit ad9d64b3 authored by Matt Mascarenhas's avatar Matt Mascarenhas

hmmlconv.c: Convert to new [video] format

hmml_to_html.c: Remove special-casing of handmade_hero quotes [#20]
parent 0aa204c0
......@@ -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;
......
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