fix: fix KeyError: 'Title'
This commit is contained in:
parent
18cd928369
commit
1370cecea8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user