aboutsummaryrefslogtreecommitdiffstats
path: root/id3v2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'id3v2.erl')
-rw-r--r--id3v2.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/id3v2.erl b/id3v2.erl
index 297f8e9..196288a 100644
--- a/id3v2.erl
+++ b/id3v2.erl
@@ -168,7 +168,7 @@ parse_v2_frame(<<"TLEN">>, _Size, RawContent, _Flags, _Version) ->
{tlen, parse_length(RawContent)};
parse_v2_frame(<<"TLE">>, _Size, RawContent, _Flags, _Version) ->
{tlen, parse_length(RawContent)};
-parse_v2_frame(_Other, _, _, _, _Version) ->
+parse_v2_frame(_Other, _, _, _, _Version) ->
ignored.
parse_length(RawContent) ->
@@ -182,7 +182,7 @@ parse_length(RawContent) ->
finalize_v2_frames(Frames) ->
lists:reverse([F || F <- Frames, F /= ignored]).
-
+
@@ -252,16 +252,16 @@ extract_v2_string(Binary) ->
Str = string:strip(binary_to_list(Bin)),
list_to_binary(Str).
-decode_v2_string(<<0:8, Rest/binary>>) ->
+decode_v2_string(<<0:8, Rest/binary>>) ->
unicode:characters_to_binary(Rest, latin1);
-decode_v2_string(<<1:8, BOM:2/binary, Rest/binary>>) ->
+decode_v2_string(<<1:8, BOM:2/binary, Rest/binary>>) ->
{Encoding, _} = unicode:bom_to_encoding(BOM),
unicode:characters_to_binary(Rest, Encoding);
-decode_v2_string(<<2:8, Rest/binary>>) ->
+decode_v2_string(<<2:8, Rest/binary>>) ->
unicode:characters_to_binary(Rest, {utf16, big});
-decode_v2_string(<<3:8, Rest/binary>>) ->
+decode_v2_string(<<3:8, Rest/binary>>) ->
unicode:characters_to_binary(Rest, utf8);
-decode_v2_string(Other) ->
+decode_v2_string(Other) ->
unicode:characters_to_binary(Other, latin1).
@@ -433,7 +433,7 @@ read_files([FN|Rest], Total, Fail) ->
{ok, Props} ->
?DBG({?GV(trck, Props), ?GV(tit2, Props)}),
read_files(Rest, Total+1, Fail);
- not_found ->
+ not_found ->
read_files(Rest, Total+1, Fail+1)
end;
read_files([], Total, Fail) ->