Sha256: 35b9267e81ba194d929d7f9f7c42440344f83e3bf6108eed3282efa75f3ed669

Contents?: true

Size: 1.07 KB

Versions: 50

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

require 'ehbrs/videos/file'
require 'ehbrs/videos/unsupported/file/fix'
require 'ehbrs/videos/unsupported/check_support'
require 'ehbrs/videos/unsupported/track'

module Ehbrs
  module Videos
    module Unsupported
      class File < ::Ehbrs::Videos::File
        include ::Ehbrs::Videos::Unsupported::CheckSupport
        include ::Ehbrs::Videos::Unsupported::File::Fix

        attr_reader :options

        def initialize(file, options)
          super file
          @options = options
        end

        def banner
          infov 'File', path
          pad_speaker do
            aggressions_banner('Self')
            tracks.each(&:banner)
          end
        end

        def all_passed?
          passed? && tracks.all?(&:passed?)
        end

        def all_fixes
          fixes + tracks.flat_map(&:fixes)
        end

        def check_set_key
          :file_check_set
        end

        private

        def tracks_uncached
          super.map { |t| ::Ehbrs::Videos::Unsupported::Track.new(self, t) }
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

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