From c0c3558473d63096d089a63c40504627dec6d2c1 Mon Sep 17 00:00:00 2001 From: Alex Baines Date: Tue, 11 May 2021 23:03:22 +0100 Subject: [PATCH] hmmlib2: remove stream_username / member --- hmmlib2/hmmlib.h | 6 +----- hmmlib2/utils/dump.c | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hmmlib2/hmmlib.h b/hmmlib2/hmmlib.h index cb1f09c..ac093d5 100644 --- a/hmmlib2/hmmlib.h +++ b/hmmlib2/hmmlib.h @@ -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 diff --git a/hmmlib2/utils/dump.c b/hmmlib2/utils/dump.c index f45ba6e..cc3b18a 100644 --- a/hmmlib2/utils/dump.c +++ b/hmmlib2/utils/dump.c @@ -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);