TimeForANinja / node-ytpl

Anonymous YouTube playlist resolver.
MIT License
202 stars 48 forks source link

Handle empty playlists #121

Open Hazmi35 opened 3 years ago

Hazmi35 commented 3 years ago

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