Skip to content

Commit a155e6f

Browse files
committed
Initial commit
1 parent 80ac179 commit a155e6f

16 files changed

+485
-194
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ _deps/
99
lib*.*
1010
ffmpeg-build
1111
__pycache__
12+
*.egg-info
1213

src/cpython/__init__.py

Whitespace-only changes.

src/cpython/kai/__init__.py

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
from .exceptions import *
2+
from .types import *
3+
4+
__all__ = [
5+
"KaiError",
6+
"M3U8AttributeError",
7+
"MemoryError",
8+
"CallbackError",
9+
"CLIError",
10+
"cURLError",
11+
"DownloadError",
12+
"FilesystemError",
13+
"FFmpegError",
14+
"M3U8ItemError",
15+
"UnsupportedURIError",
16+
"M3U8MediaError",
17+
"M3U8ParserError",
18+
"M3U8PlaylistError",
19+
"PrintfError",
20+
"M3U8TagError",
21+
"code2exception",
22+
"KaiErrorCode",
23+
"M3U8MediaType",
24+
"M3U8ClosedCaption",
25+
"M3U8HDCPLevel",
26+
"M3U8EncryptionMethod",
27+
"M3U8MediaPlaylistType",
28+
"M3U8StreamItemType",
29+
"M3U8StreamItem",
30+
"M3U8Version",
31+
"M3U8StreamPlaylistType",
32+
"M3U8KeyFormatVersions",
33+
"M3U8Key",
34+
"M3U8Segment",
35+
"M3U8Map",
36+
"M3U8AllowCache",
37+
"M3U8DateRange",
38+
"M3U8TargetDuration",
39+
"M3U8MediaSequence",
40+
"M3U8DiscontinuitySequence",
41+
"M3U8SessionData",
42+
"M3U8Start",
43+
"M3U8Media",
44+
"M3U8VariantStream"
45+
]
46+
47+
__locals = locals()
48+
49+
for __name in __all__:
50+
if __name.startswith("__"):
51+
continue
52+
53+
try:
54+
setattr(__locals[__name], "__module__", "kai")
55+
except AttributeError:
56+
pass

src/cpython/kai/__version__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__title__ = "Kai"
2+
__description__ = "M3U8 parser and downloader"
3+
__version__ = "0.1"
4+
__homepage__ = "https://github.com/AmanoTeam/Kai"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/cpython/kai/types/__init__.py

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
from .m3u8stream import (
2+
M3U8MediaType,
3+
M3U8ClosedCaption,
4+
M3U8HDCPLevel,
5+
M3U8EncryptionMethod,
6+
M3U8MediaPlaylistType,
7+
M3U8StreamItemType,
8+
M3U8StreamItem,
9+
M3U8Version,
10+
M3U8StreamPlaylistType,
11+
M3U8KeyFormatVersions,
12+
M3U8Key,
13+
M3U8Segment,
14+
M3U8Map,
15+
M3U8AllowCache,
16+
M3U8DateRange,
17+
M3U8TargetDuration,
18+
M3U8MediaSequence,
19+
M3U8DiscontinuitySequence,
20+
M3U8SessionData,
21+
M3U8Start,
22+
M3U8Media,
23+
M3U8VariantStream
24+
)
25+
26+
__all__ = [
27+
"M3U8MediaType",
28+
"M3U8ClosedCaption",
29+
"M3U8HDCPLevel",
30+
"M3U8EncryptionMethod",
31+
"M3U8MediaPlaylistType",
32+
"M3U8StreamItemType",
33+
"M3U8StreamItem",
34+
"M3U8Version",
35+
"M3U8StreamPlaylistType",
36+
"M3U8KeyFormatVersions",
37+
"M3U8Key",
38+
"M3U8Segment",
39+
"M3U8Map",
40+
"M3U8AllowCache",
41+
"M3U8DateRange",
42+
"M3U8TargetDuration",
43+
"M3U8MediaSequence",
44+
"M3U8DiscontinuitySequence",
45+
"M3U8SessionData",
46+
"M3U8Start",
47+
"M3U8Media",
48+
"M3U8VariantStream"
49+
]

0 commit comments

Comments
 (0)