lib/yt/annotations/for.rb in yt-annotations-1.2.2 vs lib/yt/annotations/for.rb in yt-annotations-1.2.3

- old
+ new

@@ -49,10 +49,10 @@ def merge_highlights(annotations) highlights, others = annotations.partition{|a| a['type'] == 'highlight'} highlights.each do |highlight| match = others.find do |a| - a.fetch('segment', {})['spaceRelative'] == highlight['id'] + (a['segment'] || {})['spaceRelative'] == highlight['id'] end match.merge! highlight if match end others end