Sha256: f4c9b2d073d0e0ce4d763115d4e5443b2b99b89d5d178551443eaf39bdc8abd9

Contents?: true

Size: 657 Bytes

Versions: 31

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

module Ehbrs
  module Videos
    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.extra.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

31 entries across 31 versions & 1 rubygems

Version Path
ehbrs-tools-0.39.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.38.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.37.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.36.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.35.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.35.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.34.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.33.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.32.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.31.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.31.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.30.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.29.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.28.3 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.28.2 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.28.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.28.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.27.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.26.0 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb
ehbrs-tools-0.25.1 lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb