   feed = result.feed
   console.log 'Feed '+feed.title+' ('+feed.id+')'
 
+  make_mimetypes feed,mimetypes
+  console.log "write mimetypes to #{mimetypesfn}"
+  fs.writeFileSync mimetypesfn,JSON.stringify mimetypes
+
   make_shorturls feed,shorturls
 
   fix_shorturls = (shorturls,i) ->

      # done!
      console.log 'write cache.json'
      fs.writeFileSync cachefn,JSON.stringify cache
    else
      file = cache.files[ix]
      #console.log 'fix_cache '+ix+': '+file.url+', was '+file.path



  # work out URLs to be shortened
  # get.html?u=URL&t=TITLE[&m=MIMETYPE]
  # each entry...
  for entry in feed.entry when not is_hidden entry
    title = entry.title[0]
