You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classUnrecoverableErrorextendsError{}/** * Checks if there is a playability error. * * @param {Object} player_response * @returns {!Error} */exports.playError=player_response=>{constplayability=player_response?.playabilityStatus;if(!playability)returnnull;if(["ERROR","LOGIN_REQUIRED"].includes(playability.status)){returnnewUnrecoverableError(playability.reason||playability.messages?.[0]);}if(playability.status==="LIVE_STREAM_OFFLINE"){returnnewUnrecoverableError(playability.reason||"The live stream is offline.");}if(playability.status==="UNPLAYABLE"){returnnewUnrecoverableError(playability.reason||"This video is unavailable.");}returnnull;};
When running locally - everything works perfectly.
Environment
@distube/ytdl-core version: 4.16.4
Node.js version: 18
Operating system: Ubuntu 22.04 (in data center)
The text was updated successfully, but these errors were encountered:
Describe the bug and how to reproduce it
Started getting the following error recently:
The code was not changed:
Found the following in package code:
lib/utils.js
When running locally - everything works perfectly.
Environment
The text was updated successfully, but these errors were encountered: