lib/yt/annotations/for.rb in yt-annotations-1.3.0 vs lib/yt/annotations/for.rb in yt-annotations-1.3.1
- old
+ new
@@ -4,10 +4,11 @@
require 'yt/annotations/label'
require 'yt/annotations/note'
require 'yt/annotations/speech'
require 'yt/annotations/spotlight'
require 'yt/annotations/title'
+require 'yt/annotations/pause'
module Yt
module Annotations
module For
def for(video_id)
@@ -37,9 +38,10 @@
when 'popup' then Annotations::Note
when 'title' then Annotations::Title
else case data['type']
when 'card' then Annotations::Card
when 'promotion' then Annotations::Featured
+ when 'pause' then Annotations::Pause
end
end
end
def exclude_drawers(annotations)