class TivoHMO::Adapters::StreamIO::Metadata
Extracts some basic metadata using the streamio gem
Attributes
movie[RW]
Public Class Methods
new(item)
click to toggle source
Calls superclass method
TivoHMO::API::Metadata::new
# File lib/tivohmo/adapters/streamio/metadata.rb, line 12 def initialize(item) super(item) begin self.movie = FFMPEG::Movie.new(item.identifier) self.duration = movie.duration.to_i rescue => e logger.error "Failed to read movie metadata: #{e}" end end