lib/yt/annotations/card.rb in yt-annotations-1.1.0 vs lib/yt/annotations/card.rb in yt-annotations-1.2.0
- old
+ new
@@ -28,12 +28,10 @@
def to_link(data, json)
link_type = case json['card_type']
when 'collaborator' then :channel
when 'playlist' then :playlist
when 'video' then :video
- when 'merch' then :merch
- when 'fundraising' then :crowdfunding
- when 'associated' then :website
+ when 'simple' then :website
end
{url: json['url'], new_window: true, type: link_type}
end
end