Add a max speed if Akamai for N_m3u8

This commit is contained in:
chu23465 2025-04-16 15:30:41 +05:30
parent cd5a956e62
commit 5827a968b2
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class MoviesAnywhere(BaseService):
} }
@staticmethod @staticmethod
@click.command(name="MoviesAnywhere", short_help="moviesanywhere.com") @click.command(name="MoviesAnywhere", short_help="https://moviesanywhere.com")
@click.argument("title", type=str) @click.argument("title", type=str)
@click.pass_context @click.pass_context

View File

@ -249,6 +249,7 @@ async def m3u8dl(uri, out, track, headers=None, proxy=None):
arguments = [ arguments = [
executable, executable,
uri, uri,
**["--max-speed", "12M"] if "akamai" in uri else "",
"--save-dir", f'"{os.path.dirname(out)}"', "--save-dir", f'"{os.path.dirname(out)}"',
"--tmp-dir", f'"{os.path.dirname(out)}"', "--tmp-dir", f'"{os.path.dirname(out)}"',
"--save-name", f'"{os.path.basename(out).replace(".mp4", "")}"', "--save-name", f'"{os.path.basename(out).replace(".mp4", "")}"',