Sha256: cf665eb09603600b12bd485257d16dbe9e0d5c12eba5258ba296bf09fd84486a

Contents?: true

Size: 314 Bytes

Versions: 7

Compression:

Stored size: 314 Bytes

Contents

#!/usr/bin/ruby
require 'mysql'
require 'pp'
require 'yaml'


DB = Mysql.new('localhost', 'mythtv', 'mythtv', 'mythconverg')

hash = Hash.new
DB.query('select sourceid, xmltvid from channel').each do |rsl|
  hash[rsl[1]] = [ 'dummy', rsl[0]]
end
File.open('/tmp/sources.yaml', 'w') do |h|
	h.puts hash.to_yaml
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
xmltv-0.8.4 lib/xmltv/sample/dumpids.rb
xmltv-0.8.7 lib/xmltv/sample/dumpids.rb
xmltv-0.8.3 lib/xmltv/sample/dumpids.rb
xmltv-0.8.5 lib/xmltv/sample/dumpids.rb
xmltv-0.8.1 lib/xmltv/sample/dumpids.rb
xmltv-0.8.6 lib/xmltv/sample/dumpids.rb
xmltv-0.8.2 lib/xmltv/sample/dumpids.rb