From 0cfe1ef91bfc9881191db0b994dd0c9eb39f32df Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 17 Nov 2021 13:11:08 -0500 Subject: [PATCH] Fix issues in Parsing ID3 Metadata in Elixir --- site/posts/2020-12-07-parsing-id3-tags.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/posts/2020-12-07-parsing-id3-tags.md b/site/posts/2020-12-07-parsing-id3-tags.md index 58b6120..d345cf0 100644 --- a/site/posts/2020-12-07-parsing-id3-tags.md +++ b/site/posts/2020-12-07-parsing-id3-tags.md @@ -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 ->