Mike Fährmann
0f41f343f4
implement linear/exponential backoff for 'sleep-429'
2026-02-12 19:23:29 +01:00
Mike Fährmann
71680feab9
[actions] implement 'flag … = skip' ( #8960 )
2026-02-06 10:10:38 +01:00
Mike Fährmann
c8c4575c7f
[dl:http] add MIME type and signature for .aac files
2025-12-29 19:05:34 +01:00
Mike Fährmann
efad90696d
[dl:http] fail downloads of empty files ( #8661 )
2025-12-09 11:18:52 +01:00
Mike Fährmann
cff04f1181
[dl:http] implement '_http_segmented' ( #8602 )
2025-11-30 19:23:10 +01:00
Mike Fährmann
8c62be343e
[output] add 'Logger.traceback()' helper
2025-10-14 18:44:29 +02:00
Mike Fährmann
45f364e09e
[dl:http] add MIME type and signature for m3u8 & mpd files ( #8339 )
2025-10-03 16:48:10 +02:00
Mike Fährmann
5051045707
[dl:http] emit debug message when 'adjust-extension' triggers
2025-08-18 15:14:40 +02:00
Mike Fährmann
a097a373a9
simplify if statements by using walrus operators ( #7671 )
2025-07-22 20:57:54 +02:00
Mike Fährmann
755434600e
[signals] implement stopping the current download with Ctrl+C ( #1861 )
...
{
"signals-actions": {
"SIGINT": "download:fail"
}
}
2025-07-11 22:29:08 +02:00
Mike Fährmann
9dbe33b6de
replace old %-formatted and .format(…) strings with f-strings ( #7671 )
...
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
9e56d81292
fix Last-Modified mtime overwriting post processor mtime ( #7529 )
...
https://github.com/mikf/gallery-dl/issues/7529#issuecomment-2989955455
- split '_mtime' into '_mtime_http' and '_mtime_meta'
- add PathFormat.set_mtime() method
2025-06-20 16:19:37 +02:00
Mike Fährmann
bcfce6b7db
[dl:http] improve HTML signature check ( #7697 )
...
https://github.com/mikf/gallery-dl/issues/7697#issuecomment-2990734451
ignore leading whitespace
2025-06-20 14:39:32 +02:00
Mike Fährmann
dba45923c8
[dl:http] fail downloads with HTML content ( #7697 )
...
add 'validate-html' option
2025-06-20 14:34:40 +02:00
Mike Fährmann
e08ec7e083
update copyright notices
2025-06-13 00:03:41 +02:00
Mike Fährmann
811b665e33
remove @staticmethod decorators
...
There might have been a time when calling a static method was faster
than a regular method, but that is no longer the case. According to
micro-benchmarks, it is 70% slower in CPython 3.13 and it also makes
executing the code of a class definition slower.
2025-06-12 22:50:52 +02:00
Mike Fährmann
8b6bc54e95
[dl:http] add MIME type and signature for .html files
2025-06-12 21:16:34 +02:00
Mike Fährmann
e0a961047c
[dl:http] fix potential FileExistsError when '.part' file moved ( #5385 )
...
when the downloader detects a '.part' file and attempts to resume its
download, a FileExistsError was raised while trying to create an assumed
missing directory path when said '.part' file was (re)moved during the
time it was detected and the downloader attempted to open it in 'a+b' mode.
2025-06-12 16:44:41 +02:00
Mike Fährmann
7a48b696a6
[dl] improve maximum 'rate' detection ( #7638 )
2025-06-09 12:15:39 +02:00
Mike Fährmann
a25e14e776
[dl:http] implement dynamic download 'rate' limits ( #7638 )
2025-06-08 20:04:31 +02:00
Mike Fährmann
483e30d846
[dl:http] allow '_http_signature' to return a custom error message
...
… and fail the download immediately like '_http_validate'
2025-06-07 22:06:00 +02:00
Mike Fährmann
839a43fe5c
[dl:http] implement '_http_signature' ( #4902 )
...
allows passing a function to validate a file's signature bytes,
similar to '_http_validate'
2025-06-07 20:27:59 +02:00
Mike Fährmann
f51511155e
[dl:http] include traceback in exception debug log
2025-06-07 20:24:08 +02:00
Mike Fährmann
b76e7de1a7
[dl:http] fix setting 'mtime' per file ( #7529 )
...
introduce '_http_lastmodified' meta field
2025-05-21 13:50:51 +02:00
Mike Fährmann
4a2c8606a5
[dl:http] detect Cloudflare/DDoS-Guard challenges ( #7066 #7121 )
2025-03-06 14:31:32 +01:00
Mike Fährmann
800cf5beb5
replace 'print()' with 'output.stderr_write("\n")'
2025-02-15 18:01:05 +01:00
Mike Fährmann
35307608f2
[dl:http] add 'sleep-429' option ( #6996 )
2025-02-15 17:42:03 +01:00
Mike Fährmann
e8826ed3d4
[common] simplify HTTP error messages
...
[warning] HTTPSConnectionPool(host='domain.tld', port=443): Max retries
exceeded with url: /a.jpg (Caused by NameResolutionError("<urllib3.
connection.HTTPSConnection object at 0x7247fe436ea0>: Failed to resolve
'domain.tld' ([Errno -2] Name or service not known)")) (1/5)
->
[warning] NameResolutionError: Failed to resolve 'domain.tld'
([Errno -2] Name or service not known) (1/5)
2024-12-10 17:13:44 +01:00
Mike Fährmann
cd241bea0a
[downloader:http] add MIME type and signature for .m4v files ( #5505 )
2024-04-25 01:01:35 +02:00
Mike Fährmann
bffadf35b7
[hotleak] download files with 404 status code ( #5395 )
2024-04-19 16:08:31 +02:00
Mike Fährmann
a8027745e3
[downloader:http] add MIME type and signature for .mov files ( #5287 )
2024-03-06 14:00:24 +01:00
Mike Fährmann
0dacb2b24c
[downloader:http] remove 'pyopenssl' import ( #5156 )
2024-02-04 21:06:54 +01:00
Mike Fährmann
ea78f67860
[downloader:http] skip files not passing filesize-min/-max ( #4821 )
...
instead of failing the download
2023-11-17 22:54:20 +01:00
ClosedPort22
5448268d5c
[downloader:http] close connection when file already exists ( #3748 )
2023-08-08 23:35:43 +08:00
Mike Fährmann
c182094ebf
merge #3748 : [downloader:http] add 'consume-content' option
2023-04-26 23:03:18 +02:00
ClosedPort22
6f4a843fba
[downloader:http] release connection before logging messages
...
This allows connections to be properly released when using 'actions'
feature.
2023-04-24 23:59:36 +08:00
Mike Fährmann
2edcdee32f
[downloader:http] add MIME type and signature for .heic files
...
(#3915 )
https://github.com/strukturag/libheif/issues/83
2023-04-15 17:09:22 +02:00
ClosedPort22
775d2ac999
[downloader:http] improve error logging when releasing connection
2023-03-31 20:08:38 +08:00
ClosedPort22
1a977f0f62
[downloader:http] handle exceptions in 'validate'
...
This isn't strictly necessary for 'exhentai.py', but it improves
efficiency when the adapter is reused
2023-03-23 19:57:13 +08:00
ClosedPort22
fcaeaf539c
[downloader:http] handle exceptions while consuming content
2023-03-11 21:36:37 +08:00
Mike Fährmann
67ec91cdbd
[downloader:http] change '_http_retry' to accept a Python function
...
and rename '_http_retry_codes' to '_http_retry'
(#3569 )
2023-03-09 23:30:15 +01:00
ClosedPort22
df77271438
[downloader:http] add 'consume-content' option
...
* fix connection not being released when the response is neither
successful nor retried
* add the ability to consume the HTTP response body instead of closing
the connection
reference:
https://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow
2023-03-09 21:07:10 +08:00
Mike Fährmann
d16873941c
[downloader:http] use 'time.monotonic()'
2023-01-31 15:32:12 +01:00
Mike Fährmann
ec9ff7640d
merge #3535 : [downloader:http] add signature checks for .blend, .obj, and .clip files
2023-01-16 15:09:10 +01:00
ClosedPort22
b6706b373a
[downloader:http] add signature checks for some formats
...
also add the MIME type for .obj files
2023-01-15 23:40:55 +08:00
Mike Fährmann
c881548a27
add 'extractor.retry-codes' option ( #3313 )
...
do not retry 429 and 430 by default
2023-01-14 17:25:30 +01:00
Mike Fährmann
c0d7d2be35
[downloader:http] add 'validate' option
2023-01-11 15:37:40 +01:00
Mike Fährmann
80102fa367
[downloader:http] add 'retry-codes' option ( #3313 )
2022-12-01 11:08:23 +01:00
Mike Fährmann
b4253f69c9
[downloader:http] fix ZeroDivisionError ( #3328 )
...
ensure 'time_elapsed' only get used as divisor
when it is greater than zero
2022-11-30 21:56:18 +01:00
Mike Fährmann
f87cfa5f66
[downloader:http] add signature check for .mp4 files
2022-11-16 21:45:26 +01:00