hmmlib2: remove stream_username / member

This commit is contained in:
Alex Baines 2021-05-11 23:03:22 +01:00
parent 3f47e62a7e
commit c0c3558473
2 changed files with 2 additions and 6 deletions

View File

@ -16,9 +16,7 @@ typedef struct {
} HMML_VideoCustomMetaData;
typedef struct {
char* member;
char* stream_platform;
char* stream_username;
char* project;
char* title;
char* vod_platform;
@ -697,9 +695,7 @@ static void _hmml_parse_video(struct _hmml_parser* p)
struct _hmml_str str;
char** dest;
} str_attrs[] = {
{ HSTR("member") , &p->out.metadata.member },
{ HSTR("stream_platform"), &p->out.metadata.stream_platform },
{ HSTR("stream_username"), &p->out.metadata.stream_username },
{ HSTR("project") , &p->out.metadata.project },
{ HSTR("title") , &p->out.metadata.title },
{ HSTR("vod_platform") , &p->out.metadata.vod_platform },
@ -797,7 +793,7 @@ void hmml_free(HMML_Output* out)
}
const struct HMML_Version hmml_version = {
2, 0, 3
2, 0, 4
};
#undef HSTX

View File

@ -33,7 +33,7 @@ void hmml_dump(HMML_Output* hmml, bool extra)
if(extra) {
puts("Metadata:");
static const char* meta[] = { "member", "stream_platform", "stream_username", "project", "title", "vod_platform", "id", "output", "template", "medium" };
static const char* meta[] = { "stream_platform", "project", "title", "vod_platform", "id", "output", "template", "medium" };
for(size_t i = 0; i < countof(meta); ++i) {
const char* value = ((char**)&hmml->metadata)[i];
printf(" %s = %s\n", meta[i], value);