Skip to content

Commit

Permalink
Use the 1st frame when it is duplicated to avoid raising errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioperrella committed Sep 14, 2020
1 parent 45f713f commit 8ed2281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/id3tag/tag.rb
Expand Up @@ -38,7 +38,7 @@ def content_of_first_frame_with_language(name, lang)

def first_frame_by_id(*ids)
first_existing_id = ids.find { |id| frame_ids.include?(id) }
first_existing_id && get_frame(first_existing_id)
first_existing_id && get_frames(first_existing_id).first
end

def all_frames_by_id(*ids)
Expand Down

0 comments on commit 8ed2281

Please sign in to comment.