fix: fix KeyError: 'Title'

This commit is contained in:
acgnhik 2022-07-14 11:03:23 +08:00
parent 18cd928369
commit 1370cecea8

View File

@ -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