Update DL.py

This commit is contained in:
adef17286-sudo 2025-12-17 17:51:49 +00:00 committed by GitHub
parent 298f1179f7
commit 601a5d335e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
DL.py
View File

@ -166,8 +166,12 @@ def main():
all_keypairs.extend(keys)
script_dir = Path(sys.argv[0]).parent.resolve()
n_m3u8dl_re_path = script_dir / "N_m3u8DL-RE"
mp4decrypt_path = script_dir / "mp4decrypt"
if sys.platform == "win32":
n_m3u8dl_re_path = script_dir / "N_m3u8DL-RE.exe"
mp4decrypt_path = script_dir / "mp4decrypt.exe"
else:
n_m3u8dl_re_path = script_dir / "N_m3u8DL-RE"
mp4decrypt_path = script_dir / "mp4decrypt"
# Build command for N_m3u8dl-re
cmd = [str(n_m3u8dl_re_path), mpd_url]