asyncyt.exceptions module

exception asyncyt.exceptions.AsyncYTBase[source]

Bases: Exception

Base exception for all AsyncYT-related errors.

exception asyncyt.exceptions.DownloadAlreadyExistsError(download_id: str)[source]

Bases: DownloaderBase

Raised when a download with the given ID already exists.

exception asyncyt.exceptions.DownloadGotCanceledError(download_id: str)[source]

Bases: DownloaderBase

Raised when a download with the given ID got canceled.

exception asyncyt.exceptions.DownloadNotFoundError(download_id: str)[source]

Bases: DownloaderBase

Raised when a download with the given ID isn’t found.

exception asyncyt.exceptions.DownloaderBase[source]

Bases: AsyncYTBase

Base exception for all Downloader-related errors.

exception asyncyt.exceptions.PlaylistCancelledError(playlist_id: str, completed: int, total: int)[source]

Bases: DownloaderBase

Raised when an in-progress playlist download is cancelled.

exception asyncyt.exceptions.PlaylistDownloadError(url: str, reason: str)[source]

Bases: DownloaderBase

Raised when a playlist download fails entirely.

exception asyncyt.exceptions.YtDlpBase[source]

Bases: AsyncYTBase

Base exception for all YTdlp-related errors.

exception asyncyt.exceptions.YtdlpDownloadError(url: str, error_code: int | None, cmd: List[str], output: List[str])[source]

Bases: YtDlpBase, RuntimeError

Raised when an error occurs in yt-dlp downloading.

exception asyncyt.exceptions.YtdlpGetInfoError(url: str, error_code: int | None, output: str)[source]

Bases: YtDlpBase, RuntimeError

Raised when an error occurs in yt-dlp getting info.

exception asyncyt.exceptions.YtdlpPlaylistGetInfoError(url: str, error_code: int | None, output: str)[source]

Bases: YtDlpBase, RuntimeError

Raised when an error occurs while retrieving playlist info with yt-dlp.

exception asyncyt.exceptions.YtdlpSearchError(query: str, error_code: int | None, output: str)[source]

Bases: YtDlpBase, RuntimeError

Raised when an error occurs in yt-dlp searching.