     hidden = is_hidden entry
     # atom enclosures
     for link in entry.link when link.$.href? and (link.$.rel == 'alternate' or not hidden)
-      add_fileurl link.$.href, fileurls
+      add_fileurl (fix_relative_url cache.baseurl, link.$.href), fileurls
     # media-rss media:thumbnail
     for thumbnail in (entry['media:thumbnail'] ? []) when thumbnail.$.url?
-      add_fileurl thumbnail.$.url, fileurls
+      add_fileurl (fix_relative_url cache.baseurl, thumbnail.$.url), fileurls
   console.dir fileurls
  
 


  fix_cache cache,0

fix_relative_url = (url,path) ->
  resolve_url url, path

check_html_file = (cache,ix,file) ->
  si = file.path.lastIndexOf '/'
  ei = file.path.lastIndexOf '.'

      #console.log 'add '+url+' to fileurls'
      fileurls.push url 

fix_relative_url = (url,path) ->
  resolve_url url, path

# cache entry for each
make_cache = (feed,cache) ->

