Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (22 sloc) 639 Bytes
config = require './config'
Instapaper = require('./lib/instapaper').Instapaper
Speech = require('./lib/speech').Speech
Feed = require('./lib/feed').Feed
Icon = require('./lib/icon').Icon
Seq = require('seq')
insta = new Instapaper config.instapaper
feed = new Feed config.dropbox
Seq()
.seq ->
insta.items @
.flatten()
.parMap 4, (item) ->
icon = new Icon item, config.dropbox.path+"image/"
icon.get @
.parMap 4, (item) ->
speech = new Speech item, config.voices, config.speed, config.dropbox
speech.create_if_needed @
.unflatten()
.seq (items) ->
feed.write items, (err) ->
#console.log "done"