module FedoraMigrate
  module MasterFile
    class DescMetadataDatastreamMover < FedoraMigrate::SimpleXmlDatastreamMover

      def fields_to_copy
        %w(file_checksum file_size duration display_aspect_ratio original_frame_size file_size date_digitized physical_description file_location)
      end

      def migrate
        super
        ['poster_offset','thumbnail_offset'].each do |field|
          copy_field(field, &:to_i)
        end
      end
    end
  end
end

module FedoraMigrate
  module MasterFile
    class DescMetadataDatastreamMover < FedoraMigrate::SimpleXmlDatastreamMover

      def fields_to_copy
        %w(file_checksum file_size duration display_aspect_ratio original_frame_size file_size date_digitized physical_description file_location file_format)
      end

      def migrate
        super
        ['poster_offset','thumbnail_offset'].each do |field|
          copy_field(field, &:to_i)
        end
      end
    end
  end
end

Add file_format to list of properties to migrate for master files
Add file_format to list of properties to migrate for master files
