Sha256: aecd0ca3de4686ce793664f96b0d833407dc268d0108616f2ef464609083cde9

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 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.1 bin/movie_cleaner