Class: Ehbrs::Videos::Track

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ehbrs/videos/track.rb

Instance Method Summary collapse

Instance Method Details

#extraObject



9
10
11
# File 'lib/ehbrs/videos/track.rb', line 9

def extra
  ffprobe_data.fetch(:codec_tag_string).to_s
end

#to_sObject



13
14
15
16
# File 'lib/ehbrs/videos/track.rb', line 13

def to_s
  "[#{codec_type}(#{index}): #{codec_name}/#{language || '-'}" +
    extra.if_present('') { |v| " | #{v}" } + ']'
end