Sha256: b71ea81991fa344a4c9f5d2c44176ae535b2f0bb1ecc37c2371b2f6e0e99337e

Contents?: true

Size: 626 Bytes

Versions: 16

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

module Ehbrs
  module Videos
    module Unsupported
      module Checks
        class CodecExtraUnlisted
          common_constructor :codec, :listed_extras

          def check(track)
            return nil unless track.codec == 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

16 entries across 16 versions & 1 rubygems

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