19 lines
519 B
Python
19 lines
519 B
Python
from n_m3u8dl_py.cli import build_parser
|
|
|
|
|
|
def test_cli_accepts_compatibility_options() -> None:
|
|
args = build_parser().parse_args(
|
|
[
|
|
"input.m3u8",
|
|
"--urlprocessor-args",
|
|
"token=value",
|
|
"--no-date-info",
|
|
"--mp4-real-time-decryption",
|
|
"--live-fix-vtt-by-audio",
|
|
]
|
|
)
|
|
assert args.urlprocessor_args == "token=value"
|
|
assert args.no_date_info
|
|
assert args.mp4_real_time_decryption
|
|
assert args.live_fix_vtt_by_audio
|