Sha256: 33891062d74386cd87e4e657fdd2b79f5956c027f047ab41e6dbbe7cf539d74c

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/lib/simple_pvr'
require 'yaml'
require 'open-uri'

if ARGV.length != 2
  puts "Requires two arguments: The XMLTV file name, and the channel mapping file name"
  exit 1
end

SimplePvr::PvrInitializer.setup

xmltv_file = File.new(ARGV[0])
mapping_to_channels = YAML.load_file(ARGV[1])

reader = SimplePvr::XmltvReader.new(mapping_to_channels)
reader.read(xmltv_file)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_pvr-1.1.0 development_xmltv
simple_pvr-1.0.0 development_xmltv
simple_pvr-0.0.4 development_xmltv