Sha256: c0b6bdc2c1b35273af3c2b27b4e4bdd332e59f7fab7b92de7caf83f5bc807c87
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require 'yt/video_audit/base' module Yt module VideoAudit # Count how many subject videos have an end screens # with a subscribe link. class SubscribeEndScreen < Base def title 'Subscribe End Screens' end def description 'The number of videos with any link to subscribe in its end screens' end private def valid?(video) Yt::Annotations.for(video.id).any? do |annotation| annotation.instance_of?(Yt::Annotations::EndScreen) && annotation.link && annotation.link[:type] == :subscribe end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yt-audit-0.5.2 | lib/yt/video_audit/subscribe_end_screen.rb |