mirror of
https://github.com/yt-dlp/ejs.git
synced 2026-06-13 08:42:29 +00:00
27 lines
517 B
Python
27 lines
517 B
Python
import importlib.resources
|
|
import importlib.metadata
|
|
|
|
import yt_dlp_jsc
|
|
|
|
version = importlib.metadata.version(yt_dlp_jsc.__name__)
|
|
|
|
|
|
def jsc() -> str:
|
|
"""
|
|
Read the contents of the JavaScript jsc bundle as string.
|
|
"""
|
|
return importlib.resources.read_text(yt_dlp_jsc, 'jsc.min.js')
|
|
|
|
|
|
def lib() -> str:
|
|
"""
|
|
Read the contents of the JavaScript library bundle as string.
|
|
"""
|
|
return importlib.resources.read_text(yt_dlp_jsc, 'lib.min.js')
|
|
|
|
__all__ = [
|
|
"jsc",
|
|
"lib",
|
|
"version",
|
|
]
|