v1 milestone
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
import importlib.resources
|
||||
|
||||
import yt_dlp_ejs.yt.solver
|
||||
|
||||
|
||||
def core() -> str:
|
||||
"""
|
||||
Read the contents of the JavaScript core solver bundle as string.
|
||||
"""
|
||||
return (importlib.resources.files(yt_dlp_ejs.yt.solver) / "core.min.js").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
|
||||
def lib() -> str:
|
||||
"""
|
||||
Read the contents of the JavaScript library solver bundle as string.
|
||||
"""
|
||||
return (importlib.resources.files(yt_dlp_ejs.yt.solver) / "lib.min.js").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
Binary file not shown.
5
venv/lib/python3.12/site-packages/yt_dlp_ejs/yt/solver/core.min.js
vendored
Normal file
5
venv/lib/python3.12/site-packages/yt_dlp_ejs/yt/solver/core.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
52
venv/lib/python3.12/site-packages/yt_dlp_ejs/yt/solver/lib.min.js
vendored
Normal file
52
venv/lib/python3.12/site-packages/yt_dlp_ejs/yt/solver/lib.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user