Files
ejs/yt_dlp_ejs/yt/solver/__init__.py
2025-10-23 21:32:43 +02:00

18 lines
449 B
Python

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()
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()