Sha256: 58ad66ed3a58cb560a2d036521d47e2fcf2169ad36fd7e1fee95d2ef1a48d72e

Contents?: true

Size: 639 Bytes

Versions: 16

Compression:

Stored size: 639 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs/videos/unsupported/fixes/supported_codec'

module Ehbrs
  module Videos
    module Unsupported
      module Checks
        class CodecExtraUnsupported
          common_constructor :codec, :extra

          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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ehbrs-tools-0.16.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.16.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.15.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.14.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.14.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.13.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.13.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.12.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.11.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.10.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.9.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.7.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.6.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.5.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.3.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb
ehbrs-tools-0.3.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb