Add a max speed if Akamai for N_m3u8
This commit is contained in:
parent
cd5a956e62
commit
5827a968b2
@ -42,7 +42,7 @@ class MoviesAnywhere(BaseService):
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
@click.command(name="MoviesAnywhere", short_help="moviesanywhere.com")
|
||||
@click.command(name="MoviesAnywhere", short_help="https://moviesanywhere.com")
|
||||
@click.argument("title", type=str)
|
||||
|
||||
@click.pass_context
|
||||
|
||||
@ -249,6 +249,7 @@ async def m3u8dl(uri, out, track, headers=None, proxy=None):
|
||||
arguments = [
|
||||
executable,
|
||||
uri,
|
||||
**["--max-speed", "12M"] if "akamai" in uri else "",
|
||||
"--save-dir", f'"{os.path.dirname(out)}"',
|
||||
"--tmp-dir", f'"{os.path.dirname(out)}"',
|
||||
"--save-name", f'"{os.path.basename(out).replace(".mp4", "")}"',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user