Exceptions

exception asyncyt.exceptions.AsyncYTBase[source]

Bases: Exception

Base exception for all AsyncYT-related errors.

exception asyncyt.exceptions.CodecCompatibilityError(codec: VideoCodec | AudioCodec, format: VideoFormat)[source]

Bases: FFmpegBase, RuntimeError

Raised when the specified codec(s) are incompatible or unsupported by FFmpeg for the given input/output formats or settings.

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.FFmpegBase[source]

Bases: AsyncYTBase

Base exception for all FFmpeg-related errors.

exception asyncyt.exceptions.FFmpegOutputExistsError(output: str)[source]

Bases: FFmpegBase, RuntimeError

Raised when FFmpeg refuses to overwrite an existing output file.

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

Bases: FFmpegBase, RuntimeError

Raised when FFmpeg fails to process the given input file.

exception asyncyt.exceptions.InvalidFFmpegConfigError(message: str)[source]

Bases: FFmpegBase

Raised when the provided FFmpeg configuration is invalid or unsupported.

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.