Class: Ehbrs::Videos::Unsupported::Checks::CodecExtraUnsupported

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb

Instance Method Summary collapse

Instance Method Details

#check(track) ⇒ Object



12
13
14
15
16
17
# File 'lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb', line 12

def check(track)
  return nil unless track.codec == codec
  return nil unless track.extra.downcase.include?(extra.downcase)

  "Unsupported extra \"#{extra}\" for codec \"#{codec}\" and track #{track}"
end

#fixObject



19
20
21
# File 'lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb', line 19

def fix
  ::Ehbrs::Videos::Unsupported::Fixes::SupportedCodec.new
end