Sha256: abd590b3b03c7d07c81734aa2bac6c3e136216759d82bbb47b169188936ffa02

Contents?: true

Size: 877 Bytes

Versions: 1

Compression:

Stored size: 877 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'imdb'
require 'highline'
require 'highline/import'
require 'htmlentities'
require 'yaml'


#VERSION = File.open(File.join(File.dirname(__FILE__), '..', 'VERSION'), 'r') { |f| f.read.strip }

$config = ''
CONFIGFILE = File.join(File.expand_path(ENV['HOME']), '.movie-renamer')
begin 
    $config = YAML.load_file(CONFIGFILE)
rescue
end

begin
    require 'imdb'
rescue LoadError
    $stderr.print "#{File.basename($0)} requires imdb gem to work\nPlease install it with gem install imdb\n"
    exit
end


if $config['language']
    $language = $config['language']
else
    $language = 'com'
end

require "movie-renamer/misc"
require "movie-renamer/movie"
require "movie-renamer/imdb"
require "movie-renamer/parse"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
movie-renamer-0.0.24 lib/movie-renamer.rb