The code of every YtdlError.
| Enumeration Member |
Value |
Description |
AGE_RESTRICTED |
"AGE_RESTRICTED" |
The video needs the cookie of an age-verified account. |
AUTH_FAILED |
"AUTH_FAILED" |
YouTube treats the cookie as signed out. |
BOT_CHECK |
"BOT_CHECK" |
YouTube asked to confirm this is not a bot. |
INVALID_ARGUMENT |
"INVALID_ARGUMENT" |
An option is invalid. Thrown before any request. |
INVALID_STATE |
"INVALID_STATE" |
Called on something that can’t work, such as a disposed PO token provider. |
INVALID_URL |
"INVALID_URL" |
The input is not a video ID, YouTube video URL or channel live URL. Thrown before any request. |
MEMBERS_ONLY |
"MEMBERS_ONLY" |
The video is for channel members. |
NO_CAPTIONS |
"NO_CAPTIONS" |
The video has no caption track in the requested language, or none at all. |
NO_FORMAT |
"NO_FORMAT" |
No client returned a playable format, or none matched the options. |
NOT_FOUND |
"NOT_FOUND" |
The video does not exist or was removed, or a channel live URL names no channel or no live stream. |
NOT_STARTED |
"NOT_STARTED" |
A premiere or scheduled live stream that has not started; see startTime. |
PLAYER_SOLVE_FAILED |
"PLAYER_SOLVE_FAILED" |
The player script could not be solved for signatures. |
PREMIUM_ONLY |
"PREMIUM_ONLY" |
The video needs YouTube Premium or a rental. |
PRIVATE |
"PRIVATE" |
The video is private. |
RATE_LIMITED |
"RATE_LIMITED" |
YouTube is rate limiting this IP. |
REGION_BLOCKED |
"REGION_BLOCKED" |
The video is not available in this country; see availableCountries. |
REQUEST_FAILED |
"REQUEST_FAILED" |
A request failed, or a download gave up after repeated failures. |