From 1370cecea8ef3e516bfe6872b66ae1141c64f300 Mon Sep 17 00:00:00 2001 From: acgnhik Date: Thu, 14 Jul 2022 11:03:23 +0800 Subject: [PATCH] fix: fix `KeyError: 'Title'` --- src/blrec/flv/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blrec/flv/helpers.py b/src/blrec/flv/helpers.py index 1e011c4..26cdbcc 100644 --- a/src/blrec/flv/helpers.py +++ b/src/blrec/flv/helpers.py @@ -16,7 +16,7 @@ def get_metadata(path: str) -> Dict[str, Any]: with open(path, mode='rb') as file: reader = FlvReader(file) reader.read_header() - if (tag := find_metadata_tag(reversed(list(read_tags(reader, 5))))): + if (tag := find_metadata_tag(list(read_tags(reader, 5)))): return parse_metadata(tag) raise EOFError