TimeForANinja/node-ytpl

Handle empty playlists

Hazmi35 opened this issue · 0 comments

Currently, when a playlist is empty (All videos private, example: playlist) ytpl throws TypeError: Cannot read property 'contents' of undefined

This module should handle this and throw a more helpful error message or make the result an empty array