lib/daengine/teamsite_metadata_parser.rb in daengine-0.3.4 vs lib/daengine/teamsite_metadata_parser.rb in daengine-0.3.5
- old
+ new
@@ -133,10 +133,10 @@
#exclude digital_asset_files that are not in *Teamsite Staging*
if File.exist?(file)
docs << doc
if(File.mtime(file) > last_read)
begin
- exifdata = ::MiniExiftool.new("#{file}") # spaces in filename
+ exifdata = ::MiniExiftool.new(file) # spaces in filename
doc['pages'] = exifdata.pagecount # or exifdata['Slides']
doc['size'] = exifdata.filesize
doc['mime_type'] = exifdata.mimetype
rescue Exception => e
Daengine.log "Error reading metadata from #{file} #{e.message}", "error"
\ No newline at end of file