update io.py file to fix the Hotstart Decryption issue and video quality selection issue

This commit is contained in:
nallavenkatnvrr 2025-04-26 20:16:26 +05:30 committed by GitHub
parent 4a773d1db0
commit cdf8dedc90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,8 +282,7 @@ async def m3u8dl(uri, out, track, headers=None, proxy=None):
])
else:
arguments.extend([
"-sv", "best",
"-M", "format=mp4"
"-sv", f"res='{track.height}*':codec='{track.codec}':for=best",
])
arguments.extend([
@ -317,4 +316,4 @@ async def m3u8dl(uri, out, track, headers=None, proxy=None):
else:
p = subprocess.run(shlex.split(arg_str), check=True)
except subprocess.CalledProcessError:
raise ValueError("N_m3u8DL-RE failed too many times, aborting")
raise ValueError("N_m3u8DL-RE failed too many times, aborting")