Godzil / Crunchy

Crunchy is capable of downloading anime episodes from the popular CrunchyRoll streaming service.
MIT License
95 stars 19 forks source link

Error when called without options #88

Closed stordoff closed 6 years ago

stordoff commented 6 years ago

Describe the bug Minor thing, but 1.4.3 errors if called without any command line options. 1.3.3 cleanly returns. Compare:

C:\Users\stord>crunchy
* INFO : Crunchy version 1.3.3
Done!
C:\Users\stord>crunchy
 * INFO : Crunchy version 1.4.3
C:\Users\stord\AppData\Roaming\npm\node_modules\crunchy\dist\batch.js:70
        if (tasksArr[0].address === '') {
                        ^

TypeError: Cannot read property 'address' of undefined
    at C:\Users\stord\AppData\Roaming\npm\node_modules\crunchy\dist\batch.js:70:25
    at C:\Users\stord\AppData\Roaming\npm\node_modules\crunchy\dist\batch.js:213:20
    at suppressedCallback (fs.js:240:5)
    at FSReqWrap.oncomplete (fs.js:171:20)

Expected behavior Done! and/or show help

Please fill theses informations:

Godzil commented 6 years ago

Thank for the report! I think I already saw it already but forgot about it.

This only happen if you don’t give an URL on the command line or use a batchfile when you are calling Crunchy.

Will fix that for the next release! Thanks again!