#!/usr/bin/env ruby

# Download iPlayer programmes by spoofing an iPhone
# WxWidgets GUI interface
# Paul Battley - http://po-ru.com/
#
# Get the latest version via subversion:
# svn co http://paulbattley.googlecode.com/svn/iplayer-dl

require 'iplayer'
require 'iplayer/gui/app'
require 'iplayer/gui/main_frame'
require 'iplayer/version'

options = {
  :type_preference  => %w[original signed],
  :http_proxy       => ENV['http_proxy']
}
about = {
  :name        => 'iPlayer Downloader',
  :version     => "#{IPlayer::GUI_VERSION} (library #{IPlayer::VERSION})",
  :developers  => ['Paul Battley'],
  :description => "Download programmes from the BBC iPlayer.\nVisit http://po-ru.com/projects/iplayer-downloader/\nfor more information."
}
app = IPlayer::GUI::App.new(IPlayer::GUI::MainFrame, about, options)
app.main_loop
