Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Aug 15, 2011
1 parent 000637c commit 05cbaeb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
9 changes: 2 additions & 7 deletions lib/client.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Adventures in word wrapping. I found this code online but it's not working
# Don't use for now
# class String
# def wrap(width=78)
# self.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
# end
# end
# This file contains code for "internal" methods -
# it doesn't interface with external libs

class Path < String

Expand Down
3 changes: 3 additions & 0 deletions lib/mediainfo.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file contains methods which depend heavily on external
# libs such as mediainfo and mini_exiftool

class Video < String

# This method creates a hash with all of the desired metadata
Expand Down
16 changes: 8 additions & 8 deletions metadater.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'rubygems' # When running under 1.8. Who knows?
require 'rubygems' # When running under 1.8. Who knows?

require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
require 'spreadsheet' # Write to spreadsheet
require 'xmlsimple' # Read data from Sony's XML Exif
require 'find' # Ruby's Find.find method
# require 'spreadsheet' Spreadsheet output not implemented yet
require 'xmlsimple' # Read data from Sony's XML Exif
require 'find' # Ruby's Find.find method

# Internal functions and classes

Expand All @@ -17,8 +17,8 @@
# Note that we will also scan files with no extensions.
@@filetypes = [ '.mov', '.avi', '.mp4', '.mts' ]

@@files = [] # Let's leave this empty for later
$metadata = [] # This too
@@files = [] # Let's leave this empty for later
$metadata = [] # This too

case ARGV[0]
when nil
Expand All @@ -31,4 +31,4 @@
scandir = Path.new(ARGV[0])
end

# scandir.scan
scandir.scan

0 comments on commit 05cbaeb

Please sign in to comment.