-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
673 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from .exceptions import ( | ||
KaiError, | ||
M3U8AttributeError, | ||
MemoryError, | ||
CallbackError, | ||
CLIError, | ||
cURLError, | ||
DownloadError, | ||
FilesystemError, | ||
FFmpegError, | ||
M3U8ItemError, | ||
UnsupportedURIError, | ||
M3U8MediaError, | ||
M3U8ParserError, | ||
M3U8PlaylistError, | ||
PrintfError, | ||
M3U8TagError | ||
) | ||
|
||
from .utils import code2exception | ||
|
||
__all__ = [ | ||
"KaiError", | ||
"M3U8AttributeError", | ||
"MemoryError", | ||
"CallbackError", | ||
"CLIError", | ||
"cURLError", | ||
"DownloadError", | ||
"FilesystemError", | ||
"FFmpegError", | ||
"M3U8ItemError", | ||
"UnsupportedURIError", | ||
"M3U8MediaError", | ||
"M3U8ParserError", | ||
"M3U8PlaylistError", | ||
"PrintfError", | ||
"M3U8TagError", | ||
"code2exception" | ||
] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# | ||
# This file is auto-generated. Use the tool at ../tools/errors.h.py to regenerate. | ||
# | ||
|
||
import enum | ||
|
||
class KaiErrorCode(enum.Enum): | ||
M3U8ERR_SUCCESS = 0 | ||
M3U8ERR_ATTRIBUTE_DUPLICATE = -1 | ||
M3U8ERR_ATTRIBUTE_EMPTY = -2 | ||
M3U8ERR_ATTRIBUTE_INVALID_BRANGE = -3 | ||
M3U8ERR_ATTRIBUTE_INVALID_DTIME = -4 | ||
M3U8ERR_ATTRIBUTE_INVALID_ESTRING = -5 | ||
M3U8ERR_ATTRIBUTE_INVALID_FLOAT = -6 | ||
M3U8ERR_ATTRIBUTE_INVALID_HEXSEQ = -7 | ||
M3U8ERR_ATTRIBUTE_INVALID_NAME = -8 | ||
M3U8ERR_ATTRIBUTE_INVALID_QSTRING = -9 | ||
M3U8ERR_ATTRIBUTE_INVALID_RESOLUTION = -10 | ||
M3U8ERR_ATTRIBUTE_INVALID_UFLOAT = -11 | ||
M3U8ERR_ATTRIBUTE_INVALID_UINT = -12 | ||
M3U8ERR_ATTRIBUTE_KEYFORMATVERSIONS_INVALID = -13 | ||
M3U8ERR_ATTRIBUTE_MISSING = -14 | ||
M3U8ERR_ATTRIBUTE_MISSING_NAME = -15 | ||
M3U8ERR_ATTRIBUTE_MISSING_VALUE = -16 | ||
M3U8ERR_ATTRIBUTE_UNEXPECTED = -17 | ||
M3U8ERR_ATTRIBUTE_VALUE_INVALID = -18 | ||
M3U8ERR_ATTRIBUTE_WRONG_END_DATE = -19 | ||
M3U8ERR_BUFFER_OVERFLOW = -20 | ||
M3U8ERR_CALLBACK_WRITE_FAILURE = -21 | ||
M3U8ERR_CLI_ARGUMENT_EMPTY = -22 | ||
M3U8ERR_CLI_ARGUMENT_INVALID = -23 | ||
M3U8ERR_CLI_ARGUMENT_VALUE_MISSING = -24 | ||
M3U8ERR_CLI_CANNOT_DETECT_FORMAT = -25 | ||
M3U8ERR_CLI_CONCURRENCY_OUT_RANGE = -26 | ||
M3U8ERR_CLI_DUPLICATE_ARGUMENT = -27 | ||
M3U8ERR_CLI_MAX_REDIRS_OUT_RANGE = -28 | ||
M3U8ERR_CLI_NO_STREAMS_SELECTED = -29 | ||
M3U8ERR_CLI_OUTPUT_MISSING = -30 | ||
M3U8ERR_CLI_OUTPUT_MISSING_FILE_EXTENSION = -31 | ||
M3U8ERR_CLI_PRIVILEGED_PROCESS_UNALLOWED = -32 | ||
M3U8ERR_CLI_RETRY_OUT_RANGE = -33 | ||
M3U8ERR_CLI_SELECT_MEDIA_MAX_SELECTION_REACHED = -34 | ||
M3U8ERR_CLI_SELECT_MEDIA_NO_MATCHING_STREAMS = -35 | ||
M3U8ERR_CLI_SELECT_MEDIA_OUT_RANGE = -36 | ||
M3U8ERR_CLI_SELECT_STREAM_MAX_SELECTION_REACHED = -37 | ||
M3U8ERR_CLI_SELECT_STREAM_NO_AVAILABLE_STREAMS = -38 | ||
M3U8ERR_CLI_SELECT_STREAM_NO_MATCHING_STREAMS = -39 | ||
M3U8ERR_CLI_SELECT_STREAM_OUT_RANGE = -40 | ||
M3U8ERR_CLI_SELECT_STREAM_RESOLUTION_INVALID = -41 | ||
M3U8ERR_CLI_SELECT_STREAM_WILDCARD_UNSUPPORTED = -42 | ||
M3U8ERR_CLI_URI_MISSING = -43 | ||
M3U8ERR_CLI_USER_INTERRUPTED = -44 | ||
M3U8ERR_CLI_VALUE_UNEXPECTED = -45 | ||
M3U8ERR_CURLE_GET_INFO_FAILURE = -46 | ||
M3U8ERR_CURLM_ADD_FAILURE = -47 | ||
M3U8ERR_CURLM_INIT_FAILURE = -48 | ||
M3U8ERR_CURLM_PERFORM_FAILURE = -49 | ||
M3U8ERR_CURLM_POLL_FAILURE = -50 | ||
M3U8ERR_CURLM_REMOVE_FAILURE = -51 | ||
M3U8ERR_CURLM_SETOPT_FAILURE = -52 | ||
M3U8ERR_CURLSH_INIT_FAILURE = -53 | ||
M3U8ERR_CURLSH_SETOPT_FAILURE = -54 | ||
M3U8ERR_CURLU_INIT_FAILURE = -55 | ||
M3U8ERR_CURLU_URL_GET_FAILURE = -56 | ||
M3U8ERR_CURLU_URL_SET_FAILURE = -57 | ||
M3U8ERR_CURL_INIT_FAILURE = -58 | ||
M3U8ERR_CURL_REQUEST_FAILURE = -59 | ||
M3U8ERR_CURL_SETOPT_FAILURE = -60 | ||
M3U8ERR_CURL_SLIST_FAILURE = -61 | ||
M3U8ERR_DOWNLOAD_COULD_NOT_CREATE_TMPDIR = -62 | ||
M3U8ERR_DOWNLOAD_COULD_NOT_MOVE_FILE = -63 | ||
M3U8ERR_DOWNLOAD_NO_TMPDIR = -64 | ||
M3U8ERR_EXPAND_FILENAME_FAILURE = -65 | ||
M3U8ERR_FFMPEG_COMMAND_NOT_FOUND = -66 | ||
M3U8ERR_FFMPEG_MUXING_FAILURE = -67 | ||
M3U8ERR_FSTREAM_LOCK_FAILURE = -68 | ||
M3U8ERR_FSTREAM_OPEN_FAILURE = -69 | ||
M3U8ERR_FSTREAM_READ_EMPTY_FILE = -70 | ||
M3U8ERR_FSTREAM_READ_FAILURE = -71 | ||
M3U8ERR_FSTREAM_SEEK_FAILURE = -72 | ||
M3U8ERR_FSTREAM_TELL_FAILURE = -73 | ||
M3U8ERR_FSTREAM_WRITE_FAILURE = -74 | ||
M3U8ERR_GET_APP_FILENAME_FAILURE = -75 | ||
M3U8ERR_ITEM_EMPTY = -76 | ||
M3U8ERR_ITEM_INVALID_BRANGE = -77 | ||
M3U8ERR_ITEM_INVALID_DTIME = -78 | ||
M3U8ERR_ITEM_INVALID_ESTRING = -79 | ||
M3U8ERR_ITEM_INVALID_UFLOAT = -80 | ||
M3U8ERR_ITEM_INVALID_UINT = -81 | ||
M3U8ERR_ITEM_INVALID_USTRING = -82 | ||
M3U8ERR_ITEM_MISSING = -83 | ||
M3U8ERR_ITEM_VALUE_INVALID = -84 | ||
M3U8ERR_ITEM_VALUE_TOO_LONG = -85 | ||
M3U8ERR_LOAD_UNSUPPORTED_URI = -86 | ||
M3U8ERR_MEDIA_NO_MATCHING_AUDIO = -87 | ||
M3U8ERR_MEDIA_NO_MATCHING_CLOSED_CAPTIONS = -88 | ||
M3U8ERR_MEDIA_NO_MATCHING_SUBTITLES = -89 | ||
M3U8ERR_MEDIA_NO_MATCHING_VIDEO = -90 | ||
M3U8ERR_MEDIA_PLAYLIST_NO_SEGMENTS = -91 | ||
M3U8ERR_MEDIA_UNEXPECTED_CC = -92 | ||
M3U8ERR_MEMORY_ALLOCATE_FAILURE = -93 | ||
M3U8ERR_PARSER_INVALID_BRANGE = -94 | ||
M3U8ERR_PARSER_INVALID_DTIME = -95 | ||
M3U8ERR_PARSER_INVALID_ESTRING = -96 | ||
M3U8ERR_PARSER_INVALID_FLOAT = -97 | ||
M3U8ERR_PARSER_INVALID_HEXSEQ = -98 | ||
M3U8ERR_PARSER_INVALID_QSTRING = -99 | ||
M3U8ERR_PARSER_INVALID_RESOLUTION = -100 | ||
M3U8ERR_PARSER_INVALID_UFLOAT = -101 | ||
M3U8ERR_PARSER_INVALID_UINT = -102 | ||
M3U8ERR_PARSER_INVALID_USTRING = -103 | ||
M3U8ERR_PLAYLIST_LINE_TOO_LONG = -104 | ||
M3U8ERR_PLAYLIST_LINE_UNTERMINATED = -105 | ||
M3U8ERR_PLAYLIST_MISSING_TAG = -106 | ||
M3U8ERR_PLAYLIST_TOO_LARGE = -107 | ||
M3U8ERR_PLAYLIST_UNEXPECTED_ITEM = -108 | ||
M3U8ERR_PLAYLIST_UNEXPECTED_TAG = -109 | ||
M3U8ERR_PLAYLIST_UNEXPECTED_URI = -110 | ||
M3U8ERR_PLAYLIST_UNKNOWN_TYPE = -111 | ||
M3U8ERR_PLAYLIST_WRONG_TAG_POSITION = -112 | ||
M3U8ERR_PRINTF_WRITE_FAILURE = -113 | ||
M3U8ERR_TAG_DUPLICATE = -114 | ||
M3U8ERR_TAG_MISSING_ATTRIBUTES = -115 | ||
M3U8ERR_TAG_MISSING_ITEMS = -116 | ||
M3U8ERR_TAG_MISSING_VALUE = -117 | ||
M3U8ERR_TAG_NAME_INVALID = -118 | ||
M3U8ERR_TAG_NON_MATCHING_ATTRIBUTES = -119 | ||
M3U8ERR_TAG_TRAILING_OPTIONS = -120 | ||
|
1 change: 0 additions & 1 deletion
1
src/cpython/exceptions.py → src/cpython/exceptions/exception.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
class KaiError(Exception): | ||
|
||
|
||
def __init__( | ||
self, | ||
code: int, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# This file is auto-generated. Use the tool at ../tools/errors.h.py to regenerate. | ||
# | ||
|
||
from .exception import KaiError | ||
|
||
class M3U8AttributeError(KaiError): | ||
pass | ||
|
||
class MemoryError(KaiError): | ||
pass | ||
|
||
class CallbackError(KaiError): | ||
pass | ||
|
||
class CLIError(KaiError): | ||
pass | ||
|
||
class cURLError(KaiError): | ||
pass | ||
|
||
class DownloadError(KaiError): | ||
pass | ||
|
||
class FilesystemError(KaiError): | ||
pass | ||
|
||
class FFmpegError(KaiError): | ||
pass | ||
|
||
class M3U8ItemError(KaiError): | ||
pass | ||
|
||
class UnsupportedURIError(KaiError): | ||
pass | ||
|
||
class M3U8MediaError(KaiError): | ||
pass | ||
|
||
class M3U8ParserError(KaiError): | ||
pass | ||
|
||
class M3U8PlaylistError(KaiError): | ||
pass | ||
|
||
class PrintfError(KaiError): | ||
pass | ||
|
||
class M3U8TagError(KaiError): | ||
pass |
Oops, something went wrong.