mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
♻️ Formatting fix [skip ci]
This commit is contained in:
@@ -39,14 +39,15 @@ class Downloader:
|
|||||||
start = perf_counter()
|
start = perf_counter()
|
||||||
resp = session.get(url, stream=True)
|
resp = session.get(url, stream=True)
|
||||||
total = int(resp.headers.get("content-length", 0))
|
total = int(resp.headers.get("content-length", 0))
|
||||||
with temp_folder.joinpath(file_name).open("wb") as dl_file, tqdm(
|
bar = tqdm(
|
||||||
desc=file_name,
|
desc=file_name,
|
||||||
total=total,
|
total=total,
|
||||||
unit="iB",
|
unit="iB",
|
||||||
unit_scale=True,
|
unit_scale=True,
|
||||||
unit_divisor=1024,
|
unit_divisor=1024,
|
||||||
colour="green",
|
colour="green",
|
||||||
) as bar:
|
)
|
||||||
|
with temp_folder.joinpath(file_name).open("wb") as dl_file, bar:
|
||||||
for chunk in resp.iter_content(cls._CHUNK_SIZE):
|
for chunk in resp.iter_content(cls._CHUNK_SIZE):
|
||||||
size = dl_file.write(chunk)
|
size = dl_file.write(chunk)
|
||||||
bar.update(size)
|
bar.update(size)
|
||||||
@@ -297,7 +298,6 @@ def main() -> None:
|
|||||||
downloader.repository("cli")
|
downloader.repository("cli")
|
||||||
downloader.repository("integrations")
|
downloader.repository("integrations")
|
||||||
downloader.repository("patches")
|
downloader.repository("patches")
|
||||||
# downloader.report()
|
|
||||||
|
|
||||||
def get_patches() -> None:
|
def get_patches() -> None:
|
||||||
logger.debug(f"Excluding patches for app {app}")
|
logger.debug(f"Excluding patches for app {app}")
|
||||||
|
|||||||
Reference in New Issue
Block a user