Fix issues in Parsing ID3 Metadata in Elixir

This commit is contained in:
Shadowfacts 2021-11-17 13:11:08 -05:00
parent 5849412610
commit 0cfe1ef91b
1 changed files with 2 additions and 1 deletions

View File

@ -238,6 +238,7 @@ def parse_frames(
_encryption::size(1),
_unsynchronized::size(1),
_has_data_length_indicator::size(1),
_unused::size(1),
rest::binary
>>,
tag_length_remaining,
@ -411,7 +412,7 @@ There are also the many, many frames which we have not specifically handled. Eve
```elixir
def decode_frame(id, frame_size, rest) do
cond do
Regex.match?(~r/^T[0-9A-Z]$/, id) ->
Regex.match?(~r/^T[0-9A-Z]+$/, id) ->
decode_text_frame(id, frame_size, rest)
id in @declared_frame_ids ->