def scan
      one_title = arguments.include?('--title')

      args = %w(--scan)
      unless one_title
        args.unshift('--title', '0')
      end

      disc = Disc.from_output(run(*args).output)

      if one_title
        disc.titles.values.first
      else
        disc
      end
    end
def scan
      one_title = arguments.include?('--title')

      args = %w(--scan)
      unless one_title
        args.unshift('--title', '0')
      end

      disc = Disc.from_output(run(*args).output)

      if one_title
        disc.titles.values.first
      else
        disc
      end
    end
Performs a title scan. Unlike HandBrakeCLI, if you do not
 specify a title, this method will return information for all
 titles. (HandBrakeCLI defaults to only returning information for
 title 1.)

 @return [Disc,Title] a {Disc} when scanning for all titles, or a
   {Title} when scanning for one title.