Skip to content

Bulk asynchronous downloader for multiple file hosts

Basic updates/fixes.

Jules-WinnfieldX351e5c2ed199
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
deleted file mode 100644
index 50bae69e7..000000000
--- a/CHANGELOG.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-2.14.6
-Added instant returns on 404 (page not found)
-Made my custom log function also output to the Downloader.log file
-
-2.14.7
-Added handling for .mkv files because apparently that wasn't a thing I was doing.
-Add handling for more direct links from cyberdrop (maybe, might cause issues)
-Fixed my instant returns for 400-500 status.
-
-2.14.9
-We're trying just cyberdrop.to for faster cyberdrop downloads
-Change all funcs to be async
-
-2.15.0
-Created scraper_helper.py
--> we now only create the scrapers as needed, and it allows me to pass backwards the thotsbay links, cleaning up the code.
-
-2.16.5
-Removed title tags from thotsbay folder names.
-
-2.16.6
-Added --ignore-history flag and separated SQL into its own helper class.
-
-2.16.8
-added --separate-posts to separate each thotsbay post into it's own folder (request).
-
-2.17.0
-added basic unsupported urls output to text file.
-
-2.18.7
-large changes to the handling of downloads. Removed cyberfile.is handling and started investigating actually making something that works.
\ No newline at end of file
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index c6710ef75..b843b67a4 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "2.20.3"
+__version__ = "2.20.4"
diff --git a/cyberdrop_dl/utils/base_functions.py b/cyberdrop_dl/utils/base_functions.py
index 793db7709..2a63ecfd2 100644
--- a/cyberdrop_dl/utils/base_functions.py
+++ b/cyberdrop_dl/utils/base_functions.py
@@ -20,7 +20,7 @@ FILE_FORMATS = {
'.swf', '.avi', '.m4p', '.wmv',
'.mp2', '.m4v', '.qt', '.mpe',
'.mp4', '.flv', '.mov', '.mpg',
- '.ogg', '.mkv', '.mts'
+ '.ogg', '.mkv', '.mts', '.ts'
},
'Audio': {
'.mp3', '.flac', '.wav', '.m4a'
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index 6636b35a6..e4daf9308 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -107,6 +107,7 @@ class Downloader:
# return if completed already
if await self.SQL_helper.sql_check_existing(url.path):
+ logger.log(f"{url.path} found in DB: Skipping {filename}")
return
try:
@@ -122,7 +123,7 @@ class Downloader:
filename = resp.content_disposition.filename
filename = await sanitize(filename)
except:
- await log("Couldn't get filename for: " + str(url))
+ await log("\nCouldn't get filename for: " + str(url))
return
# Make suffix always lower case