Skip to content

Bulk asynchronous downloader for multiple file hosts

Cleanup

Jules5db5edd3f9ad
diff --git a/README.md b/README.md
index 900112daa..95b6d6857 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,8 @@ Pixl.is
Bunkr.to
+GoFile (Requires Chrome to be installed on the system)
+
~~DMCA.Gripe~~ (It's dead)
# Information
diff --git a/main.py b/main.py
index c263778cd..814e22a14 100644
--- a/main.py
+++ b/main.py
@@ -36,7 +36,7 @@ def clear():
def version_check() -> None:
response = requests.get("https://api.github.com/repos/Jules-WinnfieldX/CyberDropDownloader/releases/latest")
latest_version = response.json()["tag_name"]
- current_version = "2.1.8"
+ current_version = "2.2.0"
logging.debug(f"We are running version {current_version} of Cyberdrop Downloader")
if latest_version != current_version:
log("A new version of CyberDropDownloader is available\n"
diff --git a/utils/downloaders.py b/utils/downloaders.py
index cf46edec5..175b8ca4d 100644
--- a/utils/downloaders.py
+++ b/utils/downloaders.py
@@ -1,10 +1,9 @@
import asyncio
import http
-import itertools
from functools import wraps
from pathlib import Path
-from typing import Any, Callable, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast, Dict
-from urllib.parse import urljoin, urlparse
+from typing import Any, Callable, Iterable, List, Optional, Type, TypeVar, Union, cast, Dict
+from urllib.parse import urljoin
import aiofiles
import aiohttp
import aiohttp.client_exceptions
@@ -231,7 +230,7 @@ class LimitDownloader(Downloader):
await super().download_all(links, session, headers=headers, show_progress=show_progress)
-def simple_cookies(cookies: Iterable[str]):
+def simple_cookies(cookies):
morsels = {}
for cookie in cookies:
# https://docs.python.org/3/library/http.cookies.html#morsel-objects