lib/yt/annotations/for.rb in yt-annotations-1.4.0 vs lib/yt/annotations/for.rb in yt-annotations-1.4.1

- old
+ new

@@ -44,10 +44,10 @@ annotations.map{|data| annotation_class(data).new data} end def json_to_annotations(json) annotations = json['elements'] - annotations.map{|data| Annotations::EndScreen.new data} + annotations.map{|data| Annotations::EndScreen.new data['endscreenElementRenderer']} end def annotation_class(data) case data['style'] when 'anchored', 'speech' then Annotations::Speech