Sha256: 6ed66586d35cdaaa1090e2c93ae779008de241d5800904e6ad3d615806b4a8db

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'

require 'optparse'
require 'ostruct'

require 'movie_cleaner'

options = OpenStruct.new
OptionParser.new do |opt|
  opt.on('-v') { |o| options.verbose = o }
  opt.on('-d', '--directory DIRECTORY',
         'The base path for all movie files') { |o| options.base_path = o }
  opt.on('-r', '--resolutions 1080p,720p', Array,
         'The wanted resolutions in order (Default: 1080p,720p') { |o| options.resolutions = o }
end.parse!

movie_cleaner = MovieCleaner::Cleaner.new(options.base_path, options.verbose, options.resolutions)
puts movie_cleaner.sub_par_files
movie_cleaner.print_rm_commands

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
movie_cleaner-0.1.0 bin/movie_cleaner