def download
@url ||= "http://pillbox.oddb.org/TRANSFER.ZIP"
zipfile = File.join(WORK_DIR, "transfer.zip")
download_as(zipfile)
dest = File.join(DOWNLOADS, "transfer.dat")
cmd = "unzip -o '#{zipfile}' -d '#{DOWNLOADS}'"
system(cmd)
if @options[:artikelstamm]
cmd = "iconv -f ISO8859-1 -t utf-8 -o #{dest.sub(".dat", ".utf8")} #{dest}"
Oddb2xml.log(cmd)
system(cmd)
end
File.open(dest, "r:iso-8859-1:utf-8").read
ensure
FileUtils.rm(zipfile, verbose: true) if File.exist?(dest) && File.exist?(zipfile)
end