Sha256: 8e3726ed6f5c7e2f1c74ffb522f117764d7bfe3e063ebe936fce92a731f0198a

Contents?: true

Size: 678 Bytes

Versions: 6

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

module EhbrsRubyUtils
  module Videos2
    module Unsupported
      module Checks
        class CodecExtraUnlisted
          TYPE = :stream

          common_constructor :codec, :listed_extras

          def check(track)
            return nil unless track.codec_name == codec
            return nil if listed_extras.any? do |extra|
              track.codec_tag_string.downcase.include?(extra.downcase)
            end

            "Not listed extra for codec \"#{codec}\" (Track: #{track}" \
              ", listed extra: #{listed_extras})"
          end

          def fix
            nil
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.44.3 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb
ehbrs_ruby_utils-0.44.2 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb
ehbrs_ruby_utils-0.44.1 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb
ehbrs_ruby_utils-0.44.0 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb
ehbrs_ruby_utils-0.41.1 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb
ehbrs_ruby_utils-0.41.0 lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unlisted.rb