cromit / apple-autoingestion

Download Apple itunes report tool written in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stopping after download, not unarchiving

joethephish opened this issue · comments

Download appears to work okay, but in AutoIngestion.prototype._download, the fileStream.on('finish', function() callback appears to not being called for me?

Note that I'm a complete node.js novice, but I found that changing the fileStream.on('finish' event to 'close' fixed my issue...

Hi! Thank you for letting me know that issue. Probably you're using Node 0.8 or older since 'finish' event is emitted for writable stream since Node 0.10. Maybe I need to put a required Node version in package.json.

Ah, thank you @cromit! 👍