Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
If referrer is a forum, we don't rescrape.
Jules-WinnfieldXe27449262918
diff --git a/README.md b/README.mdindex c2e89c209..8a4d7a413 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# `cyberdrop-dl`**Bulk downloader for multiple file hosts**-The latest version of the program is 3.6.9+The latest version of the program is 3.6.11<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>diff --git a/changelog.txt b/changelog.txtindex 3b5acef5e..c4021a12f 100644--- a/changelog.txt+++ b/changelog.txt@@ -77,4 +77,7 @@3.6.9- I haven't kept up with this. I implemented rescraping for some downloads that fail.-- Nice.\ No newline at end of file+- Nice.++3.6.11+- If referrer is a forum, we don't rescrape.\ No newline at end of filediff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex a298314b2..cb4f928d6 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.6.9"+__version__ = "3.6.11"diff --git a/cyberdrop_dl/base_functions/base_functions.py b/cyberdrop_dl/base_functions/base_functions.pyindex f99c958d1..99f813904 100644--- a/cyberdrop_dl/base_functions/base_functions.py+++ b/cyberdrop_dl/base_functions/base_functions.py@@ -121,6 +121,10 @@ async def check_direct(url: URL):return any(re.search(domain, url.host) for domain in mapping_direct)+async def is_forum(url: URL):+ mapping_forum = ['simpcity...', 'socialmediagirls....', 'xbunker...']+ return any(re.search(domain, url.host) for domain in mapping_forum)+async def create_config(config: Path, passed_args=None, remake=None):if config.is_file() and not remake:logging.debug("Validating Config")diff --git a/cyberdrop_dl/client/downloaders.py b/cyberdrop_dl/client/downloaders.pyindex 5145657f8..30516f5cc 100644--- a/cyberdrop_dl/client/downloaders.py+++ b/cyberdrop_dl/client/downloaders.py@@ -11,7 +11,8 @@ import aiohttp.client_exceptionsfrom tqdm import tqdmfrom yarl import URL-from ..base_functions.base_functions import FILE_FORMATS, MAX_FILENAME_LENGTH, log, logger, sanitize, FailureException+from ..base_functions.base_functions import FILE_FORMATS, MAX_FILENAME_LENGTH, log, logger, sanitize, FailureException, \+ is_forumfrom ..base_functions.sql_helper import SQLHelperfrom ..base_functions.data_classes import AlbumItem, CascadeItem, FileLock, AuthData, SkipDatafrom ..client.client import Client, DownloadSession@@ -204,6 +205,8 @@ class Downloader:passelse:return+ if await is_forum(referral):+ returnraise FailureException(code=e.code, message=e.message, rescrape=e.rescrape)except (aiohttp.client_exceptions.ClientPayloadError, aiohttp.client_exceptions.ClientOSError,