Tzahi12345 / YoutubeDL-Material

Self-hosted YouTube downloader built on Material Design
MIT License
2.66k stars 275 forks source link

Added undefined check to durationStringToNumber #1089

Open suspi opened 9 months ago

suspi commented 9 months ago

Ran into this issue with this stack trace

TypeError: Cannot read properties of undefined (reading 'split') at Object.exports.durationStringToNumber (/app/utils.js:227:35) at /app/files.js:226:58 at Array.reduce () at Object.exports.calculatePlaylistDuration (/app/files.js:226:31) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.exports.createPlaylist (/app/files.js:156:22) at async /app/downloader.js:403:33