const completeArgs = additionalYoutubeDLArgs.concat([ '--dump-json', '-f', format ])
const data = await this.run({ url, args: completeArgs, processOptions })
+ if (!data) return undefined
+
const info = data.map(this.parseInfo)
return info.length === 1
processOptions
})
+ if (!info) throw new Error(`YoutubeDL could not get info from ${this.url}`)
+
if (info.is_live === true) throw new Error('Cannot download a live streaming.')
const infoBuilder = new YoutubeDLInfoBuilder(info)
})
it('Should create some jobs', async function () {
- this.timeout(120000)
+ this.timeout(240000)
await servers[1].videos.upload({ attributes: { name: 'video1' } })
await servers[1].videos.upload({ attributes: { name: 'video2' } })