Multi-threaded download with aria2

Close #24
This commit is contained in:
Howard20181 2022-08-24 01:54:24 +08:00
parent 9905925e64
commit 9768767b17
8 changed files with 251 additions and 95 deletions

View file

@ -1,3 +1,22 @@
#
# This file is part of MagiskOnWSALocal.
#
# MagiskOnWSALocal is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# MagiskOnWSALocal is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see <https://www.gnu.org/licenses/>.
#
# Copyright (C) 2022 LSPosed Contributors
#
from __future__ import annotations
from io import TextIOWrapper
from os import system, path