Added logic to catch empty playlist edgecast

This commit is contained in:
rainbow napkin 2026-10-06 01:58:15 -04:00
parent 34e662c1da
commit b5a8fdd593

View file

@ -925,6 +925,12 @@ class playlistHandler{
return;
}
//If we found an empy playlist
if(foundPlaylist.media.length <= 0){
//ignore it!
return;
}
//Pick a random video ID based on the playlist's length
const foundID = Math.round(Math.random() * (foundPlaylist.media.length - 1));